public void setPresetDict(int dictSize, byte[] presetDict) {
        assert !isStarted();
        assert writePos == 0;

        if (presetDict != null) {
            // If the preset dictionary buffer is bigger than the dictionary
            // size, copy only the tail of the preset dictionary.
            int copySize = Math.min(presetDict.length, dictSize);
            int offset = presetDict.length - copySize;
            System.arraycopy(presetDict, offset, buf, 0, copySize);
            writePos += copySize;
            skip(copySize);
        }
    }
public void setPresetDict(int dictSize, byte[] presetDict) {
        assert !isStarted();
        assert writePos == 0;

        if (presetDict != null) {
            
            
            int copySize = Math.min(presetDict.length, dictSize);
            int offset = presetDict.length - copySize;
            System.arraycopy(presetDict, offset, buf, 0, copySize);
            writePos += copySize;
            skip(copySize);
        }
    }
public void setPresetDict ( int dictSize , byte [ ] presetDict ) { assert ! isStarted ( ) ; assert writePos == 0 ; if ( presetDict != null ) { // If the preset dictionary buffer is bigger than the dictionary // size, copy only the tail of the preset dictionary. int copySize = Math . min ( presetDict . length , dictSize ) ; int offset = presetDict . length - copySize ; System . arraycopy ( presetDict , offset , buf , 0 , copySize ) ; writePos += copySize ; skip ( copySize ) ; } }
Sets a preset dictionary. If a preset dictionary is wanted, this
function must be called immediately after creating the LZEncoder
before any data has been encoded.
Sets a preset dictionary . If a preset dictionary is wanted this function must be called immediately after creating the LZEncoder before any data has been encoded .