|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StreamSerializer
The StreamSerializer is an extension of the Serializer
interface. It provides methods to serialize an object into a stream of
(compressed) XML. Thereby, different degrees of compression are possible.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
| Field Summary | |
|---|---|
static int |
COMPRESSED_BEST
The resulting stream will be compressed by replacing common values and attributes with tokens and additionaly compressed using zip. |
static int |
COMPRESSED_TOKEN
The resulting stream will be compressed by replacing common values and attributes with tokens. |
static int |
COMPRESSED_ZIP
The resulting stream will ge compressed using zip compression. |
static int |
COMPRESSION_NONE
The resulting stream will not be compressed. |
| Fields inherited from interface org.openbandy.io.Serializer |
|---|
MODE_DATABASE, MODE_DEFAULT, MODE_RMS, MODE_STREAM |
| Method Summary | |
|---|---|
Serializable |
createContentObject(StreamSerializationBuffer streamSerializationBuffer)
This method creates a new serializable object according to the class name that can be read next from the inputstream in the streamSerializationBuffer. |
Serializable |
getObjectFromXmlStream(java.io.ByteArrayInputStream inputStream)
This method deserializes an object from the given InputStream. |
java.io.ByteArrayOutputStream |
getXmlStream(Serializable serializable,
int compression)
This method generates an XML representation of the given object. |
| Methods inherited from interface org.openbandy.io.Serializer |
|---|
deserializeObject, serializeObject |
| Field Detail |
|---|
static final int COMPRESSION_NONE
static final int COMPRESSED_TOKEN
static final int COMPRESSED_ZIP
static final int COMPRESSED_BEST
| Method Detail |
|---|
java.io.ByteArrayOutputStream getXmlStream(Serializable serializable,
int compression)
serializable - The object that needs to be serialized.compression - The degree of compression desired.
Serializable getObjectFromXmlStream(java.io.ByteArrayInputStream inputStream)
inputStream - The InputStream to read from.
NULL.Serializable createContentObject(StreamSerializationBuffer streamSerializationBuffer)
content - Reference to the content object.streamSerializationBuffer - Proxy containing the inputstream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||