Package com.saperion.rmi
Interface SerializableStreamContentHandler
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DirectWriteContentHandler,TempBufferContentHandler
Interface for content handlers used by
SerializableStream.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of available content handlers. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongwrite(SaRMIServerCommand command, int token, String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming) Writes the content.
-
Method Details
-
write
long write(SaRMIServerCommand command, int token, String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming) throws IOException Writes the content.- Parameters:
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 archive- Returns:
- the number that was assigned to the written element
- Throws:
IOException- IO exception when writing
-
persisted
boolean persisted()- Returns:
- true if the content written to this content handler was persisted.
-
getInputStream
- Returns:
- Input stream for content that was not yet persisted.
- Throws:
IOException- IO exception when opening stream
-