@Override public int read(final byte[] buffer) throws IOException { return read(buffer, 0, buffer.length); }
@Override public int read(final byte[] buffer) throws IOException { return read(buffer, 0, buffer.length); }
@Override public int read(final byte[] buffer) throws IOException { return read(buffer, 0, buffer.length); }
public static void decompress(InputStream in, OutputStream out) throws IOException { LZFInputStream decompressor = null; try { decompressor = new LZFInputStream(in); byte[] buf = ThreadLocalByteBuffer.getBuffer(); int len; while ((len = decompressor.read(buf)) != -1) { out.write(buf, 0, len); } } finally { if (decompressor != null) { decompressor.close(); } } }