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, getUncompressedCount
public 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.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int count) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int limit)
mark
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public long skip(long count) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public static boolean matches(byte[] signature, int length)
signature
- the bytes to checklength
- the number of bytes to check"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"