org.apache.abdera.ext.json
Class JSONStream

java.lang.Object
  extended by org.apache.abdera.ext.json.JSONStream

public class JSONStream
extends Object


Constructor Summary
JSONStream(Writer writer)
           
 
Method Summary
 void endArray()
           
 void endObject()
           
 void startArray()
           
 void startObject()
           
 void writeField(String name)
           
 void writeField(String name, Boolean value)
           
 void writeField(String name, Date value)
           
 void writeField(String name, EntityTag value)
           
 void writeField(String name, IRI value)
           
 void writeField(String name, javax.activation.MimeType value)
           
 void writeField(String name, Number value)
           
 void writeField(String name, String value)
           
 void writeQuoted(String value)
           
 void writeSeparator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONStream

public JSONStream(Writer writer)
Method Detail

startObject

public void startObject()
                 throws IOException
Throws:
IOException

endObject

public void endObject()
               throws IOException
Throws:
IOException

startArray

public void startArray()
                throws IOException
Throws:
IOException

endArray

public void endArray()
              throws IOException
Throws:
IOException

writeSeparator

public void writeSeparator()
                    throws IOException
Throws:
IOException

writeQuoted

public void writeQuoted(String value)
                 throws IOException
Throws:
IOException

writeField

public void writeField(String name)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       Date value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       IRI value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       javax.activation.MimeType value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       EntityTag value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       String value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       Number value)
                throws IOException
Throws:
IOException

writeField

public void writeField(String name,
                       Boolean value)
                throws IOException
Throws:
IOException


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