C - the type of the RbfLowLevelConfigurationpublic class RbfLowLevelSerializerImpl<C extends RbfLowLevelConfiguration> extends Object implements RbfLowLevelSerializer
RbfLowLevelSerializer.| Constructor and Description |
|---|
RbfLowLevelSerializerImpl(C config)
Constructs a new
RbfLowLevelSerializerImpl. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterOpen()
Called after opening a new input stream.
|
protected void |
beforeFinishRecord()
Called before a record is finished.
|
void |
close(boolean closeWriter)
Closes the serialization stream.
|
void |
finishRecord()
Finishes the current record.
|
void |
flush()
Flushes the stream.
|
protected C |
getConfiguration()
Returns the configuration object.
|
void |
open(Writer writer)
Opens a new serialization stream based on the given writer.
|
protected void |
writeChar(int character)
Writes the given character to the stream.
|
void |
writeLine(String line)
Writes the given line.
|
protected void |
writeString(String value)
Writes the given
String value as it is to the stream. |
public RbfLowLevelSerializerImpl(C config)
RbfLowLevelSerializerImpl.config - the configuration objectpublic final void open(Writer writer)
open in interface LowLevelSerializerwriter - the writer to base the stream onpublic final void finishRecord()
finishRecord in interface RbfLowLevelSerializerpublic void writeLine(String line)
writeLine in interface RbfLowLevelSerializerline - a linepublic void flush()
flush in interface LowLevelSerializerpublic final void close(boolean closeWriter)
closeWriter is
true, too.close in interface LowLevelSerializercloseWriter - if true, the underlying writer will be closed, too.protected final C getConfiguration()
protected void afterOpen()
protected void beforeFinishRecord()
protected final void writeChar(int character)
character - the character.protected final void writeString(String value)
String value as it is to the stream.value - the String value.Copyright © 2014. All rights reserved.