Package org.apache.abdera.writer
Interface Writer
-
- All Known Subinterfaces:
NamedWriter
- All Known Implementing Classes:
AbstractNamedWriter,AbstractWriter
public interface WriterWriters are used to serialize Abdera objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WriterOptionsgetDefaultWriterOptions()WritersetDefaultWriterOptions(WriterOptions options)java.lang.Objectwrite(Base base)Return the serialized form of the Abdera Basejava.lang.Objectwrite(Base base, WriterOptions options)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.OutputStream out, WriterOptions options)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.io.Writer out, WriterOptions options)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
-
writeTo
void writeTo(Base base, java.io.OutputStream out) throws java.io.IOException
Serialized the given Abdera Base to the given outputstream- Throws:
java.io.IOException
-
writeTo
void writeTo(Base base, java.io.Writer out) throws java.io.IOException
Serialized the given Abdera Base to the given writer- Throws:
java.io.IOException
-
write
java.lang.Object write(Base base) throws java.io.IOException
Return the serialized form of the Abdera Base- Throws:
java.io.IOException
-
writeTo
void writeTo(Base base, java.io.OutputStream out, WriterOptions options) throws java.io.IOException
Serialized the given Abdera Base to the given outputstream- Throws:
java.io.IOException
-
writeTo
void writeTo(Base base, java.io.Writer out, WriterOptions options) throws java.io.IOException
Serialized the given Abdera Base to the given writer- Throws:
java.io.IOException
-
write
java.lang.Object write(Base base, WriterOptions options) throws java.io.IOException
Return the serialized form of the Abdera Base- Throws:
java.io.IOException
-
writeTo
void writeTo(Base base, java.nio.channels.WritableByteChannel out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
void writeTo(Base base, java.nio.channels.WritableByteChannel out, WriterOptions options) throws java.io.IOException
- Throws:
java.io.IOException
-
getDefaultWriterOptions
WriterOptions getDefaultWriterOptions()
-
setDefaultWriterOptions
Writer setDefaultWriterOptions(WriterOptions options)
-
-