|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.rbf.lowlevel.RbfLowLevelSerializerImpl<C>
C - the type of the RbfLowLevelConfigurationpublic class RbfLowLevelSerializerImpl<C extends RbfLowLevelConfiguration>
Abstract implementation of RbfLowLevelSerializer.
| Constructor Summary | |
|---|---|
RbfLowLevelSerializerImpl(C config)
Constructs a new RbfLowLevelSerializerImpl. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RbfLowLevelSerializerImpl(C config)
RbfLowLevelSerializerImpl.
config - the configuration object| Method Detail |
|---|
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||