public class Pack200CompressorOutputStream extends CompressorOutputStream
Constructor and Description |
---|
Pack200CompressorOutputStream(OutputStream out)
Compresses the given stream, caching the compressed data in
memory.
|
Pack200CompressorOutputStream(OutputStream out,
Map<String,String> props)
Compresses the given stream, caching the compressed data in
memory and using the given properties.
|
Pack200CompressorOutputStream(OutputStream out,
Pack200Strategy mode)
Compresses the given stream using the given strategy to cache
the results.
|
Pack200CompressorOutputStream(OutputStream out,
Pack200Strategy mode,
Map<String,String> props)
Compresses the given stream using the given strategy to cache
the results and the given properties.
|
public Pack200CompressorOutputStream(OutputStream out) throws IOException
out
- the stream to write toIOException
- if writing failspublic Pack200CompressorOutputStream(OutputStream out, Pack200Strategy mode) throws IOException
out
- the stream to write tomode
- the strategy to useIOException
- if writing failspublic Pack200CompressorOutputStream(OutputStream out, Map<String,String> props) throws IOException
out
- the stream to write toprops
- Pack200 properties to useIOException
- if writing failspublic Pack200CompressorOutputStream(OutputStream out, Pack200Strategy mode, Map<String,String> props) throws IOException
out
- the stream to write tomode
- the strategy to useprops
- Pack200 properties to useIOException
- if writing failspublic void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int from, int length) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void finish() throws IOException
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.