net.sf.jsefa.xml
Class XmlSerializerImpl

java.lang.Object
  extended by net.sf.jsefa.xml.XmlSerializerImpl
All Implemented Interfaces:
Serializer, XmlSerializer

public final class XmlSerializerImpl
extends Object
implements XmlSerializer

Default implementation of XmlSerializer.

Author:
Norman Lahme-Huetig

Method Summary
 void close(boolean closeWriter)
          Closes the serialization stream.
 void flush()
          Flushes the stream.
 XmlLowLevelSerializer getLowLevelSerializer()
          Returns a low level xml serializer.
 void open(Writer writer)
          Opens a new serialization stream based on the given writer.
 void write(Object object)
          Writes the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public void open(Writer writer)
Opens a new serialization stream based on the given writer.

Specified by:
open in interface Serializer
Parameters:
writer - the writer to base the stream on

write

public void write(Object object)
Writes the given object.

Specified by:
write in interface Serializer
Parameters:
object - the object to write

flush

public void flush()
Flushes the stream.

Specified by:
flush in interface Serializer

close

public void close(boolean closeWriter)
Closes the serialization stream. The underlying writer will be closed only if closeWriter is true, too.

Specified by:
close in interface Serializer
Parameters:
closeWriter - if true, the underlying writer will be closed, too.

getLowLevelSerializer

public XmlLowLevelSerializer getLowLevelSerializer()
Returns a low level xml serializer.

Specified by:
getLowLevelSerializer in interface Serializer
Specified by:
getLowLevelSerializer in interface XmlSerializer
Returns:
a low level xml serializer.


Copyright © 2014. All rights reserved.