com.ibm.commons.util.io.json
Class JsonGenerator.Generator
java.lang.Object
com.ibm.commons.util.io.json.JsonGenerator.Generator
- Direct Known Subclasses:
- JsonGenerator.StringBuilderGenerator, JsonGenerator.StringGenerator, JsonGenerator.WriterGenerator
- Enclosing class:
- JsonGenerator
public abstract static class JsonGenerator.Generator
- extends java.lang.Object
Generator base class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonGenerator.Generator
protected JsonGenerator.Generator(JsonFactory factory,
boolean compact)
out
public abstract void out(char c)
throws java.io.IOException
- Throws:
java.io.IOException
out
public abstract void out(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
getFactory
public JsonFactory getFactory()
getIndentLevel
public int getIndentLevel()
setIndentLevel
public void setIndentLevel(int indentLevel)
incIndent
public void incIndent()
decIndent
public void decIndent()
isCompact
public boolean isCompact()
toJson
public void toJson(java.lang.Object value)
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
outLiteral
public void outLiteral(java.lang.Object value)
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
outNull
public void outNull()
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
outObject
public void outObject(java.lang.Object object)
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
outPropertyName
public void outPropertyName(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
outStringLiteral
public void outStringLiteral(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
outNumberLiteral
public void outNumberLiteral(double d)
throws java.io.IOException
- Throws:
java.io.IOException
outIntLiteral
public void outIntLiteral(int d)
throws java.io.IOException
- Throws:
java.io.IOException
outLongLiteral
public void outLongLiteral(long d)
throws java.io.IOException
- Throws:
java.io.IOException
outBooleanLiteral
public void outBooleanLiteral(boolean b)
throws java.io.IOException
- Throws:
java.io.IOException
outArrayLiteral
public void outArrayLiteral(java.lang.Object array)
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
outReference
public void outReference(JsonReference ref)
throws java.io.IOException,
JsonException
- Throws:
java.io.IOException
JsonException
indent
public void indent()
throws java.io.IOException
- Throws:
java.io.IOException
nl
public void nl()
throws java.io.IOException
- Throws:
java.io.IOException