Java Doc for UCharacterProperty.java in  » 6.0-JDK-Modules-sun » text » sun » text » normalizer » 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 » 6.0 JDK Modules sun » text » sun.text.normalizer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.text.normalizer.UCharacterProperty

UCharacterProperty
final public class UCharacterProperty implements Trie.DataManipulate(Code)

Internal class used for Unicode character property database.

This classes store binary data read from uprops.icu. It does not have the capability to parse the data into more high-level information. It only returns bytes of information when required.

Due to the form most commonly used for retrieval, array of char is used to store the binary data.

UCharacterPropertyDB also contains information on accessing indexes to significant points in the binary data.

Responsibility for molding the binary data into more meaning form lies on UCharacter.


author:
   Syn Wee Quek
since:
   release 2.1, february 1st 2002


Field Summary
final public static  intEXCEPTION_MASK
    
final public static  intEXC_CASE_FOLDING_
    
final public static  intEXC_COMBINING_CLASS_
     EXC_COMBINING_CLASS_ is not found in ICU.
final public static  intEXC_DENOMINATOR_VALUE_
    
final public static  intEXC_LOWERCASE_
    
final public static  intEXC_MIRROR_MAPPING_
    
final public static  intEXC_NUMERIC_VALUE_
    
final public static  intEXC_SPECIAL_CASING_
    
final public static  intEXC_TITLECASE_
    
final public static  intEXC_UNUSED_
    
final public static  intEXC_UPPERCASE_
    
final public static  charLATIN_SMALL_LETTER_I_
    
final public static  intTYPE_MASK
    
 intm_additionalColumnsCount_
    
 CharTriem_additionalTrie_
    
 intm_additionalVectors_
     Extra property vectors, 1st column for age and second for binary properties.
 charm_case_
    
 intm_exception_
    
 intm_maxBlockScriptValue_
    
 intm_maxJTGValue_
    
public  intm_property_
    
public  char[]m_trieData_
    
public  char[]m_trieIndex_
    
public  intm_trieInitialValue_
    
public  CharTriem_trie_
    
public  VersionInfom_unicodeVersion_
    


Method Summary
public  UnicodeSetaddPropertyStarts(UnicodeSet set)
    
public  intgetAdditional(int codepoint)
     Gets the unicode additional properties.
public  VersionInfogetAge(int codepoint)
    

Get the "age" of the code point.

The "age" is the Unicode version when the code point was first designated (as a non-character or for Private Use) or assigned a character.

This can be useful to avoid emitting code points to receiving processes that do not accept newer characters.

The data is from the UCD file DerivedAge.txt.

This API does not check the validity of the codepoint.


Parameters:
  codepoint - The code point.
public  intgetException(int index, int etype)
     Gets the exception value at the index, assuming that data type is available.
public static  intgetExceptionIndex(int prop)
    
public  voidgetFoldCase(int index, int count, StringBuffer str)
    
public  intgetFoldingOffset(int value)
     Called by com.ibm.icu.util.Trie to extract from a lead surrogate's data the index array offset of the indexes for that lead surrogate.
public  UnicodeSetgetInclusions()
    
public static  UCharacterPropertygetInstance()
     Loads the property data and initialize the UCharacterProperty instance.
public  intgetProperty(int ch)
     Gets the property value at the index.
public static  intgetRawSupplementary(char lead, char trail)
    
public static  intgetSignedValue(int prop)
    
public  booleanhasExceptionValue(int index, int indicator)
    
public static  booleanisRuleWhiteSpace(int c)
     Checks if the argument c is to be treated as a white space in ICU rules.
public  voidsetIndexData(CharTrie.FriendAgent friendagent)
    

Field Detail
EXCEPTION_MASK
final public static int EXCEPTION_MASK(Code)
Exception test mask



EXC_CASE_FOLDING_
final public static int EXC_CASE_FOLDING_(Code)
Exception indicator for case folding type



EXC_COMBINING_CLASS_
final public static int EXC_COMBINING_CLASS_(Code)
EXC_COMBINING_CLASS_ is not found in ICU. Used to retrieve the combining class of the character in the exception value



EXC_DENOMINATOR_VALUE_
final public static int EXC_DENOMINATOR_VALUE_(Code)
Exception indicator for denominator type



EXC_LOWERCASE_
final public static int EXC_LOWERCASE_(Code)
Exception indicator for lowercase type



EXC_MIRROR_MAPPING_
final public static int EXC_MIRROR_MAPPING_(Code)
Exception indicator for mirror type



EXC_NUMERIC_VALUE_
final public static int EXC_NUMERIC_VALUE_(Code)
Exception indicator for numeric type



EXC_SPECIAL_CASING_
final public static int EXC_SPECIAL_CASING_(Code)
Exception indicator for special casing type



EXC_TITLECASE_
final public static int EXC_TITLECASE_(Code)
Exception indicator for titlecase type



EXC_UNUSED_
final public static int EXC_UNUSED_(Code)
Exception indicator for digit type



