Class SaRMIInputStreamSeekable

All Implemented Interfaces:
Closeable, AutoCloseable

public class SaRMIInputStreamSeekable extends SaRMIInputStream
This class is an extension of SaRMIInputStream that adds the possibility to seek on the stream.
  • Constructor Details

    • SaRMIInputStreamSeekable

      public SaRMIInputStreamSeekable(String hdoc, boolean currentRevision, int elementNumber, SaRMIClientCommand connector, Object monitor)
      Constructs the SaRMIInputStreamSeekable instance which represents the input stream of the document (will be returned from the Saperion backend).
      Parameters:
      hdoc - Document HDOC
      currentRevision - flag indicating that the current revision of the document should be retrieved by resolving hdoc
      elementNumber - number of the structure-element to read from
      connector - the rmi-client connector used to read data from the archive
      monitor - 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 the SaRMIInputStreamSeekable instance which represents the input stream of the document (will be returned from the Saperion backend).
      Parameters:
      hdoc - Document HDOC
      currentRevision - flag indicating that the current revision of the document should be retrieved by resolving hdoc
      elementNumber - number of the structure-element to read from
      withAnnotations - if true, annotations will be saved on the document stream
      connector - the rmi-client connector used to read data from the archive
      monitor - 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 the SaRMIInputStreamSeekable instance which represents the input stream of the document (will be returned from the Saperion backend).
      Parameters:
      hdoc - Document HDOC
      currentRevision - flag indicating that the current revision of the document should be retrieved by resolving hdoc
      elementNumber - number of the structure-element to read from
      connector - the rmi-client connector used to read data from the archive
      dummy - if true, no content will be read from the backend. Instead the
      monitor - a ClassicConnector instance used to synchronize calls on the connector
  • Method Details