com.ning.compress.lzf
Class LZFEncoder

java.lang.Object
  extended by com.ning.compress.lzf.LZFEncoder

public class LZFEncoder
extends Object

Encoder that handles splitting of input into chunks to encode, calls ChunkEncoder to compress individual chunks and combines resulting chunks into contiguous output byte array.

Author:
[email protected]

Method Summary
static byte[] encode(byte[] data)
           
static byte[] encode(byte[] data, int length)
          Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility).
static byte[] encode(byte[] data, int offset, int length)
          Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility).
static byte[] encode(ChunkEncoder enc, byte[] data, int length)
           
static byte[] encode(ChunkEncoder enc, byte[] data, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static byte[] encode(byte[] data)
                     throws IOException
Throws:
IOException

encode

public static byte[] encode(byte[] data,
                            int length)
                     throws IOException
Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility). Result consists of a sequence of chunks.

Throws:
IOException

encode

public static byte[] encode(byte[] data,
                            int offset,
                            int length)
                     throws IOException
Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility). Result consists of a sequence of chunks.

Throws:
IOException
Since:
0.8.1

encode

public static byte[] encode(ChunkEncoder enc,
                            byte[] data,
                            int length)
                     throws IOException
Throws:
IOException

encode

public static byte[] encode(ChunkEncoder enc,
                            byte[] data,
                            int offset,
                            int length)
                     throws IOException
Throws:
IOException
Since:
0.8.1


Copyright © 2011. All Rights Reserved.