Java Doc for SCSU.java in  » Database-Client » Jackcess » com » healthmarketscience » jackcess » scsu » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » Jackcess » com.healthmarketscience.jackcess.scsu 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.healthmarketscience.jackcess.scsu.SCSU

All known Subclasses:   com.healthmarketscience.jackcess.scsu.Expand,
SCSU
abstract public class SCSU (Code)
Encoding text data in Unicode often requires more storage than using an existing 8-bit character set and limited to the subset of characters actually found in the text. The Unicode Compression Algorithm reduces the necessary storage while retaining the universality of Unicode. A full description of the algorithm can be found in document http://www.unicode.org/unicode/reports/tr6.html Summary The goal of the Unicode Compression Algorithm is the abilty to Express all code points in Unicode Approximate storage size for traditional character sets Work well for short strings Provide transparency for Latin-1 data Support very simple decoders Support simple as well as sophisticated encoders If needed, further compression can be achieved by layering standard file or disk-block based compression algorithms on top.

Features

Languages using small alphabets would contain runs of characters that are coded close together in Unicode. These runs are interrupted only by punctuation characters, which are themselves coded in proximity to each other in Unicode (usually in the ASCII range). Two basic mechanisms in the compression algorithm account for these two cases, sliding windows and static windows. A window is an area of 128 consecutive characters in Unicode. In the compressed data stream, each character from a sliding window would be represented as a byte between 0x80 and 0xFF, while a byte from 0x20 to 0x7F (as well as CR, LF, and TAB) would always mean an ASCII character (or control).

Notes on the Java implementation

A limitation of Java is the exclusive use of a signed byte data type. The following work arounds are required: Copying a byte to an integer variable and adding 256 for 'negative' bytes gives an integer in the range 0-255. Values of char are between 0x0000 and 0xFFFF in Java. Arithmetic on char values is unsigned. Extended characters require an int to store them. The sign is not an issue because only 1024*1024 + 65536 extended characters exist.


Field Summary
final static  byteSC0
     SCn Change to Window n.
final static  byteSC1
    
final static  byteSC2
    
final static  byteSC3
    
final static  byteSC4
    
final static  byteSC5
    
final static  byteSC6
    
final static  byteSC7
    
final static  byteSCU
    
final static  byteSD0
    
final static  byteSD1
    
final static  byteSD2
    
final static  byteSD3
    
final static  byteSD4
    
final static  byteSD5
    
final static  byteSD6
    
final static  byteSD7
    
final static  byteSDX
    
final static  byteSQ0
     SQn Quote from Window .
final static  byteSQ1
    
final static  byteSQ2
    
final static  byteSQ3
    
final static  byteSQ4
    
final static  byteSQ5
    
final static  byteSQ6
    
final static  byteSQ7
    
final static  byteSQU
    
final static  byteSrs
    
final static  byteUC0
    
final static  byteUC1
    
final static  byteUC2
    
final static  byteUC3
    
final static  byteUC4
    
final static  byteUC5
    
final static  byteUC6
    
final static  byteUC7
    
final static  byteUD0
    
final static  byteUD1
    
final static  byteUD2
    
final static  byteUD3
    
final static  byteUD4
    
final static  byteUD5
    
final static  byteUD6
    
final static  byteUD7
    
final static  byteUDX
    
final static  byteUQU
    
final static  byteUrs
    
 intdynamicOffset
     dynamic window offsets, intitialize to default values.
final static  intfixedOffset
    
final static  intfixedThreshold
    
final static  intgapOffset
    
final static  intgapThreshold
     Unicode code points from 3400 to E000 are not adressible by dynamic window, since in these areas no short run alphabets are found.
final static  intinitialDynamicOffset
    
final static  intreservedStart
    
final static  intstaticOffset
    


Method Summary
protected  intgetCurrentWindow()
    
public static  booleanisCompressible(char ch)
    
public  voidreset()
    
protected  voidselectWindow(int iWindow)
    

Field Detail
SC0
final static byte SC0(Code)
SCn Change to Window n.

If the following bytes are less than 0x80, interpret them as command bytes or pass them through, else add the offset for dynamic window n.




SC1
final static byte SC1(Code)



SC2
final static byte SC2(Code)



SC3
final static byte SC3(Code)



SC4
final static byte SC4(Code)



SC5
final static byte SC5(Code)



SC6
final static byte SC6(Code)



SC7
final static byte SC7(Code)



SCU
final static byte SCU(Code)



SD0
final static byte SD0(Code)



SD1
final static byte SD1(Code)



SD2
final static byte SD2(Code)



SD3
final static byte SD3(Code)



SD4
final static byte SD4(Code)



SD5
final static byte SD5(Code)



SD6
final static byte SD6(Code)



SD7
final static byte SD7(Code)



SDX
final static byte SDX(Code)



SQ0
final static byte SQ0(Code)
SQn Quote from Window .

If the following byte is less than 0x80, quote from static window n, else quote from dynamic window n.




SQ1
final static byte SQ1(Code)



SQ2
final static byte SQ2(Code)



SQ3
final static byte SQ3(Code)



SQ4
final static byte SQ4(Code)



SQ5
final static byte SQ5(Code)



SQ6
final static byte SQ6(Code)



SQ7
final static byte SQ7(Code)



SQU
final static byte SQU(Code)



Srs
final static byte Srs(Code)



UC0
final static byte UC0(Code)



UC1
final static byte UC1(Code)



UC2
final static byte UC2(Code)



UC3
final static byte UC3(Code)



UC4
final static byte UC4(Code)



UC5
final static byte UC5(Code)



UC6
final static byte UC6(Code)



UC7
final static byte UC7(Code)



UD0
final static byte UD0(Code)



UD1
final static byte UD1(Code)



UD2
final static byte UD2(Code)



UD3
final static byte UD3(Code)



UD4
final static byte UD4(Code)



UD5
final static byte UD5(Code)



UD6
final static byte UD6(Code)



UD7
final static byte UD7(Code)



UDX
final static byte UDX(Code)



UQU
final static byte UQU(Code)



Urs
final static byte Urs(Code)



dynamicOffset
int dynamicOffset(Code)
dynamic window offsets, intitialize to default values.



fixedOffset
final static int fixedOffset(Code)
Table of fixed predefined Offsets, and byte values that index into *



fixedThreshold
final static int fixedThreshold(Code)



gapOffset
final static int gapOffset(Code)



gapThreshold
final static int gapThreshold(Code)
Unicode code points from 3400 to E000 are not adressible by dynamic window, since in these areas no short run alphabets are found. Therefore add gapOffset to all values from gapThreshold



initialDynamicOffset
final static int initialDynamicOffset(Code)
initial offsets for the 8 dynamic (sliding) windows



reservedStart
final static int reservedStart(Code)



staticOffset
final static int staticOffset(Code)
constant offsets for the 8 static windows





Method Detail
getCurrentWindow
protected int getCurrentWindow()(Code)
select the active dynamic window *



isCompressible
public static boolean isCompressible(char ch)(Code)
whether a character is compressible



reset
public void reset()(Code)
reset is only needed to bail out after an exception and restart with new input



selectWindow
protected void selectWindow(int iWindow)(Code)
select the active dynamic window *



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.