Beispiel #1
0
 public Object get() throws Exception {
   try {
     return codec.decode(null, this);
   } finally {
     if (!keepOpen) close();
   }
 }
Beispiel #2
0
 @SuppressWarnings("unchecked")
 public <T> T get(Class<T> clazz) throws Exception {
   try {
     return (T) codec.decode(clazz, this);
   } finally {
     if (!keepOpen) close();
   }
 }
Beispiel #3
0
 @SuppressWarnings("unchecked")
 public <T> T get(TypeReference<T> ref) throws Exception {
   try {
     return (T) codec.decode(ref.getType(), this);
   } finally {
     if (!keepOpen) close();
   }
 }