|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
org.apache.commons.compress.compressors.pack200.Pack200CompressorInputStream
public class Pack200CompressorInputStream
An input stream that decompresses from the Pack200 format to be read as any other stream.
The getCount and getBytesRead methods always
return 0.
| Constructor Summary | |
|---|---|
Pack200CompressorInputStream(java.io.File f)
Decompresses the given file, caching the decompressed data in memory. |
|
Pack200CompressorInputStream(java.io.File f,
java.util.Map<java.lang.String,java.lang.String> props)
Decompresses the given file, caching the decompressed data in memory and using the given properties. |
|
Pack200CompressorInputStream(java.io.File f,
Pack200Strategy mode)
Decompresses the given file using the given strategy to cache the results. |
|
Pack200CompressorInputStream(java.io.File f,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
Decompresses the given file using the given strategy to cache the results and the given properties. |
|
Pack200CompressorInputStream(java.io.InputStream in)
Decompresses the given stream, caching the decompressed data in memory. |
|
Pack200CompressorInputStream(java.io.InputStream in,
java.util.Map<java.lang.String,java.lang.String> props)
Decompresses the given stream, caching the decompressed data in memory and using the given properties. |
|
Pack200CompressorInputStream(java.io.InputStream in,
Pack200Strategy mode)
Decompresses the given stream using the given strategy to cache the results. |
|
Pack200CompressorInputStream(java.io.InputStream in,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
Decompresses the given stream using the given strategy to cache the results and the given properties. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
void |
mark(int limit)
|
boolean |
markSupported()
|
static boolean |
matches(byte[] signature,
int length)
Checks if the signature matches what is expected for a pack200 file (0xCAFED00D). |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int count)
|
void |
reset()
|
long |
skip(long count)
|
| Methods inherited from class org.apache.commons.compress.compressors.CompressorInputStream |
|---|
count, count, getBytesRead, getCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pack200CompressorInputStream(java.io.InputStream in)
throws java.io.IOException
When reading from a file the File-arg constructor may provide better performance.
java.io.IOException
public Pack200CompressorInputStream(java.io.InputStream in,
Pack200Strategy mode)
throws java.io.IOException
When reading from a file the File-arg constructor may provide better performance.
java.io.IOException
public Pack200CompressorInputStream(java.io.InputStream in,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
When reading from a file the File-arg constructor may provide better performance.
java.io.IOException
public Pack200CompressorInputStream(java.io.InputStream in,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
When reading from a file the File-arg constructor may provide better performance.
java.io.IOException
public Pack200CompressorInputStream(java.io.File f)
throws java.io.IOException
java.io.IOException
public Pack200CompressorInputStream(java.io.File f,
Pack200Strategy mode)
throws java.io.IOException
java.io.IOException
public Pack200CompressorInputStream(java.io.File f,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
java.io.IOException
public Pack200CompressorInputStream(java.io.File f,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int count)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int limit)
mark in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException
public long skip(long count)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException
public static boolean matches(byte[] signature,
int length)
signature - the bytes to checklength - the number of bytes to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||