Package org.apache.abdera.util
Class AbstractWriter
- java.lang.Object
-
- org.apache.abdera.util.AbstractWriter
-
- All Implemented Interfaces:
Writer
- Direct Known Subclasses:
AbstractNamedWriter
public abstract class AbstractWriter extends java.lang.Object implements Writer
-
-
Constructor Summary
Constructors Constructor Description AbstractWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WriterOptionsgetDefaultWriterOptions()WritersetDefaultWriterOptions(WriterOptions options)java.lang.Objectwrite(Base base)Return the serialized form of the Abdera BasevoidwriteTo(Base base, java.io.OutputStream out)Serialized the given Abdera Base to the given outputstreamvoidwriteTo(Base base, java.io.Writer out)Serialized the given Abdera Base to the given writervoidwriteTo(Base base, java.nio.channels.WritableByteChannel out)voidwriteTo(Base base, java.nio.channels.WritableByteChannel out, WriterOptions options)
-
-
-
Method Detail
-
getDefaultWriterOptions
public WriterOptions getDefaultWriterOptions()
- Specified by:
getDefaultWriterOptionsin interfaceWriter
-
setDefaultWriterOptions
public Writer setDefaultWriterOptions(WriterOptions options)
- Specified by:
setDefaultWriterOptionsin interfaceWriter
-
write
public java.lang.Object write(Base base) throws java.io.IOException
Description copied from interface:WriterReturn the serialized form of the Abdera Base
-
writeTo
public void writeTo(Base base, java.io.OutputStream out) throws java.io.IOException
Description copied from interface:WriterSerialized the given Abdera Base to the given outputstream
-
writeTo
public void writeTo(Base base, java.io.Writer out) throws java.io.IOException
Description copied from interface:WriterSerialized the given Abdera Base to the given writer
-
writeTo
public void writeTo(Base base, java.nio.channels.WritableByteChannel out, WriterOptions options) throws java.io.IOException
-
-