|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.util.DeflateUtils
public class DeflateUtils
A collection of utility methods for working on deflated data.
| Constructor Summary | |
|---|---|
DeflateUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
deflate(byte[] in)
Returns a deflated copy of the input array. |
static byte[] |
inflate(byte[] in)
Returns an inflated copy of the input array. |
static byte[] |
inflateBestEffort(byte[] in)
Returns an inflated copy of the input array. |
static byte[] |
inflateBestEffort(byte[] in,
int sizeLimit)
Returns an inflated copy of the input array, truncated to sizeLimit bytes, if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeflateUtils()
| Method Detail |
|---|
public static final byte[] inflateBestEffort(byte[] in)
null is returned.
public static final byte[] inflateBestEffort(byte[] in,
int sizeLimit)
sizeLimit bytes, if necessary. If the deflated input
has been truncated or corrupted, a best-effort attempt is made to
inflate as much as possible. If no data can be extracted
null is returned.
public static final byte[] inflate(byte[] in)
throws IOException
IOException - if the input cannot be properly decompressedpublic static final byte[] deflate(byte[] in)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||