示例#1
0
文件: Decoder.java 项目: JSlain/bnd
 public Object get() throws Exception {
   try {
     return codec.decode(null, this);
   } finally {
     if (!keepOpen) close();
   }
 }
示例#2
0
文件: Decoder.java 项目: JSlain/bnd
 @SuppressWarnings("unchecked")
 public <T> T get(Class<T> clazz) throws Exception {
   try {
     return (T) codec.decode(clazz, this);
   } finally {
     if (!keepOpen) close();
   }
 }
示例#3
0
文件: Decoder.java 项目: JSlain/bnd
 @SuppressWarnings("unchecked")
 public <T> T get(TypeReference<T> ref) throws Exception {
   try {
     return (T) codec.decode(ref.getType(), this);
   } finally {
     if (!keepOpen) close();
   }
 }