Top Fields Constructors Methods
org.tukaani.xz.lz

pack-priv final Class HC4

extends LZEncoder
Class Inheritance
Imports
org.tukaani.xz.ArrayCache

Field Summary

Modifier and TypeField and Description
private final int[]
private int
private final int
private final int
private final Hash234
private int
private final Matches
Inherited from org.tukaani.xz.lz.LZEncoder:
bufbufSizematchLenMaxMF_BT4MF_HC4niceLenreadPos

Constructor Summary

AccessConstructor and Description
pack-priv
HC4(int dictSize, int beforeSizeMin, int readAheadMax, int niceLen, int matchLenMax, int depthLimit, ArrayCache arrayCache)

Creates a new LZEncoder with the HC4 match finder.

Method Summary

Modifier and TypeMethod and Description
public Matches
getMatches()

Implements abstract org.tukaani.xz.lz.LZEncoder.getMatches.

Runs match finder for the next byte and returns the matches found.
pack-priv static int
getMemoryUsage(int dictSize)

Gets approximate memory usage of the match finder as kibibytes.

private int

Returns:

number of bytes available, including the current byte
movePos
()

Moves to the next byte, checks that there is enough available space, and possibly normalizes the hash tables and the hash chain.

public void
public void
skip(int len)

Implements abstract org.tukaani.xz.lz.LZEncoder.skip.

Skips the given number of bytes in the match finder.
Inherited from org.tukaani.xz.lz.LZEncoder:
copyUncompressedfillWindowgetAvailgetBytegetBytegetInstancegetMatchLengetMatchLengetMemoryUsagegetPoshasEnoughDataisStartedmovePosnormalizesetFinishingsetFlushingsetPresetDictverifyMatches

Field Detail

chainback to summary
private final int[] chain
cyclicPosback to summary
private int cyclicPos
cyclicSizeback to summary
private final int cyclicSize
depthLimitback to summary
private final int depthLimit
hashback to summary
private final Hash234 hash
lzPosback to summary
private int lzPos
matchesback to summary
private final Matches matches

Constructor Detail

HC4back to summary
pack-priv HC4(int dictSize, int beforeSizeMin, int readAheadMax, int niceLen, int matchLenMax, int depthLimit, ArrayCache arrayCache)

Creates a new LZEncoder with the HC4 match finder. See LZEncoder.getInstance for parameter descriptions.

Method Detail

getMatchesback to summary
public Matches getMatches()

Implements abstract org.tukaani.xz.lz.LZEncoder.getMatches.

Doc from org.tukaani.xz.lz.LZEncoder.getMatches.

Runs match finder for the next byte and returns the matches found.

getMemoryUsageback to summary
pack-priv static int getMemoryUsage(int dictSize)

Gets approximate memory usage of the match finder as kibibytes.

movePosback to summary
private int movePos()

Moves to the next byte, checks that there is enough available space, and possibly normalizes the hash tables and the hash chain.

Returns:int

number of bytes available, including the current byte

putArraysToCacheback to summary
public void putArraysToCache(ArrayCache arrayCache)

Overrides org.tukaani.xz.lz.LZEncoder.putArraysToCache.

skipback to summary
public void skip(int len)

Implements abstract org.tukaani.xz.lz.LZEncoder.skip.

Doc from org.tukaani.xz.lz.LZEncoder.skip.

Skips the given number of bytes in the match finder.