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, getUncompressedCount, pushedBackBytespublic Pack200CompressorInputStream(InputStream in) throws IOException
When reading from a file the File-arg constructor may provide better performance.
in - the InputStream from which this object should be createdIOException - if reading failspublic Pack200CompressorInputStream(InputStream in, Pack200Strategy mode) throws IOException
When reading from a file the File-arg constructor may provide better performance.
in - the InputStream from which this object should be createdmode - the strategy to useIOException - if reading failspublic Pack200CompressorInputStream(InputStream in, Map<String,String> props) throws IOException
When reading from a file the File-arg constructor may provide better performance.
in - the InputStream from which this object should be createdprops - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(InputStream in, Pack200Strategy mode, Map<String,String> props) throws IOException
When reading from a file the File-arg constructor may provide better performance.
in - the InputStream from which this object should be createdmode - the strategy to useprops - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(File f) throws IOException
f - the file to decompressIOException - if reading failspublic Pack200CompressorInputStream(File f, Pack200Strategy mode) throws IOException
f - the file to decompressmode - the strategy to useIOException - if reading failspublic Pack200CompressorInputStream(File f, Map<String,String> props) throws IOException
f - the file to decompressprops - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(File f, Pack200Strategy mode, Map<String,String> props) throws IOException
f - the file to decompressmode - the strategy to useprops - Pack200 properties to useIOException - if reading failspublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b) throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int count) throws IOException
read in class InputStreamIOExceptionpublic int available() throws IOException
available in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int limit)
mark in class InputStreampublic void reset() throws IOException
reset in class InputStreamIOExceptionpublic long skip(long count) throws IOException
skip in class InputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic static boolean matches(byte[] signature, int length)
signature - the bytes to checklength - the number of bytes to checkCopyright © 2020 The Apache Software Foundation. All rights reserved.