org.apache.commons.compress.compressors.pack200
public class Pack200CompressorInputStream extends CompressorInputStream
The getCount
and getBytesRead
methods always
return 0.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
count, count, getBytesRead, getCount, pushedBackBytes
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
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int count) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void mark(int limit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long count) throws IOException
skip
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public static boolean matches(byte[] signature, int length)
signature
- the bytes to checklength
- the number of bytes to checkCopyright © 2014 The Apache Software Foundation. All rights reserved.