aQute.lib.json
Class Encoder

java.lang.Object
  extended by aQute.lib.json.Encoder
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class Encoder
extends Object
implements Appendable, Closeable, Flushable


Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence sq)
           
 Appendable append(CharSequence sq, int start, int length)
           
 Encoder charset(String encoding)
           
 void close()
           
 Encoder deflate()
           
 byte[] digest()
           
 void flush()
           
 Encoder indent(String tabs)
           
 Encoder keepOpen()
           
 Encoder mark()
           
 Encoder put(Object object)
           
 Encoder to()
           
 Encoder to(Appendable out)
           
 Encoder to(File file)
           
 Encoder to(OutputStream out)
           
 String toString()
           
 Encoder writeDefaults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.