aQute.lib.json
Class Decoder

java.lang.Object
  extended by aQute.lib.json.Decoder
All Implemented Interfaces:
Closeable

public class Decoder
extends Object
implements Closeable


Method Summary
 Decoder charset(String encoding)
           
 void close()
           
 byte[] digest()
           
 Decoder faq(String in)
           
 Decoder from(File file)
           
 Decoder from(InputStream in)
           
 Decoder from(Reader in)
           
 Decoder from(String in)
           
 Object get()
           
<T> T
get(Class<T> clazz)
           
 Object get(Type type)
           
<T> T
get(TypeReference<T> ref)
           
 Map<String,Object> getExtra()
           
 Decoder inflate()
           
 boolean isEof()
           
 Decoder keepOpen()
           
 Decoder mark()
           
 Decoder strict()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public Decoder from(File file)
             throws Exception
Throws:
Exception

from

public Decoder from(InputStream in)
             throws Exception
Throws:
Exception

charset

public Decoder charset(String encoding)

strict

public Decoder strict()

from

public Decoder from(Reader in)
             throws Exception
Throws:
Exception

faq

public Decoder faq(String in)
            throws Exception
Throws:
Exception

from

public Decoder from(String in)
             throws Exception
Throws:
Exception

mark

public Decoder mark()
             throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

digest

public byte[] digest()

get

public <T> T get(Class<T> clazz)
      throws Exception
Throws:
Exception

get

public Object get(Type type)
           throws Exception
Throws:
Exception

get

public Object get()
           throws Exception
Throws:
Exception

get

public <T> T get(TypeReference<T> ref)
      throws Exception
Throws:
Exception

keepOpen

public Decoder keepOpen()

isEof

public boolean isEof()
              throws Exception
Throws:
Exception

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getExtra

public Map<String,Object> getExtra()

inflate

public Decoder inflate()


Copyright © 2014 aQute SARL. All rights reserved.