Package javax.json.stream
Interface JsonGenerator
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,java.io.Flushable
public interface JsonGenerator extends java.io.Flushable, java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PRETTY_PRINTING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
void
flush()
JsonGenerator
write(boolean value)
JsonGenerator
write(double value)
JsonGenerator
write(int value)
JsonGenerator
write(long value)
JsonGenerator
write(java.lang.String value)
JsonGenerator
write(java.lang.String name, boolean value)
JsonGenerator
write(java.lang.String name, double value)
JsonGenerator
write(java.lang.String name, int value)
JsonGenerator
write(java.lang.String name, long value)
JsonGenerator
write(java.lang.String name, java.lang.String value)
JsonGenerator
write(java.lang.String name, java.math.BigDecimal value)
JsonGenerator
write(java.lang.String name, java.math.BigInteger value)
JsonGenerator
write(java.lang.String name, JsonValue value)
JsonGenerator
write(java.math.BigDecimal value)
JsonGenerator
write(java.math.BigInteger value)
JsonGenerator
write(JsonValue value)
JsonGenerator
writeEnd()
JsonGenerator
writeKey(java.lang.String name)
Write the key with a colon;JsonGenerator
writeNull()
JsonGenerator
writeNull(java.lang.String name)
JsonGenerator
writeStartArray()
JsonGenerator
writeStartArray(java.lang.String name)
JsonGenerator
writeStartObject()
JsonGenerator
writeStartObject(java.lang.String name)
-
-
-
Field Detail
-
PRETTY_PRINTING
static final java.lang.String PRETTY_PRINTING
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeStartObject
JsonGenerator writeStartObject()
-
writeStartObject
JsonGenerator writeStartObject(java.lang.String name)
-
writeStartArray
JsonGenerator writeStartArray()
-
writeStartArray
JsonGenerator writeStartArray(java.lang.String name)
-
writeKey
JsonGenerator writeKey(java.lang.String name)
Write the key with a colon;- Throws:
JsonGenerationException
- if this method is not called within an object context- Since:
- 1.1
-
write
JsonGenerator write(java.lang.String name, JsonValue value)
-
write
JsonGenerator write(java.lang.String name, java.lang.String value)
-
write
JsonGenerator write(java.lang.String name, java.math.BigInteger value)
-
write
JsonGenerator write(java.lang.String name, java.math.BigDecimal value)
-
write
JsonGenerator write(java.lang.String name, int value)
-
write
JsonGenerator write(java.lang.String name, long value)
-
write
JsonGenerator write(java.lang.String name, double value)
-
write
JsonGenerator write(java.lang.String name, boolean value)
-
writeNull
JsonGenerator writeNull(java.lang.String name)
-
writeEnd
JsonGenerator writeEnd()
-
write
JsonGenerator write(JsonValue value)
-
write
JsonGenerator write(java.lang.String value)
-
write
JsonGenerator write(java.math.BigDecimal value)
-
write
JsonGenerator write(java.math.BigInteger value)
-
write
JsonGenerator write(int value)
-
write
JsonGenerator write(long value)
-
write
JsonGenerator write(double value)
-
write
JsonGenerator write(boolean value)
-
writeNull
JsonGenerator writeNull()
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
flush
void flush()
- Specified by:
flush
in interfacejava.io.Flushable
-
-