aQute.lib.json
Class Encoder
java.lang.Object
aQute.lib.json.Encoder
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class Encoder
- extends Object
- implements Appendable, Closeable, Flushable
put
public Encoder put(Object object)
throws Exception
- Throws:
Exception
mark
public Encoder mark()
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
digest
public byte[] digest()
throws NoSuchAlgorithmException,
IOException
- Throws:
NoSuchAlgorithmException
IOException
to
public Encoder to()
throws IOException
- Throws:
IOException
to
public Encoder to(File file)
throws IOException
- Throws:
IOException
charset
public Encoder charset(String encoding)
to
public Encoder to(OutputStream out)
throws IOException
- Throws:
IOException
to
public Encoder to(Appendable out)
throws IOException
- Throws:
IOException
append
public Appendable append(char c)
throws IOException
- Specified by:
append in interface Appendable
- Throws:
IOException
append
public Appendable append(CharSequence sq)
throws IOException
- Specified by:
append in interface Appendable
- Throws:
IOException
append
public Appendable append(CharSequence sq,
int start,
int length)
throws IOException
- Specified by:
append in interface Appendable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
writeDefaults
public Encoder writeDefaults()
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable
- Throws:
IOException
deflate
public Encoder deflate()
indent
public Encoder indent(String tabs)
keepOpen
public Encoder keepOpen()
Copyright © 2014 aQute SARL. All rights reserved.