org.apache.abdera.writer
Interface Writer

All Known Subinterfaces:
NamedWriter
All Known Implementing Classes:
org.apache.abdera.util.AbstractNamedWriter, JSONWriter

public interface Writer

Writers are used to serialize Abdera objects


Method Summary
 java.lang.Object write(Base base)
          Return the serialized form of the Abdera Base
 void writeTo(Base base, java.io.OutputStream out)
          Serialized the given Abdera Base to the given outputstream
 void writeTo(Base base, java.io.Writer out)
          Serialized the given Abdera Base to the given writer
 

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