public abstract class Compressor
extends java.lang.Object
implements java.io.Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
Compressor()
Sole constructor, typically called from sub-classes.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
compress(byte[] bytes,
int off,
int len,
DataOutput out)
Compress bytes into
out. |
protected Compressor()
public abstract void compress(byte[] bytes,
int off,
int len,
DataOutput out)
throws java.io.IOException
out. It it the responsibility of the
compressor to add all necessary information so that a Decompressor
will know when to stop decompressing bytes from the stream.java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.