public class Pack200CompressorInputStream extends CompressorInputStream
The getCount and getBytesRead methods always return 0.
| Constructor and Description |
|---|
Pack200CompressorInputStream(java.io.File file)
Decompresses the given file, caching the decompressed data in memory.
|
Pack200CompressorInputStream(java.io.File file,
java.util.Map<java.lang.String,java.lang.String> properties)
Decompresses the given file, caching the decompressed data in memory and using the given properties.
|
Pack200CompressorInputStream(java.io.File file,
Pack200Strategy mode)
Decompresses the given file using the given strategy to cache the results.
|
Pack200CompressorInputStream(java.io.File file,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> properties)
Decompresses the given file using the given strategy to cache the results and the given properties.
|
Pack200CompressorInputStream(java.io.InputStream inputStream)
Decompresses the given stream, caching the decompressed data in memory.
|
Pack200CompressorInputStream(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.String> properties)
Decompresses the given stream, caching the decompressed data in memory and using the given properties.
|
Pack200CompressorInputStream(java.io.InputStream inputStream,
Pack200Strategy mode)
Decompresses the given stream using the given strategy to cache the results.
|
Pack200CompressorInputStream(java.io.InputStream inputStream,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.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) |
getBytesRead, getCount, getUncompressedCountpublic Pack200CompressorInputStream(java.io.File file)
throws java.io.IOException
file - the file to decompressjava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.File file,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.IOException
file - the file to decompressproperties - Pack200 properties to usejava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.File file,
Pack200Strategy mode)
throws java.io.IOException
file - the file to decompressmode - the strategy to usejava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.File file,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.IOException
file - the file to decompressmode - the strategy to useproperties - Pack200 properties to usejava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.InputStream inputStream)
throws java.io.IOException
When reading from a file the File-arg constructor may provide better performance.
inputStream - the InputStream from which this object should be createdjava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.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 usejava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.InputStream inputStream,
Pack200Strategy mode)
throws java.io.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 usejava.io.IOException - if reading failspublic Pack200CompressorInputStream(java.io.InputStream inputStream,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.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 usejava.io.IOException - if reading failspublic static boolean matches(byte[] signature,
int length)
signature - the bytes to checklength - the number of bytes to checkpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int limit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int count)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long count)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved