Class Unpack
java.lang.Object
com.github.junrar.unpack.vm.BitInput
com.github.junrar.unpack.Unpack15
com.github.junrar.unpack.Unpack20
com.github.junrar.unpack.Unpack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int[]private booleanprivate final List<UnpackFilter> private intprivate intprivate final ModelPPMprivate booleanprivate intprivate intprivate final List<UnpackFilter> private final RarVMprivate booleanprivate BlockTypesprivate final byte[]private longFields inherited from class Unpack20
AudV, BD, DBits, DD, DDecode, LBits, LD, LDD, LDecode, MD, RD, SDBits, SDDecode, UnpAudioBlock, UnpChannelDelta, UnpChannels, UnpCurChannel, UnpOldTable20Fields inherited from class Unpack15
AvrLn1, AvrLn2, AvrLn3, AvrPlc, AvrPlcB, Buf60, ChSet, ChSetA, ChSetB, ChSetC, destUnpSize, FlagBuf, FlagsCnt, lastDist, lastLength, LCount, MaxDist3, Nhfb, Nlzb, NToPl, NToPlB, NToPlC, NumHuf, oldDist, oldDistPtr, Place, PlaceA, PlaceB, PlaceC, readBorder, readTop, ShortLen1, ShortLen2, ShortXor1, ShortXor2, StMode, suspended, unpAllBuf, unpIO, unpPtr, unpSomeRead, window, wrPtr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanvoidcleanUp()private voidcopyString(int length, int distance) voiddoUnpack(int method, boolean solid) private voidintgetChar()intvoidinit(byte[] window) private voidprivate voidinsertLastMatch(int length, int distance) private voidinsertOldDist(int distance) booleanprivate booleanprivate booleanprivate booleanprivate booleanvoidsetDestSize(long destSize) voidsetPpmEscChar(int ppmEscChar) voidsetSuspended(boolean suspended) private voidunpack29(boolean solid) protected voidunpInitData(boolean solid) private voidUnpWriteArea(int startPtr, int endPtr) private voidprivate voidUnpWriteData(byte[] data, int offset, int size) private voidMethods inherited from class Unpack20
CopyString20, DecodeAudio, decodeNumber, makeDecodeTables, ReadLastTables, ReadTables20, unpack20, unpInitData20Methods inherited from class Unpack15
corrHuff, decodeNum, getFlagsBuf, huffDecode, initHuff, longLZ, oldCopyString, oldUnpInitData, oldUnpWriteBuf, shortLZ, unpack15, unpReadBuf
-
Field Details
-
ppm
-
ppmEscChar
private int ppmEscChar -
rarVM
-
filters
-
prgStack
-
oldFilterLengths
-
lastFilter
private int lastFilter -
tablesRead
private boolean tablesRead -
unpOldTable
private final byte[] unpOldTable -
unpBlockType
-
writtenFileSize
private long writtenFileSize -
fileExtracted
private boolean fileExtracted -
ppmError
private boolean ppmError -
prevLowDist
private int prevLowDist -
lowDistRepCount
private int lowDistRepCount -
DBitLengthCounts
public static int[] DBitLengthCounts
-
-
Constructor Details
-
Unpack
-
-
Method Details
-
init
public void init(byte[] window) -
doUnpack
- Throws:
IOExceptionRarException
-
unstoreFile
- Throws:
IOExceptionRarException
-
unpack29
- Throws:
IOExceptionRarException
-
UnpWriteBuf
- Throws:
IOException
-
UnpWriteArea
- Throws:
IOException
-
UnpWriteData
- Throws:
IOException
-
insertOldDist
private void insertOldDist(int distance) -
insertLastMatch
private void insertLastMatch(int length, int distance) -
copyString
private void copyString(int length, int distance) -
unpInitData
protected void unpInitData(boolean solid) - Specified by:
unpInitDatain classUnpack15
-
initFilters
private void initFilters() -
readEndOfBlock
- Throws:
IOExceptionRarException
-
readTables
- Throws:
IOExceptionRarException
-
readVMCode
- Throws:
IOExceptionRarException
-
readVMCodePPM
- Throws:
IOExceptionRarException
-
addVMCode
-
ExecuteCode
-
isFileExtracted
public boolean isFileExtracted() -
setDestSize
public void setDestSize(long destSize) -
setSuspended
public void setSuspended(boolean suspended) -
getChar
- Throws:
IOExceptionRarException
-
getPpmEscChar
public int getPpmEscChar() -
setPpmEscChar
public void setPpmEscChar(int ppmEscChar) -
cleanUp
public void cleanUp()
-