|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.healthmarketscience.jackcess.scsu.SCSU
com.healthmarketscience.jackcess.scsu.Compress
public class Compress
This class implements a simple compression algorithm
Constructor Summary | |
---|---|
Compress()
|
Method Summary | |
---|---|
int |
bytesWritten()
returns the number of bytes written |
int |
charsRead()
returns the number of bytes written |
byte[] |
compress(java.lang.String inStr)
|
static boolean |
isAsciiCrLfOrTab(int ch)
returns true if the character is ASCII, but not a control other than CR, LF and TAB |
int |
outputSingleByteRun(char[] in,
byte[] out)
output a run of characters in single byte mode In single byte mode pass through characters in the ASCII range, but quote characters overlapping with compression command codes. |
char |
outputUnicodeRun(char[] in,
byte[] out)
output a run of characters in Unicode mode A run of Unicode mode consists of characters which are all in the range of non-compressible characters or isolated occurrence of any other characters. |
void |
reset()
reset is only needed to bail out after an exception and restart with new input |
int |
simpleCompress(char[] in,
int iStartIn,
byte[] out,
int iStartOut)
compress a Unicode character array with some simplifying assumptions |
Methods inherited from class com.healthmarketscience.jackcess.scsu.SCSU |
---|
isCompressible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Compress()
Method Detail |
---|
public static boolean isAsciiCrLfOrTab(int ch)
public int outputSingleByteRun(char[] in, byte[] out) throws EndOfOutputException, EndOfInputException, IllegalInputException
in
- - input character arrayout
- - output byte array
EndOfOutputException
EndOfInputException
IllegalInputException
public char outputUnicodeRun(char[] in, byte[] out) throws EndOfOutputException
in
- - input character arrayout
- - output byte array
EndOfOutputException
public int simpleCompress(char[] in, int iStartIn, byte[] out, int iStartOut) throws IllegalInputException, EndOfInputException, EndOfOutputException
IllegalInputException
EndOfInputException
EndOfOutputException
public byte[] compress(java.lang.String inStr) throws IllegalInputException, EndOfInputException
IllegalInputException
EndOfInputException
public void reset()
reset
in class SCSU
public int bytesWritten()
public int charsRead()
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |