org.apache.abdera.ext.json
Class JSONWriter

java.lang.Object
  extended by org.apache.abdera.util.AbstractWriter
      extended by org.apache.abdera.util.AbstractNamedWriter
          extended by org.apache.abdera.ext.json.JSONWriter
All Implemented Interfaces:
NamedItem, NamedWriter, Writer

public class JSONWriter
extends AbstractNamedWriter
implements NamedWriter


Field Summary
static String[] FORMATS
           
static String NAME
           
 
Fields inherited from class org.apache.abdera.util.AbstractNamedWriter
formats, name
 
Fields inherited from class org.apache.abdera.util.AbstractWriter
options
 
Constructor Summary
JSONWriter()
           
 
Method Summary
 String getName()
           
protected  WriterOptions initDefaultWriterOptions()
           
 Object write(Base base, WriterOptions options)
          Return the serialized form of the Abdera Base
 void writeTo(Base base, OutputStream out, WriterOptions options)
          Serialized the given Abdera Base to the given outputstream
 void writeTo(Base base, Writer out, WriterOptions options)
          Serialized the given Abdera Base to the given writer
 
Methods inherited from class org.apache.abdera.util.AbstractNamedWriter
getOutputFormats, outputsFormat
 
Methods inherited from class org.apache.abdera.util.AbstractWriter
finishCompressedOutputStream, getCompressedOutputStream, getDefaultWriterOptions, setDefaultWriterOptions, write, writeTo, writeTo, writeTo, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.writer.NamedWriter
getOutputFormats, outputsFormat
 
Methods inherited from interface org.apache.abdera.writer.Writer
getDefaultWriterOptions, setDefaultWriterOptions, write, writeTo, writeTo, writeTo, writeTo
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

FORMATS

public static final String[] FORMATS
Constructor Detail

JSONWriter

public JSONWriter()
Method Detail

initDefaultWriterOptions

protected WriterOptions initDefaultWriterOptions()
Specified by:
initDefaultWriterOptions in class AbstractWriter

getName

public String getName()
Specified by:
getName in interface NamedItem
Overrides:
getName in class AbstractNamedWriter

write

public Object write(Base base,
                    WriterOptions options)
             throws IOException
Description copied from interface: Writer
Return the serialized form of the Abdera Base

Specified by:
write in interface Writer
Throws:
IOException

writeTo

public void writeTo(Base base,
                    OutputStream out,
                    WriterOptions options)
             throws IOException
Description copied from interface: Writer
Serialized the given Abdera Base to the given outputstream

Specified by:
writeTo in interface Writer
Throws:
IOException

writeTo

public void writeTo(Base base,
                    Writer out,
                    WriterOptions options)
             throws IOException
Description copied from interface: Writer
Serialized the given Abdera Base to the given writer

Specified by:
writeTo in interface Writer
Throws:
IOException


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.