|
||||||||||
| 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(File f)
Decompresses the given file, caching the decompressed data in memory. |
|
Pack200CompressorInputStream(File f,
Map<String,String> props)
Decompresses the given file, caching the decompressed data in memory and using the given properties. |
|
Pack200CompressorInputStream(File f,
Pack200Strategy mode)
Decompresses the given file using the given strategy to cache the results. |
|
Pack200CompressorInputStream(File f,
Pack200Strategy mode,
Map<String,String> props)
Decompresses the given file using the given strategy to cache the results and the given properties. |
|
Pack200CompressorInputStream(InputStream in)
Decompresses the given stream, caching the decompressed data in memory. |
|
Pack200CompressorInputStream(InputStream in,
Map<String,String> props)
Decompresses the given stream, caching the decompressed data in memory and using the given properties. |
|
Pack200CompressorInputStream(InputStream in,
Pack200Strategy mode)
Decompresses the given stream using the given strategy to cache the results. |
|
Pack200CompressorInputStream(InputStream in,
Pack200Strategy mode,
Map<String,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(InputStream in)
throws IOException
When reading from a file the File-arg constructor may provide better performance.
IOException
public Pack200CompressorInputStream(InputStream in,
Pack200Strategy mode)
throws IOException
When reading from a file the File-arg constructor may provide better performance.
IOException
public Pack200CompressorInputStream(InputStream in,
Map<String,String> props)
throws IOException
When reading from a file the File-arg constructor may provide better performance.
IOException
public Pack200CompressorInputStream(InputStream in,
Pack200Strategy mode,
Map<String,String> props)
throws IOException
When reading from a file the File-arg constructor may provide better performance.
IOException
public Pack200CompressorInputStream(File f)
throws IOException
IOException
public Pack200CompressorInputStream(File f,
Pack200Strategy mode)
throws IOException
IOException
public Pack200CompressorInputStream(File f,
Map<String,String> props)
throws IOException
IOException
public Pack200CompressorInputStream(File f,
Pack200Strategy mode,
Map<String,String> props)
throws IOException
IOException| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int count)
throws IOException
read in class InputStreamIOException
public int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int limit)
mark in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long count)
throws IOException
skip in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
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 | |||||||||