Package com.saperion.rmi
Class SaRMIInputStreamSeekable
- java.lang.Object
-
- java.io.InputStream
-
- com.saperion.rmi.SaRMIInputStream
-
- com.saperion.rmi.SaRMIInputStreamSeekable
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SaRMIInputStreamSeekable extends SaRMIInputStream
This class is an extension ofSaRMIInputStream
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
Constructors Constructor Description SaRMIInputStreamSeekable(java.lang.String hdoc, boolean currentRevision, int elementNumber, boolean withAnnotations, SaRMIClientCommand connector, java.lang.Object monitor)
Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).SaRMIInputStreamSeekable(java.lang.String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, boolean dummy, java.lang.Object monitor)
Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).SaRMIInputStreamSeekable(java.lang.String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, java.lang.Object monitor)
Constructs theSaRMIInputStreamSeekable
instance which represents the input stream of the document (will be returned from the Saperion backend).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
seek(long offset)
-
Methods inherited from class com.saperion.rmi.SaRMIInputStream
available, close, getDocElement, getDocHdoc, getFileName, isCurrentRevision, isDummy, isWithAnnotations, markSupported, read, readDocumentFirst, reset, setFileName
-
-
-
-
Constructor Detail
-
SaRMIInputStreamSeekable
public SaRMIInputStreamSeekable(java.lang.String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, java.lang.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(java.lang.String hdoc, boolean currentRevision, int elementNumber, boolean withAnnotations, SaRMIClientCommand connector, java.lang.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(java.lang.String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, boolean dummy, java.lang.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
-
-