Class FileDocument

    • Constructor Detail

      • FileDocument

        public FileDocument​(String path)
        Create a FileDocument
        Parameters:
        path - the path to the file
      • FileDocument

        public FileDocument​(File file)
        Create a FileDocument
        Parameters:
        file - File
    • Method Detail

      • openStream

        public InputStream openStream()
        Description copied from interface: DSSDocument
        Opens a InputStream on the DSSDocument contents. The type of the InputStream depends on the type of the DSSDocument.
        Returns:
        an InputStream
      • exists

        public boolean exists()
      • getParentFile

        public File getParentFile()
      • getAbsolutePath

        public String getAbsolutePath()
        Description copied from interface: DSSDocument
        Returns the String representing the absolute path to the encapsulated document.
        Specified by:
        getAbsolutePath in interface DSSDocument
        Overrides:
        getAbsolutePath in class CommonDocument
        Returns:
        String representing the absolute path to the encapsulated document.