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
SerializableStreamContentHandler
write
in interface SerializableStreamContentHandler
command
- 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 SerializableStreamContentHandler
public InputStream getInputStream() throws IOException
getInputStream
in interface SerializableStreamContentHandler
IOException
- IO exception when opening streampublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.