Top Inners Fields Constructors Methods
org.tukaani.xz.lzma

public final Class LZMADecoder

extends LZMACoder
Class Inheritance
Imports
java.io.IOException, org.tukaani.xz.lz.LZDecoder, org.tukaani.xz.rangecoder.RangeDecoder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class

Field Summary

Modifier and TypeField and Description
private final LZMADecoder.LiteralDecoder
private final LZDecoder
private final LZMADecoder.LengthDecoder
private final RangeDecoder
private final LZMADecoder.LengthDecoder
Inherited from org.tukaani.xz.lzma.LZMACoder:
ALIGN_BITSALIGN_MASKALIGN_SIZEDIST_MODEL_ENDDIST_MODEL_STARTDIST_SLOTSDIST_STATESdistAligndistSlotsdistSpecialFULL_DISTANCESisMatchisRepisRep0isRep0LongisRep1isRep2MATCH_LEN_MAXMATCH_LEN_MINPOS_STATES_MAXposMaskREPSrepsstate

Constructor Summary

AccessConstructor and Description
public
LZMADecoder(LZDecoder lz, RangeDecoder rc, int lc, int lp, int pb)

Method Summary

Modifier and TypeMethod and Description
public void
private int
decodeMatch(int posState)

private int
decodeRepMatch(int posState)

public boolean
endMarkerDetected()

Returns true if LZMA end marker was detected.

public void
Inherited from org.tukaani.xz.lzma.LZMACoder:
getDistState

Field Detail

literalDecoderback to summary
private final LZMADecoder.LiteralDecoder literalDecoder
lzback to summary
private final LZDecoder lz
matchLenDecoderback to summary
private final LZMADecoder.LengthDecoder matchLenDecoder
rcback to summary
private final RangeDecoder rc
repLenDecoderback to summary
private final LZMADecoder.LengthDecoder repLenDecoder

Constructor Detail

LZMADecoderback to summary
public LZMADecoder(LZDecoder lz, RangeDecoder rc, int lc, int lp, int pb)

Method Detail

decodeback to summary
public void decode() throws IOException
decodeMatchback to summary
private int decodeMatch(int posState) throws IOException
decodeRepMatchback to summary
private int decodeRepMatch(int posState) throws IOException
endMarkerDetectedback to summary
public boolean endMarkerDetected()

Returns true if LZMA end marker was detected. It is encoded as the maximum match distance which with signed ints becomes -1. This function is needed only for LZMA1. LZMA2 doesn't use the end marker in the LZMA layer.

resetback to summary
public void reset()

Overrides org.tukaani.xz.lzma.LZMACoder.reset.

org.tukaani.xz.lzma back to summary

private Class LZMADecoder.LengthDecoder

extends LengthCoder
Class Inheritance

Field Summary

Inherited from org.tukaani.xz.lzma.LZMACoder.LengthCoder:
choicehighHIGH_SYMBOLSlowLOW_SYMBOLSmidMID_SYMBOLS

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv int
decode(int posState)

Inherited from org.tukaani.xz.lzma.LZMACoder.LengthCoder:
reset

Constructor Detail

LengthDecoderback to summary
private LengthDecoder()

Method Detail

decodeback to summary
pack-priv int decode(int posState) throws IOException
org.tukaani.xz.lzma back to summary

private Class LZMADecoder.LiteralDecoder

extends LiteralCoder
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final LZMADecoder.LiteralDecoder.LiteralSubdecoder[]

Constructor Summary

AccessConstructor and Description
pack-priv
LiteralDecoder(int lc, int lp)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from org.tukaani.xz.lzma.LZMACoder.LiteralCoder:
getSubcoderIndex

Field Detail

subdecodersback to summary
private final LZMADecoder.LiteralDecoder.LiteralSubdecoder[] subdecoders

Constructor Detail

LiteralDecoderback to summary
pack-priv LiteralDecoder(int lc, int lp)

Method Detail

decodeback to summary
pack-priv void decode() throws IOException
resetback to summary
pack-priv void reset()
org.tukaani.xz.lzma back to summary

private Class LZMADecoder.LiteralDecoder.LiteralSubdecoder

extends LiteralSubcoder
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv void
Inherited from org.tukaani.xz.lzma.LZMACoder.LiteralCoder.LiteralSubcoder:
reset

Constructor Detail

LiteralSubdecoderback to summary
private LiteralSubdecoder()

Method Detail

decodeback to summary
pack-priv void decode() throws IOException