public class Pack200CompressorInputStream extends CompressorInputStream
The getCount and getBytesRead methods always return 0.
| Constructor and Description |
|---|
Pack200CompressorInputStream(File file)
Decompresses the given file, caching the decompressed data in memory.
|
Pack200CompressorInputStream(File file,
Map<String,String> properties)
Decompresses the given file, caching the decompressed data in memory and using the given properties.
|
Pack200CompressorInputStream(File file,
Pack200Strategy mode)
Decompresses the given file using the given strategy to cache the results.
|
Pack200CompressorInputStream(File file,
Pack200Strategy mode,
Map<String,String> properties)
Decompresses the given file using the given strategy to cache the results and the given properties.
|
Pack200CompressorInputStream(InputStream inputStream)
Decompresses the given stream, caching the decompressed data in memory.
|
Pack200CompressorInputStream(InputStream inputStream,
Map<String,String> properties)
Decompresses the given stream, caching the decompressed data in memory and using the given properties.
|
Pack200CompressorInputStream(InputStream inputStream,
Pack200Strategy mode)
Decompresses the given stream using the given strategy to cache the results.
|
Pack200CompressorInputStream(InputStream inputStream,
Pack200Strategy mode,
Map<String,String> properties)
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(File file) throws IOException
file - the file to decompressIOException - if reading failspublic Pack200CompressorInputStream(File file, Map<String,String> properties) throws IOException
file - the file to decompressproperties - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(File file, Pack200Strategy mode) throws IOException
file - the file to decompressmode - the strategy to useIOException - if reading failspublic Pack200CompressorInputStream(File file, Pack200Strategy mode, Map<String,String> properties) throws IOException
file - the file to decompressmode - the strategy to useproperties - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(InputStream inputStream) throws IOException
When reading from a file the File-arg constructor may provide better performance.
inputStream - the InputStream from which this object should be createdIOException - if reading failspublic Pack200CompressorInputStream(InputStream inputStream, Map<String,String> properties) throws IOException
When reading from a file the File-arg constructor may provide better performance.
inputStream - the InputStream from which this object should be createdproperties - Pack200 properties to useIOException - if reading failspublic Pack200CompressorInputStream(InputStream inputStream, Pack200Strategy mode) throws IOException
When reading from a file the File-arg constructor may provide better performance.
inputStream - the InputStream from which this object should be createdmode - the strategy to useIOException - if reading failspublic Pack200CompressorInputStream(InputStream inputStream, Pack200Strategy mode, Map<String,String> properties) throws IOException
When reading from a file the File-arg constructor may provide better performance.
inputStream - the InputStream from which this object should be createdmode - the strategy to useproperties - Pack200 properties to useIOException - if reading failspublic static boolean matches(byte[] signature,
int length)
signature - the bytes to checklength - the number of bytes to checkpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int limit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic 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 void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long count)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2002–2025. All rights reserved.