public interface Serializer
Modifier and Type | Method and Description |
---|---|
void |
close(boolean closeWriter)
Closes the serialization stream.
|
void |
flush()
Flushes the stream.
|
LowLevelSerializer |
getLowLevelSerializer()
Returns the underlying low level serializer.
|
void |
open(Writer writer)
Opens a new serialization stream based on the given writer.
|
void |
write(Object obj)
Writes the given object.
|
void open(Writer writer)
writer
- the writer to base the stream onSerializationException
void write(Object obj)
obj
- the object to writeSerializationException
void flush()
void close(boolean closeWriter)
closeWriter
is
true, too.closeWriter
- if true, the underlying writer will be closed, too.SerializationException
LowLevelSerializer getLowLevelSerializer()
Copyright © 2014. All rights reserved.