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) String(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence sq) append(CharSequence sq, int start, int length) voidclose()deflate()byte[]digest()(package private) voidvoidflush()(package private) voidindent()keepOpen()(package private) voidmark()to()to(OutputStream out) to(Appendable out) toString()(package private) voidundent()
-
Field Details
-
codec
-
app
Appendable app -
digest
MessageDigest digest -
writeDefaults
boolean writeDefaults -
encoding
Charset encoding -
deflate
boolean deflate -
tabs
String tabs -
indent
String indent -
linebreak
String linebreak -
keepOpen
boolean keepOpen -
closed
boolean closed
-
-
Constructor Details
-
Encoder
Encoder(JSONCodec codec)
-
-
Method Details
-
put
- Throws:
Exception
-
mark
- Throws:
NoSuchAlgorithmException
-
digest
- Throws:
NoSuchAlgorithmExceptionIOException
-
to
- Throws:
IOException
-
to
- Throws:
IOException
-
charset
-
charset
-
to
- Throws:
IOException
-
to
- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
encode
- Throws:
Exception
-
writeDefaults
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
deflate
-
indent
-
linebreak
-
undent
- Throws:
IOException
-
linebreak
- Throws:
IOException
-
indent
- Throws:
IOException
-
keepOpen
-