public class DirectWriteContentHandler extends Object implements SerializableStreamContentHandler
SerializableStreamContentHandler that writes to the archive directly.SerializableStreamContentHandler.ContentHandlers| Constructor and Description |
|---|
DirectWriteContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getInputStream() |
boolean |
persisted() |
long |
write(SaRMIServerCommand command,
int token,
String filename,
byte[] buffer,
boolean isLast,
int element,
boolean doStreaming)
Writes the content.
|
public long write(SaRMIServerCommand command, int token, String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming) throws IOException
SerializableStreamContentHandlerwrite in interface SerializableStreamContentHandlercommand - server command used for writingtoken - current user tokenfilename - name of the file that is writtenbuffer - data to writeisLast - whether the buffer is the last one to writeelement - content element that is writtendoStreaming - enable or disable streaming to the archiveIOException - IO exception when writingpublic boolean persisted()
persisted in interface SerializableStreamContentHandlerpublic InputStream getInputStream() throws IOException
getInputStream in interface SerializableStreamContentHandlerIOException - IO exception when opening streampublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.