Java Doc for EncodingUtils.java in  » HTML-Parser » JTidy » org » w3c » tidy » 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 » HTML Parser » JTidy » org.w3c.tidy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.tidy.EncodingUtils

EncodingUtils
final public class EncodingUtils (Code)

author:
   Fabrizio Giustina
version:
   $Revision: 1.7 $ ($Author: fgiust $)

Inner Class :static interface GetBytes
Inner Class :static interface PutBytes

Field Summary
final public static  intFSM_ASCII
     states for ISO 2022 A document in ISO-2022 based encoding uses some ESC sequences called "designator" to switch character sets.
final public static  intFSM_ESC
     state ESC.
final public static  intFSM_ESCD
     state ESCD.
final public static  intFSM_ESCDP
     state ESCDP.
final public static  intFSM_ESCP
     state ESCP.
final public static  intFSM_NONASCII
     state NONASCII.
final public static  intHIGH_UTF16_SURROGATE
     UTF-16 high surrogate.
final public static  intLOW_UTF16_SURROGATE
     utf16 low surrogate.
final public static  intMAX_UTF16_FROM_UCS4
     Max UTF-16 value.
final public static  intMAX_UTF8_FROM_UCS4
     Max UTF-88 valid char value.
final public static  intUNICODE_BOM
     the default (big-endian) UNICODE BOM.
final public static  intUNICODE_BOM_BE
     the big-endian (default) UNICODE BOM.
final public static  intUNICODE_BOM_LE
     the little-endian UNICODE BOM.
final public static  intUNICODE_BOM_UTF8
     the UTF-8 UNICODE BOM.
final public static  intUTF16_HIGH_SURROGATE_BEGIN
     UTF-16 surrogate pair areas: high surrogates begin.
final public static  intUTF16_HIGH_SURROGATE_END
     UTF-16 surrogate pair areas: high surrogates end.
final public static  intUTF16_LOW_SURROGATE_BEGIN
     UTF-16 surrogate pair areas: low surrogates begin.
final public static  intUTF16_LOW_SURROGATE_END
     UTF-16 surrogate pair areas: low surrogates end.
final public static  intUTF16_SURROGATES_BEGIN
     UTF-16 surrogates begin.


Method Summary
protected static  intdecodeMacRoman(int c)
     Function to convert from MacRoman to Unicode.
static  intdecodeSymbolFont(int c)
     Function to convert from Symbol Font chars to Unicode.
static  booleandecodeUTF8BytesToChar(int[] c, int firstByte, byte[] successorBytes, GetBytes getter, int[] count, int startInSuccessorBytesArray)
     Decodes an array of bytes to a char.
protected static  intdecodeWin1252(int c)
     Function for conversion from Windows-1252 to Unicode.
static  booleanencodeCharToUTF8Bytes(int c, byte[] encodebuf, PutBytes putter, int[] count)
     Encode a char to an array of bytes.

Field Detail
FSM_ASCII
final public static int FSM_ASCII(Code)
states for ISO 2022 A document in ISO-2022 based encoding uses some ESC sequences called "designator" to switch character sets. The designators defined and used in ISO-2022-JP are: "ESC" + "(" + ? for ISO646 variants "ESC" + "$" + ? and "ESC" + "$" + "(" + ? for multibyte character sets. State ASCII.



FSM_ESC
final public static int FSM_ESC(Code)
state ESC.



FSM_ESCD
final public static int FSM_ESCD(Code)
state ESCD.



FSM_ESCDP
final public static int FSM_ESCDP(Code)
state ESCDP.



FSM_ESCP
final public static int FSM_ESCP(Code)
state ESCP.



FSM_NONASCII
final public static int FSM_NONASCII(Code)
state NONASCII.



HIGH_UTF16_SURROGATE
final public static int HIGH_UTF16_SURROGATE(Code)
UTF-16 high surrogate.



LOW_UTF16_SURROGATE
final public static int LOW_UTF16_SURROGATE(Code)
utf16 low surrogate.



MAX_UTF16_FROM_UCS4
final public static int MAX_UTF16_FROM_UCS4(Code)
Max UTF-16 value.



MAX_UTF8_FROM_UCS4
final public static int MAX_UTF8_FROM_UCS4(Code)
Max UTF-88 valid char value.



UNICODE_BOM
final public static int UNICODE_BOM(Code)
the default (big-endian) UNICODE BOM.



UNICODE_BOM_BE
final public static int UNICODE_BOM_BE(Code)
the big-endian (default) UNICODE BOM.



UNICODE_BOM_LE
final public static int UNICODE_BOM_LE(Code)
the little-endian UNICODE BOM.



UNICODE_BOM_UTF8
final public static int UNICODE_BOM_UTF8(Code)
the UTF-8 UNICODE BOM.



UTF16_HIGH_SURROGATE_BEGIN
final public static int UTF16_HIGH_SURROGATE_BEGIN(Code)
UTF-16 surrogate pair areas: high surrogates begin.



UTF16_HIGH_SURROGATE_END
final public static int UTF16_HIGH_SURROGATE_END(Code)
UTF-16 surrogate pair areas: high surrogates end.



UTF16_LOW_SURROGATE_BEGIN
final public static int UTF16_LOW_SURROGATE_BEGIN(Code)
UTF-16 surrogate pair areas: low surrogates begin.



UTF16_LOW_SURROGATE_END
final public static int UTF16_LOW_SURROGATE_END(Code)
UTF-16 surrogate pair areas: low surrogates end.



UTF16_SURROGATES_BEGIN
final public static int UTF16_SURROGATES_BEGIN(Code)
UTF-16 surrogates begin.





Method Detail
decodeMacRoman
protected static int decodeMacRoman(int c)(Code)
Function to convert from MacRoman to Unicode.
Parameters:
  c - char to decode decoded char



decodeSymbolFont
static int decodeSymbolFont(int c)(Code)
Function to convert from Symbol Font chars to Unicode.
Parameters:
  c - char to decode decoded char



decodeUTF8BytesToChar
static boolean decodeUTF8BytesToChar(int[] c, int firstByte, byte[] successorBytes, GetBytes getter, int[] count, int startInSuccessorBytesArray)(Code)
Decodes an array of bytes to a char.
Parameters:
  c - will contain the decoded char
Parameters:
  firstByte - first input byte
Parameters:
  successorBytes - array containing successor bytes (can be null if a getter is provided).
Parameters:
  getter - callback used to get new bytes if successorBytes doesn't contain enough bytes
Parameters:
  count - will contain the number of bytes read
Parameters:
  startInSuccessorBytesArray - starting offset for bytes in successorBytes true if error



decodeWin1252
protected static int decodeWin1252(int c)(Code)
Function for conversion from Windows-1252 to Unicode.
Parameters:
  c - char to decode decoded char



encodeCharToUTF8Bytes
static boolean encodeCharToUTF8Bytes(int c, byte[] encodebuf, PutBytes putter, int[] count)(Code)
Encode a char to an array of bytes.
Parameters:
  c - char to encode
Parameters:
  encodebuf - will contain the decoded bytes
Parameters:
  putter - if not null it will be called to write bytes to out
Parameters:
  count - number of bytes written false= ok, true= error



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.