Package com.saperion.rmi
Class SaRMIInputStreamSeekable
java.lang.Object
java.io.InputStream
com.saperion.rmi.SaRMIInputStream
com.saperion.rmi.SaRMIInputStreamSeekable
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class is an extension of
SaRMIInputStream
that adds the possibility to seek on the stream.-
Field Summary
Fields inherited from class com.saperion.rmi.SaRMIInputStream
bufferPointer, bufferSize, byteBuffer, closed, curRevision, docElement, docHdoc, handle, started
-
Constructor Summary
ConstructorsConstructorDescriptionSaRMIInputStreamSeekable
(String hdoc, boolean currentRevision, int elementNumber, boolean withAnnotations, SaRMIClientCommand connector, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).SaRMIInputStreamSeekable
(String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, boolean dummy, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).SaRMIInputStreamSeekable
(String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend). -
Method Summary
Methods inherited from class com.saperion.rmi.SaRMIInputStream
available, close, getDocElement, getDocHdoc, getFileName, isCurrentRevision, isDummy, isWithAnnotations, markSupported, read, readDocumentFirst, reset, setFileName
Methods inherited from class java.io.InputStream
mark, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
SaRMIInputStreamSeekable
public SaRMIInputStreamSeekable(String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).- Parameters:
hdoc
- Document HDOCcurrentRevision
- flag indicating that the current revision of the document should be retrieved by resolving hdocelementNumber
- number of the structure-element to read fromconnector
- the rmi-client connector used to read data from the archivemonitor
- a ClassicConnector instance used to synchronize calls on the connector
-
SaRMIInputStreamSeekable
public SaRMIInputStreamSeekable(String hdoc, boolean currentRevision, int elementNumber, boolean withAnnotations, SaRMIClientCommand connector, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).- Parameters:
hdoc
- Document HDOCcurrentRevision
- flag indicating that the current revision of the document should be retrieved by resolving hdocelementNumber
- number of the structure-element to read fromwithAnnotations
- if true, annotations will be saved on the document streamconnector
- the rmi-client connector used to read data from the archivemonitor
- a ClassicConnector instance used to synchronize calls on the connector
-
SaRMIInputStreamSeekable
public SaRMIInputStreamSeekable(String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, boolean dummy, Object monitor) Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).- Parameters:
hdoc
- Document HDOCcurrentRevision
- flag indicating that the current revision of the document should be retrieved by resolving hdocelementNumber
- number of the structure-element to read fromconnector
- the rmi-client connector used to read data from the archivedummy
- if true, no content will be read from the backend. Instead themonitor
- a ClassicConnector instance used to synchronize calls on the connector
-
-
Method Details
-
seek
- Throws:
IOException
-