public class Pack200CompressorOutputStream extends CompressorOutputStream
| Modifier and Type | Field and Description |
|---|---|
private boolean |
finished |
private java.io.OutputStream |
originalOutput |
private java.util.Map<java.lang.String,java.lang.String> |
properties |
private StreamBridge |
streamBridge |
| Constructor and Description |
|---|
Pack200CompressorOutputStream(java.io.OutputStream out)
Compresses the given stream, caching the compressed data in
memory.
|
Pack200CompressorOutputStream(java.io.OutputStream out,
java.util.Map<java.lang.String,java.lang.String> props)
Compresses the given stream, caching the compressed data in
memory and using the given properties.
|
Pack200CompressorOutputStream(java.io.OutputStream out,
Pack200Strategy mode)
Compresses the given stream using the given strategy to cache
the results.
|
Pack200CompressorOutputStream(java.io.OutputStream out,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
Compresses the given stream using the given strategy to cache
the results and the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish() |
void |
write(byte[] b) |
void |
write(byte[] b,
int from,
int length) |
void |
write(int b) |
private boolean finished
private final java.io.OutputStream originalOutput
private final StreamBridge streamBridge
private final java.util.Map<java.lang.String,java.lang.String> properties
public Pack200CompressorOutputStream(java.io.OutputStream out)
throws java.io.IOException
out - the stream to write tojava.io.IOException - if writing failspublic Pack200CompressorOutputStream(java.io.OutputStream out,
Pack200Strategy mode)
throws java.io.IOException
out - the stream to write tomode - the strategy to usejava.io.IOException - if writing failspublic Pack200CompressorOutputStream(java.io.OutputStream out,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
out - the stream to write toprops - Pack200 properties to usejava.io.IOException - if writing failspublic Pack200CompressorOutputStream(java.io.OutputStream out,
Pack200Strategy mode,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
out - the stream to write tomode - the strategy to useprops - Pack200 properties to usejava.io.IOException - if writing failspublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int from,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void finish()
throws java.io.IOException
java.io.IOException