compressors
Class LZ77v02
java.lang.Object
compressors.LZ77v02
public class LZ77v02
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LZ77v02
public LZ77v02()
LZ77v02
public LZ77v02(java.lang.String s)
encode
public java.util.ArrayList<TupleExt> encode()
- Encodes string rawData, stores the encoded data in encodedData and returns encodedData
decode
public java.lang.String decode()
- Decodes encodedData into a String, stores the string in decodedData and returns the string.
computeCompressionFactor
public double computeCompressionFactor()
- Performs an analysis of the compression between rawData and encodedData, prints the results and returns the compression factor.
getRawData
public java.lang.String getRawData()
- Returns:
- the rawData
setRawData
public void setRawData(java.lang.String rawData)
- Parameters:
rawData
- the rawData to set
getEncodedData
public java.util.ArrayList<TupleExt> getEncodedData()
- Returns:
- the encodedData
setEncodedData
public void setEncodedData(java.util.ArrayList<TupleExt> encodedData)
- Parameters:
encodedData
- the encodedData to set
getSearchWindowLen
public int getSearchWindowLen()
- Returns:
- the searchWindowLen
setSearchWindowLen
public void setSearchWindowLen(int searchWindowLen)
- Parameters:
searchWindowLen
- the searchWindowLen to set
getLookAheadWindowLen
public int getLookAheadWindowLen()
- Returns:
- the lookAheadWindowLen
setLookAheadWindowLen
public void setLookAheadWindowLen(int lookAheadWindowLen)
- Parameters:
lookAheadWindowLen
- the lookAheadWindowLen to set
main
public static void main(java.lang.String[] args)
getCompFactor
public double getCompFactor()
- Returns:
- the compFactor
getDict
public LZ77Dictionary getDict()
- Returns:
- the dict
setCompFactor
public void setCompFactor(double compFactor)
- Parameters:
compFactor
- the compFactor to set
setDict
public void setDict(LZ77Dictionary dict)
- Parameters:
dict
- the dict to set
getLz77TestId
public int getLz77TestId()
- Returns:
- the lz77TestId
setLz77TestId
public void setLz77TestId(int lz77TestId)
- Parameters:
lz77TestId
- the lz77TestId to set