org.apache.wink.json4j.compat.impl
Class ApacheJSONWriterDelegate
java.lang.Object
org.apache.wink.json4j.compat.impl.ApacheJSONWriterDelegate
- All Implemented Interfaces:
- JSONWriter
- Direct Known Subclasses:
- ApacheJSONStringerDelegate
public class ApacheJSONWriterDelegate
- extends Object
- implements JSONWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected JSONWriter delegate
writer
protected Writer writer
ApacheJSONWriterDelegate
public ApacheJSONWriterDelegate(Writer writer)
object
public JSONWriter object()
throws IOException,
IllegalStateException
- Specified by:
object
in interface JSONWriter
- Throws:
IOException
IllegalStateException
array
public JSONWriter array()
throws IOException,
IllegalStateException
- Specified by:
array
in interface JSONWriter
- Throws:
IOException
IllegalStateException
endArray
public JSONWriter endArray()
throws IOException,
IllegalStateException
- Specified by:
endArray
in interface JSONWriter
- Throws:
IOException
IllegalStateException
endObject
public JSONWriter endObject()
throws IOException,
IllegalStateException
- Specified by:
endObject
in interface JSONWriter
- Throws:
IOException
IllegalStateException
key
public JSONWriter key(String s)
throws IOException,
IllegalStateException
- Specified by:
key
in interface JSONWriter
- Throws:
IOException
IllegalStateException
value
public JSONWriter value(boolean b)
throws IOException,
IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
IOException
IllegalStateException
value
public JSONWriter value(double d)
throws IOException,
IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
IOException
IllegalStateException
value
public JSONWriter value(long l)
throws IOException,
IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
IOException
IllegalStateException
value
public JSONWriter value(short s)
throws IOException,
IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
IOException
IllegalStateException
value
public JSONWriter value(Object obj)
throws IOException,
IllegalStateException,
JSONException
- Specified by:
value
in interface JSONWriter
- Throws:
IOException
IllegalStateException
JSONException
close
public void close()
throws IOException,
IllegalStateException
- Specified by:
close
in interface JSONWriter
- Throws:
IOException
IllegalStateException
flush
public JSONWriter flush()
throws IOException
- Specified by:
flush
in interface JSONWriter
- Throws:
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.