Java Doc for Encodings.java in  » XML » xalan » org » apache » xml » serializer » 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 » XML » xalan » org.apache.xml.serializer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.serializer.Encodings

Encodings
final public class Encodings extends Object (Code)
Provides information about encodings. Depends on the Java runtime to provides writers for the different encodings. This class is only for internal use within Xalan. However, it is used directly by org.apache.xalan.xsltc.compiler.Output.


Field Summary
final static  StringDEFAULT_MIME_ENCODING
     The default encoding, ISO style, ISO style.


Method Summary
public static  StringconvertMime2JavaEncoding(String encoding)
     Try the best we can to convert a Java encoding to a XML-style encoding.

This is not a public API.
Parameters:
  encoding - non-null reference to encoding string, java style.

static  EncodingInfogetEncodingInfo(String encoding)
     Returns the EncodingInfo object for the specified encoding.
static  StringgetMimeEncoding(String encoding)
     Get the proper mime encoding.
static  WritergetWriter(OutputStream output, String encoding)
     Returns a writer for the specified encoding based on an output stream.
static  booleanisHighUTF16Surrogate(char ch)
     Return true if the character is the high member of a surrogate pair.
static  booleanisLowUTF16Surrogate(char ch)
     Return true if the character is the low member of a surrogate pair.
static  inttoCodePoint(char highSurrogate, char lowSurrogate)
     Return the unicode code point represented by the high/low surrogate pair.
static  inttoCodePoint(char ch)
     Return the unicode code point represented by the char.

Field Detail
DEFAULT_MIME_ENCODING
final static String DEFAULT_MIME_ENCODING(Code)
The default encoding, ISO style, ISO style.





Method Detail
convertMime2JavaEncoding
public static String convertMime2JavaEncoding(String encoding)(Code)
Try the best we can to convert a Java encoding to a XML-style encoding.

This is not a public API.
Parameters:
  encoding - non-null reference to encoding string, java style. ISO-style encoding string.




getEncodingInfo
static EncodingInfo getEncodingInfo(String encoding)(Code)
Returns the EncodingInfo object for the specified encoding.

This is not a public API.
Parameters:
  encoding - The encoding The object that is used to determine if characters are in the given encoding.




getMimeEncoding
static String getMimeEncoding(String encoding)(Code)
Get the proper mime encoding. From the XSLT recommendation: "The encoding attribute specifies the preferred encoding to use for outputting the result tree. XSLT processors are required to respect values of UTF-8 and UTF-16. For other values, if the XSLT processor does not support the specified encoding it may signal an error; if it does not signal an error it should use UTF-8 or UTF-16 instead. The XSLT processor must not use an encoding whose name does not match the EncName production of the XML Recommendation [XML]. If no encoding attribute is specified, then the XSLT processor should use either UTF-8 or UTF-16."

This is not a public API.
Parameters:
  encoding - Reference to java-style encoding string, which may be null,in which case a default will be found. The ISO-style encoding string, or null if failure.




getWriter
static Writer getWriter(OutputStream output, String encoding) throws UnsupportedEncodingException(Code)
Returns a writer for the specified encoding based on an output stream.

This is not a public API.
Parameters:
  output - The output stream
Parameters:
  encoding - The encoding A suitable writer
throws:
  UnsupportedEncodingException - There is no convertorto support this encoding




isHighUTF16Surrogate
static boolean isHighUTF16Surrogate(char ch)(Code)
Return true if the character is the high member of a surrogate pair.

This is not a public API.
Parameters:
  ch - the character to test




isLowUTF16Surrogate
static boolean isLowUTF16Surrogate(char ch)(Code)
Return true if the character is the low member of a surrogate pair.

This is not a public API.
Parameters:
  ch - the character to test




toCodePoint
static int toCodePoint(char highSurrogate, char lowSurrogate)(Code)
Return the unicode code point represented by the high/low surrogate pair.

This is not a public API.
Parameters:
  highSurrogate - the high char of the high/low pair
Parameters:
  lowSurrogate - the low char of the high/low pair




toCodePoint
static int toCodePoint(char ch)(Code)
Return the unicode code point represented by the char. A bit of a dummy method, since all it does is return the char, but as an int value.

This is not a public API.
Parameters:
  ch - the char.




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.