}
@Override
ByteBuffer compress(ByteBuffer data) throws IOException {
if (compressionBuffer == null) {
compressionBuffer = new NonCopyingByteArrayOutputStream(
data.remaining());
}
if (deflater == null) {
deflater = new Deflater(compressionLevel, nowrap);
}