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)Objectwrite(Base base)Return the serialized form of the Abdera BaseObjectwrite(Base base, WriterOptions options)Return the serialized form of the Abdera BasevoidwriteTo(Base base, OutputStream out)Serialized the given Abdera Base to the given outputstreamvoidwriteTo(Base base, OutputStream out, WriterOptions options)Serialized the given Abdera Base to the given outputstreamvoidwriteTo(Base base, Writer out)Serialized the given Abdera Base to the given writervoidwriteTo(Base base, Writer out, WriterOptions options)Serialized the given Abdera Base to the given writervoidwriteTo(Base base, WritableByteChannel out)voidwriteTo(Base base, WritableByteChannel out, WriterOptions options)
-
-
-
Method Detail
-
writeTo
void writeTo(Base base, OutputStream out) throws IOException
Serialized the given Abdera Base to the given outputstream- Throws:
IOException
-
writeTo
void writeTo(Base base, Writer out) throws IOException
Serialized the given Abdera Base to the given writer- Throws:
IOException
-
write
Object write(Base base) throws IOException
Return the serialized form of the Abdera Base- Throws:
IOException
-
writeTo
void writeTo(Base base, OutputStream out, WriterOptions options) throws IOException
Serialized the given Abdera Base to the given outputstream- Throws:
IOException
-
writeTo
void writeTo(Base base, Writer out, WriterOptions options) throws IOException
Serialized the given Abdera Base to the given writer- Throws:
IOException
-
write
Object write(Base base, WriterOptions options) throws IOException
Return the serialized form of the Abdera Base- Throws:
IOException
-
writeTo
void writeTo(Base base, WritableByteChannel out) throws IOException
- Throws:
IOException
-
writeTo
void writeTo(Base base, WritableByteChannel out, WriterOptions options) throws IOException
- Throws:
IOException
-
getDefaultWriterOptions
WriterOptions getDefaultWriterOptions()
-
setDefaultWriterOptions
Writer setDefaultWriterOptions(WriterOptions options)
-
-