Class SaRMIInputStreamSeekable

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

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

      • SaRMIInputStreamSeekable

        public SaRMIInputStreamSeekable​(java.lang.String hdoc,
                                        boolean currentRevision,
                                        int elementNumber,
                                        SaRMIClientCommand connector,
                                        java.lang.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​(java.lang.String hdoc,
                                        boolean currentRevision,
                                        int elementNumber,
                                        boolean withAnnotations,
                                        SaRMIClientCommand connector,
                                        java.lang.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​(java.lang.String hdoc,
                                        boolean currentRevision,
                                        int elementNumber,
                                        SaRMIClientCommand connector,
                                        boolean dummy,
                                        java.lang.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 Detail

      • seek

        public void seek​(long offset)
                  throws java.io.IOException
        Throws:
        java.io.IOException