public static long blob2OutputStream(final Blob blob, final PooledBytesOutputStream os) { if (null == blob) { return 0; } final InputStream is = blob.genInputStream(); if (null != is) { try { return inputStream2OutputStream(is, os); } finally { try { is.close(); } catch (Throwable e) { } } } else { return 0; } }
public static long blob2DataOutput( final Blob blob, final DataOutput output, final BytesPool pool) { if (null == blob) { return 0; } final InputStream is = blob.genInputStream(); if (null != is) { try { return inputStream2DataOutput(is, output, pool); } finally { try { is.close(); } catch (Throwable e) { } } } else { return 0; } }