Class FileSystemRendition
java.lang.Object
com.saperion.connector.renditions.BaseRendition
com.saperion.connector.renditions.FileSystemRendition
- All Implemented Interfaces:
Rendition,AutoCloseable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for instantiating theFileSystemRenditioninstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getFile()intgetPage()Returns the number of the page represented by this rendition.Returns the content asInputStreamDescriptorgenerated by the render engine.booleanvoidsetFile(WrappedFile file) voidsetFilename(String filename) Methods inherited from class com.saperion.connector.renditions.BaseRendition
getTarget, setTarget
-
Constructor Details
-
FileSystemRendition
protected FileSystemRendition()Default constructor for instantiating theFileSystemRenditioninstance.
-
-
Method Details
-
getStream
Returns the content asInputStreamDescriptorgenerated by the render engine.- Returns:
InputStreamDescriptorgenerated by the render engine.- Throws:
Exception- See Also:
-
getFilename
- Returns:
- the filename
-
setFilename
- Parameters:
filename- the filename to set
-
getFile
- Returns:
- the file
-
setFile
- 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
- Throws:
Exception
-