Package aQute.lib.json
Class Encoder
java.lang.Object
aQute.lib.json.Encoder
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Appendable
(package private) boolean
(package private) final JSONCodec
(package private) boolean
(package private) MessageDigest
(package private) Charset
(package private) String
(package private) boolean
(package private) String
(package private) boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence sq) append
(CharSequence sq, int start, int length) void
close()
deflate()
byte[]
digest()
(package private) void
void
flush()
(package private) void
indent()
keepOpen()
mark()
to()
to
(OutputStream out) to
(Appendable out) toString()
(package private) void
undent()
-
Field Details
-
codec
-
app
Appendable app -
digest
MessageDigest digest -
writeDefaults
boolean writeDefaults -
encoding
Charset encoding -
deflate
boolean deflate -
tabs
String tabs -
indent
String indent -
keepOpen
boolean keepOpen -
closed
boolean closed
-
-
Constructor Details
-
Encoder
Encoder(JSONCodec codec)
-
-
Method Details
-
put
- Throws:
Exception
-
mark
- Throws:
NoSuchAlgorithmException
-
digest
- Throws:
NoSuchAlgorithmException
IOException
-
to
- Throws:
IOException
-
to
- Throws:
IOException
-
charset
-
charset
-
to
- Throws:
IOException
-
to
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
toString
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
encode
- Throws:
Exception
-
writeDefaults
-
flush
- Specified by:
flush
in interfaceFlushable
- Throws:
IOException
-
deflate
-
indent
-
undent
- Throws:
IOException
-
indent
- Throws:
IOException
-
keepOpen
-