EXC_UPPERCASE_
final public static int EXC_UPPERCASE_(Code)
Exception indicator for uppercase type



LATIN_SMALL_LETTER_I_
final public static char LATIN_SMALL_LETTER_I_(Code)
Latin lowercase i



TYPE_MASK
final public static int TYPE_MASK(Code)
Character type mask



m_additionalColumnsCount_
int m_additionalColumnsCount_(Code)
Number of additional columns



m_additionalTrie_
CharTrie m_additionalTrie_(Code)
Extra property trie



m_additionalVectors_
int m_additionalVectors_(Code)
Extra property vectors, 1st column for age and second for binary properties.



m_case_
char m_case_(Code)
Case table



m_exception_
int m_exception_(Code)
Exception property table



m_maxBlockScriptValue_
int m_maxBlockScriptValue_(Code)
Maximum values for block, bits used as in vector word 0



m_maxJTGValue_
int m_maxJTGValue_(Code)
Maximum values for script, bits used as in vector word 0



m_property_
public int m_property_(Code)
Character property table



m_trieData_
public char[] m_trieData_(Code)
Optimization CharTrie data array



m_trieIndex_
public char[] m_trieIndex_(Code)
Optimization CharTrie index array



m_trieInitialValue_
public int m_trieInitialValue_(Code)
Optimization CharTrie data offset



m_trie_
public CharTrie m_trie_(Code)
Trie data



m_unicodeVersion_
public VersionInfo m_unicodeVersion_(Code)
Unicode version





Method Detail
addPropertyStarts
public UnicodeSet addPropertyStarts(UnicodeSet set)(Code)



getAdditional
public int getAdditional(int codepoint)(Code)
Gets the unicode additional properties. C version getUnicodeProperties.
Parameters:
  codepoint - codepoint whose additional properties is to beretrieved unicode properties



getAge
public VersionInfo getAge(int codepoint)(Code)

Get the "age" of the code point.

The "age" is the Unicode version when the code point was first designated (as a non-character or for Private Use) or assigned a character.

This can be useful to avoid emitting code points to receiving processes that do not accept newer characters.

The data is from the UCD file DerivedAge.txt.

This API does not check the validity of the codepoint.


Parameters:
  codepoint - The code point. the Unicode version number



getException
public int getException(int index, int etype)(Code)
Gets the exception value at the index, assuming that data type is available. Result is undefined if data is not available. Use hasExceptionValue() to determine data's availability.
Parameters:
  index -
Parameters:
  etype - exception data type exception data type value at index



getExceptionIndex
public static int getExceptionIndex(int prop)(Code)
Getting the exception index for argument property
Parameters:
  prop - character property exception index



getFoldCase
public void getFoldCase(int index, int count, StringBuffer str)(Code)
Gets the folded case value at the index
Parameters:
  index - of the case value to be retrieved
Parameters:
  count - number of characters to retrieve
Parameters:
  str - string buffer to which to append the result



getFoldingOffset
public int getFoldingOffset(int value)(Code)
Called by com.ibm.icu.util.Trie to extract from a lead surrogate's data the index array offset of the indexes for that lead surrogate.
Parameters:
  value - data value for a surrogate from the trie, including thefolding offset data offset or 0 if there is no data for the lead surrogate



getInclusions
public UnicodeSet getInclusions()(Code)



getInstance
public static UCharacterProperty getInstance() throws RuntimeException(Code)
Loads the property data and initialize the UCharacterProperty instance.
throws:
  RuntimeException - when data is missing or data has been corrupted



getProperty
public int getProperty(int ch)(Code)
Gets the property value at the index. This is optimized. Note this is alittle different from CharTrie the index m_trieData_ is never negative.
Parameters:
  ch - code point whose property value is to be retrieved property value of code point



getRawSupplementary
public static int getRawSupplementary(char lead, char trail)(Code)
Forms a supplementary code point from the argument character
Note this is for internal use hence no checks for the validity of the surrogate characters are done
Parameters:
  lead - lead surrogate character
Parameters:
  trail - trailing surrogate character code point of the supplementary character



getSignedValue
public static int getSignedValue(int prop)(Code)
Getting the signed numeric value of a character embedded in the property argument
Parameters:
  prop - the character signed numberic value



hasExceptionValue
public boolean hasExceptionValue(int index, int indicator)(Code)
Determines if the exception value passed in has the kind of information which the indicator wants, e.g if the exception value contains the digit value of the character
Parameters:
  index - exception index
Parameters:
  indicator - type indicator true if type value exist



isRuleWhiteSpace
public static boolean isRuleWhiteSpace(int c)(Code)
Checks if the argument c is to be treated as a white space in ICU rules. Usually ICU rule white spaces are ignored unless quoted.
Parameters:
  c - codepoint to check true if c is a ICU white space



setIndexData
public void setIndexData(CharTrie.FriendAgent friendagent)(Code)
Java friends implementation



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.