Class FileSystemRendition
- java.lang.Object
-
- com.saperion.connector.renditions.BaseRendition
-
- com.saperion.connector.renditions.FileSystemRendition
-
- All Implemented Interfaces:
Rendition,java.lang.AutoCloseable
public class FileSystemRendition extends BaseRendition
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileSystemRendition()Default constructor for instantiating theFileSystemRenditioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.FilegetFile()java.lang.StringgetFilename()intgetPage()Returns the number of the page represented by this rendition.InputStreamDescriptorgetStream()Returns the content asInputStreamDescriptorgenerated by the render engine.booleanisComplete()voidsetFile(WrappedFile file)voidsetFilename(java.lang.String filename)-
Methods inherited from class com.saperion.connector.renditions.BaseRendition
getTarget, setTarget
-
-
-
-
Method Detail
-
getStream
public InputStreamDescriptor getStream() throws java.lang.Exception
Returns the content asInputStreamDescriptorgenerated by the render engine.- Returns:
InputStreamDescriptorgenerated by the render engine.- Throws:
java.lang.Exception- See Also:
Rendition.getStream()
-
getFilename
public java.lang.String getFilename()
- Returns:
- the filename
-
setFilename
public void setFilename(java.lang.String filename)
- Parameters:
filename- the filename to set
-
getFile
public java.io.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:
Rendition.getPage()
-
isComplete
public boolean isComplete()
- Returns:
- true if this rendition represents a complete document.
- See Also:
Rendition.isComplete()
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
-