nl_tokens: 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 .
pl_tokens: 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 . <mask> ( presetDict . length , dictSize ) ; int offset = presetDict . length - copySize ; System . arraycopy ( presetDict , offset , buf , 0 , copySize ) ; writePos += copySize ; skip ( copySize ) ; } }