public class RemoteDocumentContentInputStream extends InputStream implements Serializable
InputStream
that streams the content of a
DocumentElementType
remotely from the medium.Modifier and Type | Method and Description |
---|---|
void |
close() |
static RemoteDocumentContentInputStream |
newInstance(Connection connection,
SessionDataKey remoteStreamKey) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
static InputStream |
readDocument(Connection connection,
com.lexmark.saperion.document.DocumentReferenceType documentId,
com.lexmark.saperion.document.DocumentElementReferenceType documentElementId)
For a given
Connection and document element id this method creates an InputStream that
streams the document elements content. |
available, mark, markSupported, reset, skip
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public static InputStream readDocument(Connection connection, com.lexmark.saperion.document.DocumentReferenceType documentId, com.lexmark.saperion.document.DocumentElementReferenceType documentElementId) throws SaBasicException
Connection
and document element id
this method creates an InputStream
that
streams the document elements content. It is assumed that the given document element id references an element of
type content
connection
- the connection to use for streamingdocumentId
- the id of the document the document element to read belongs todocumentElementId
- the id of the document element with the content to streamSaAuthenticationException
SaSystemException
SaBasicException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public static RemoteDocumentContentInputStream newInstance(Connection connection, SessionDataKey remoteStreamKey)
Copyright © 2016 SAPERION AG. All rights reserved.