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, skippublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic 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 contentconnection - 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 streamSaAuthenticationExceptionSaSystemExceptionSaBasicExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic static RemoteDocumentContentInputStream newInstance(Connection connection, SessionDataKey remoteStreamKey)
Copyright © 2016 SAPERION AG. All rights reserved.