Package com.saperion.rmi
Interface SerializableStreamContentHandler
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
DirectWriteContentHandler
,TempBufferContentHandler
public interface SerializableStreamContentHandler extends java.io.Closeable
Interface for content handlers used bySerializableStream
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SerializableStreamContentHandler.ContentHandlers
Enumeration of available content handlers.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
boolean
persisted()
long
write(SaRMIServerCommand command, int token, java.lang.String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming)
Writes the content.
-
-
-
Method Detail
-
write
long write(SaRMIServerCommand command, int token, java.lang.String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming) throws java.io.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:
java.io.IOException
- IO exception when writing
-
persisted
boolean persisted()
- Returns:
- true if the content written to this content handler was persisted.
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOException
- Returns:
- Input stream for content that was not yet persisted.
- Throws:
java.io.IOException
- IO exception when opening stream
-
-