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 java.lang.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 java.io.Writer writer
ApacheJSONWriterDelegate
public ApacheJSONWriterDelegate(java.io.Writer writer)
object
public JSONWriter object()
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
object
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
array
public JSONWriter array()
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
array
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
endArray
public JSONWriter endArray()
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
endArray
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
endObject
public JSONWriter endObject()
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
endObject
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
key
public JSONWriter key(java.lang.String s)
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
key
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
value
public JSONWriter value(boolean b)
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
value
public JSONWriter value(double d)
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
value
public JSONWriter value(long l)
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
value
public JSONWriter value(short s)
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
value
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
value
public JSONWriter value(java.lang.Object obj)
throws java.io.IOException,
java.lang.IllegalStateException,
JSONException
- Specified by:
value
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
JSONException
close
public void close()
throws java.io.IOException,
java.lang.IllegalStateException
- Specified by:
close
in interface JSONWriter
- Throws:
java.io.IOException
java.lang.IllegalStateException
flush
public JSONWriter flush()
throws java.io.IOException
- Specified by:
flush
in interface JSONWriter
- Throws:
java.io.IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.