PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/io/CharsetEncoding.html

#
HTML | 314 lines | 262 code | 40 blank | 12 comment | 0 complexity | 4fadb4b1bfa05bbd8e00a87e9f296101 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:02 GMT-08:00 2008 -->
  6. <TITLE>
  7. CharsetEncoding (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.io.CharsetEncoding class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharsetEncoding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/BufferLocalEncodingDetector.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/CopyFileWorker.html" title="class in org.gjt.sp.jedit.io"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/io/CharsetEncoding.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="CharsetEncoding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.io</FONT>
  66. <BR>
  67. Class CharsetEncoding</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.io.CharsetEncoding</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html" title="interface in org.gjt.sp.jedit.io">Encoding</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public class <B>CharsetEncoding</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html" title="interface in org.gjt.sp.jedit.io">Encoding</A></DL>
  78. </PRE>
  79. <P>
  80. Encodings which are provided by java.nio.charset.Charset.
  81. <P>
  82. <P>
  83. <DL>
  84. <DT><B>Since:</B></DT>
  85. <DD>4.3pre10</DD>
  86. </DL>
  87. <HR>
  88. <P>
  89. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  90. <A NAME="constructor_summary"><!-- --></A>
  91. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  92. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  93. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  94. <B>Constructor Summary</B></FONT></TH>
  95. </TR>
  96. <TR BGCOLOR="white" CLASS="TableRowColor">
  97. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/CharsetEncoding.html#CharsetEncoding(java.lang.String)">CharsetEncoding</A></B>(java.lang.String&nbsp;name)</CODE>
  98. <BR>
  99. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  100. </TR>
  101. </TABLE>
  102. &nbsp;
  103. <!-- ========== METHOD SUMMARY =========== -->
  104. <A NAME="method_summary"><!-- --></A>
  105. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  106. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  107. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  108. <B>Method Summary</B></FONT></TH>
  109. </TR>
  110. <TR BGCOLOR="white" CLASS="TableRowColor">
  111. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  112. <CODE>&nbsp;java.io.Reader</CODE></FONT></TD>
  113. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/CharsetEncoding.html#getPermissiveTextReader(java.io.InputStream)">getPermissiveTextReader</A></B>(java.io.InputStream&nbsp;in)</CODE>
  114. <BR>
  115. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an InputStream to a Reader.</TD>
  116. </TR>
  117. <TR BGCOLOR="white" CLASS="TableRowColor">
  118. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  119. <CODE>&nbsp;java.io.Reader</CODE></FONT></TD>
  120. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/CharsetEncoding.html#getTextReader(java.io.InputStream)">getTextReader</A></B>(java.io.InputStream&nbsp;in)</CODE>
  121. <BR>
  122. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an InputStream to a Reader.</TD>
  123. </TR>
  124. <TR BGCOLOR="white" CLASS="TableRowColor">
  125. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  126. <CODE>&nbsp;java.io.Writer</CODE></FONT></TD>
  127. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/CharsetEncoding.html#getTextWriter(java.io.OutputStream)">getTextWriter</A></B>(java.io.OutputStream&nbsp;out)</CODE>
  128. <BR>
  129. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an OutputStream to a Writer.</TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  135. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;
  142. <P>
  143. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  144. <A NAME="constructor_detail"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  147. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  148. <B>Constructor Detail</B></FONT></TH>
  149. </TR>
  150. </TABLE>
  151. <A NAME="CharsetEncoding(java.lang.String)"><!-- --></A><H3>
  152. CharsetEncoding</H3>
  153. <PRE>
  154. public <B>CharsetEncoding</B>(java.lang.String&nbsp;name)</PRE>
  155. <DL>
  156. </DL>
  157. <!-- ============ METHOD DETAIL ========== -->
  158. <A NAME="method_detail"><!-- --></A>
  159. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  160. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  161. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  162. <B>Method Detail</B></FONT></TH>
  163. </TR>
  164. </TABLE>
  165. <A NAME="getTextReader(java.io.InputStream)"><!-- --></A><H3>
  166. getTextReader</H3>
  167. <PRE>
  168. public java.io.Reader <B>getTextReader</B>(java.io.InputStream&nbsp;in)
  169. throws java.io.IOException</PRE>
  170. <DL>
  171. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextReader(java.io.InputStream)">Encoding</A></CODE></B></DD>
  172. <DD>Map an InputStream to a Reader.
  173. Decode-error while reading from this Reader should be reported
  174. by throwing an IOException.
  175. <P>
  176. <DD><DL>
  177. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextReader(java.io.InputStream)">getTextReader</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html" title="interface in org.gjt.sp.jedit.io">Encoding</A></CODE></DL>
  178. </DD>
  179. <DD><DL>
  180. <DT><B>Throws:</B>
  181. <DD><CODE>java.io.IOException</CODE></DL>
  182. </DD>
  183. </DL>
  184. <HR>
  185. <A NAME="getTextWriter(java.io.OutputStream)"><!-- --></A><H3>
  186. getTextWriter</H3>
  187. <PRE>
  188. public java.io.Writer <B>getTextWriter</B>(java.io.OutputStream&nbsp;out)
  189. throws java.io.IOException</PRE>
  190. <DL>
  191. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextWriter(java.io.OutputStream)">Encoding</A></CODE></B></DD>
  192. <DD>Map an OutputStream to a Writer.
  193. Encode-error while writing to this Writer should be reported
  194. by throwing an IOException.
  195. <P>
  196. <DD><DL>
  197. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextWriter(java.io.OutputStream)">getTextWriter</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html" title="interface in org.gjt.sp.jedit.io">Encoding</A></CODE></DL>
  198. </DD>
  199. <DD><DL>
  200. <DT><B>Throws:</B>
  201. <DD><CODE>java.io.IOException</CODE></DL>
  202. </DD>
  203. </DL>
  204. <HR>
  205. <A NAME="getPermissiveTextReader(java.io.InputStream)"><!-- --></A><H3>
  206. getPermissiveTextReader</H3>
  207. <PRE>
  208. public java.io.Reader <B>getPermissiveTextReader</B>(java.io.InputStream&nbsp;in)
  209. throws java.io.IOException</PRE>
  210. <DL>
  211. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getPermissiveTextReader(java.io.InputStream)">Encoding</A></CODE></B></DD>
  212. <DD>Map an InputStream to a Reader.
  213. Decode-error while reading from this Reader should be ignored
  214. or replaced.
  215. <P>
  216. <DD><DL>
  217. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getPermissiveTextReader(java.io.InputStream)">getPermissiveTextReader</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html" title="interface in org.gjt.sp.jedit.io">Encoding</A></CODE></DL>
  218. </DD>
  219. <DD><DL>
  220. <DT><B>Throws:</B>
  221. <DD><CODE>java.io.IOException</CODE></DL>
  222. </DD>
  223. </DL>
  224. <!-- ========= END OF CLASS DATA ========= -->
  225. <HR>
  226. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  227. <A NAME="navbar_bottom"><!-- --></A>
  228. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  229. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  230. <TR>
  231. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  232. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  233. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  234. <TR ALIGN="center" VALIGN="top">
  235. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  236. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  237. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  238. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharsetEncoding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  239. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  240. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  241. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  242. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  243. </TR>
  244. </TABLE>
  245. </TD>
  246. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  247. </EM>
  248. </TD>
  249. </TR>
  250. <TR>
  251. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  252. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/BufferLocalEncodingDetector.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  253. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/CopyFileWorker.html" title="class in org.gjt.sp.jedit.io"><B>NEXT CLASS</B></A></FONT></TD>
  254. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  255. <A HREF="../../../../../index.html?org/gjt/sp/jedit/io/CharsetEncoding.html" target="_top"><B>FRAMES</B></A> &nbsp;
  256. &nbsp;<A HREF="CharsetEncoding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  257. &nbsp;
  258. <NOSCRIPT>
  259. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  260. </NOSCRIPT>
  261. </FONT></TD>
  262. </TR>
  263. <TR>
  264. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  265. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  266. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  267. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  268. </TR>
  269. </TABLE>
  270. <A NAME="skip-navbar_bottom"></A>
  271. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  272. <HR>
  273. </BODY>
  274. </HTML>