|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| 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 |
|---|
getCurrentWindow, isCompressible, selectWindow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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
EndOfInputExceptionpublic void reset()
reset in class SCSUpublic int bytesWritten()
public int charsRead()
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||