/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes record input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes record input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesRecordInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** Get the typed bytes as a Java object. */ public Object getValue() { try { ByteArrayInputStream bais = new ByteArrayInputStream(getBytes()); TypedBytesInput tbi = TypedBytesInput.get(new DataInputStream(bais)); Object obj = tbi.read(); return obj; } catch (IOException e) { throw new RuntimeException(e); } }
/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes record input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes record input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesRecordInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes record input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes record input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesRecordInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes record input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes record input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesRecordInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes record input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes record input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesRecordInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
/** Get the typed bytes as a Java object. */ public Object getValue() { try { ByteArrayInputStream bais = new ByteArrayInputStream(getBytes()); TypedBytesInput tbi = TypedBytesInput.get(new DataInputStream(bais)); Object obj = tbi.read(); return obj; } catch (IOException e) { throw new RuntimeException(e); } }
/** Get the typed bytes as a Java object. */ public Object getValue() { try { ByteArrayInputStream bais = new ByteArrayInputStream(getBytes()); TypedBytesInput tbi = TypedBytesInput.get(new DataInputStream(bais)); Object obj = tbi.read(); return obj; } catch (IOException e) { throw new RuntimeException(e); } }
/** Get the typed bytes as a Java object. */ public Object getValue() { try { ByteArrayInputStream bais = new ByteArrayInputStream(getBytes()); TypedBytesInput tbi = TypedBytesInput.get(new DataInputStream(bais)); Object obj = tbi.read(); return obj; } catch (IOException e) { throw new RuntimeException(e); } }
/** Get the typed bytes as a Java object. */ public Object getValue() { try { ByteArrayInputStream bais = new ByteArrayInputStream(get()); TypedBytesInput tbi = TypedBytesInput.get(new DataInputStream(bais)); Object obj = tbi.read(); return obj; } catch (IOException e) { throw new RuntimeException(e); } }