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