public class LZMACompressor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LZMACompressor.StreamAdapter
This simple wrapper make an IOutputBitStream look like in InputSteam.
|
Constructor and Description |
---|
LZMACompressor() |
Modifier and Type | Method and Description |
---|---|
void |
compress(org.apache.flex.swf.io.IOutputBitStream outputBitStream)
Compresses all of the data in outputBitStream into
this.byteArrayOutputStream Must be called before any of the write
methods.
|
long |
getLengthOfCompressedPayload() |
void |
writeDataAndEnd(OutputStream outputStream)
Write the actual compressed payload, and the EOS bytes at the end
|
void |
writeLZMAProperties(OutputStream outputStream)
Write the LZMA compression properties to the output.
|
public void compress(org.apache.flex.swf.io.IOutputBitStream outputBitStream) throws IOException
IOException
public void writeLZMAProperties(OutputStream outputStream) throws IOException
outputStream
- The output stream.IOException
public void writeDataAndEnd(OutputStream outputStream) throws IOException
IOException
public long getLengthOfCompressedPayload()
Copyright © 2016 The Apache Software Foundation. All rights reserved.