Class FileSystemRendition

java.lang.Object
com.saperion.connector.renditions.BaseRendition
com.saperion.connector.renditions.FileSystemRendition
All Implemented Interfaces:
Rendition, AutoCloseable

public class FileSystemRendition extends BaseRendition
  • Constructor Details

    • FileSystemRendition

      protected FileSystemRendition()
      Default constructor for instantiating the FileSystemRendition instance.
  • Method Details

    • getStream

      public InputStreamDescriptor getStream() throws Exception
      Returns the content as InputStreamDescriptor generated by the render engine.
      Returns:
      InputStreamDescriptor generated by the render engine.
      Throws:
      Exception
      See Also:
    • getFilename

      public String getFilename()
      Returns:
      the filename
    • setFilename

      public void setFilename(String filename)
      Parameters:
      filename - the filename to set
    • getFile

      public File getFile()
      Returns:
      the file
    • setFile

      public void setFile(WrappedFile file)
      Parameters:
      file - the file to set
    • getPage

      public int getPage()
      Returns the number of the page represented by this rendition.
      Returns:
      page number or -1 if the renditions contains multiple (or all) pages
      See Also:
    • isComplete

      public boolean isComplete()
      Returns:
      true if this rendition represents a complete document.
      See Also:
    • close

      public void close() throws Exception
      Throws:
      Exception