aQute.lib.codec
Class HCodec

java.lang.Object
  extended by aQute.lib.codec.HCodec
All Implemented Interfaces:
Codec

public class HCodec
extends Object
implements Codec


Constructor Summary
HCodec(Codec codec)
           
 
Method Summary
<T> T
decode(File in, Class<T> t)
           
<T> T
decode(InputStream in, Class<T> t)
           
 Object decode(InputStream in, Type t)
           
<T> T
decode(Reader in, Class<T> t)
           
 Object decode(Reader in, Type type)
           
 void encode(Type t, Object o, Appendable out)
           
 void encode(Type t, Object o, File out)
           
 void encode(Type t, Object o, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCodec

public HCodec(Codec codec)
Method Detail

decode

public Object decode(Reader in,
                     Type type)
              throws Exception
Specified by:
decode in interface Codec
Throws:
Exception

decode

public <T> T decode(InputStream in,
                    Class<T> t)
         throws Exception
Throws:
Exception

decode

public <T> T decode(Reader in,
                    Class<T> t)
         throws Exception
Throws:
Exception

decode

public Object decode(InputStream in,
                     Type t)
              throws Exception
Throws:
Exception

encode

public void encode(Type t,
                   Object o,
                   Appendable out)
            throws Exception
Specified by:
encode in interface Codec
Throws:
Exception

encode

public void encode(Type t,
                   Object o,
                   OutputStream out)
            throws Exception
Throws:
Exception

decode

public <T> T decode(File in,
                    Class<T> t)
         throws Exception
Throws:
Exception

encode

public void encode(Type t,
                   Object o,
                   File out)
            throws Exception
Throws:
Exception


Copyright © 2014 aQute SARL. All rights reserved.