PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
HTML | 262 lines | 217 code | 35 blank | 10 comment | 0 complexity | 0151ef3db79ef92cfbc3cf29022adbdf 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. Encoding (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.io.Encoding interface">
  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/Encoding.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/CopyFileWorker.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html" title="interface 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/Encoding.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="Encoding.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;CONSTR&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;CONSTR&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. Interface Encoding</H2>
  68. <DL>
  69. <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/io/CharsetEncoding.html" title="class in org.gjt.sp.jedit.io">CharsetEncoding</A>, <A HREF="../../../../../org/gjt/sp/jedit/io/EncodingWithBOM.html" title="class in org.gjt.sp.jedit.io">EncodingWithBOM</A></DD>
  70. </DL>
  71. <HR>
  72. <DL>
  73. <DT><PRE>public interface <B>Encoding</B></DL>
  74. </PRE>
  75. <P>
  76. An interface to represent an encoding.
  77. An encoding is a mapping between a character stream and a byte
  78. stream. It is like java.nio.charset.Charset but has slightly
  79. different form. This can represents some extended encodings like
  80. UTF-8Y which drops (inserts) the BOM bytes before actual decoding
  81. (encoding). This also enables to add some extended encodings such
  82. as ASCII representation used by Java property files.
  83. <P>
  84. <P>
  85. <DL>
  86. <DT><B>Since:</B></DT>
  87. <DD>4.3pre10</DD>
  88. </DL>
  89. <HR>
  90. <P>
  91. <!-- ========== METHOD SUMMARY =========== -->
  92. <A NAME="method_summary"><!-- --></A>
  93. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  94. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  95. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  96. <B>Method Summary</B></FONT></TH>
  97. </TR>
  98. <TR BGCOLOR="white" CLASS="TableRowColor">
  99. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  100. <CODE>&nbsp;java.io.Reader</CODE></FONT></TD>
  101. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getPermissiveTextReader(java.io.InputStream)">getPermissiveTextReader</A></B>(java.io.InputStream&nbsp;in)</CODE>
  102. <BR>
  103. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an InputStream to a Reader.</TD>
  104. </TR>
  105. <TR BGCOLOR="white" CLASS="TableRowColor">
  106. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  107. <CODE>&nbsp;java.io.Reader</CODE></FONT></TD>
  108. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextReader(java.io.InputStream)">getTextReader</A></B>(java.io.InputStream&nbsp;in)</CODE>
  109. <BR>
  110. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an InputStream to a Reader.</TD>
  111. </TR>
  112. <TR BGCOLOR="white" CLASS="TableRowColor">
  113. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  114. <CODE>&nbsp;java.io.Writer</CODE></FONT></TD>
  115. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/Encoding.html#getTextWriter(java.io.OutputStream)">getTextWriter</A></B>(java.io.OutputStream&nbsp;out)</CODE>
  116. <BR>
  117. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map an OutputStream to a Writer.</TD>
  118. </TR>
  119. </TABLE>
  120. &nbsp;
  121. <P>
  122. <!-- ============ METHOD DETAIL ========== -->
  123. <A NAME="method_detail"><!-- --></A>
  124. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  125. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  126. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  127. <B>Method Detail</B></FONT></TH>
  128. </TR>
  129. </TABLE>
  130. <A NAME="getTextReader(java.io.InputStream)"><!-- --></A><H3>
  131. getTextReader</H3>
  132. <PRE>
  133. java.io.Reader <B>getTextReader</B>(java.io.InputStream&nbsp;in)
  134. throws java.io.IOException</PRE>
  135. <DL>
  136. <DD>Map an InputStream to a Reader.
  137. Decode-error while reading from this Reader should be reported
  138. by throwing an IOException.
  139. <P>
  140. <DD><DL>
  141. <DT><B>Throws:</B>
  142. <DD><CODE>java.io.IOException</CODE></DL>
  143. </DD>
  144. </DL>
  145. <HR>
  146. <A NAME="getTextWriter(java.io.OutputStream)"><!-- --></A><H3>
  147. getTextWriter</H3>
  148. <PRE>
  149. java.io.Writer <B>getTextWriter</B>(java.io.OutputStream&nbsp;out)
  150. throws java.io.IOException</PRE>
  151. <DL>
  152. <DD>Map an OutputStream to a Writer.
  153. Encode-error while writing to this Writer should be reported
  154. by throwing an IOException.
  155. <P>
  156. <DD><DL>
  157. <DT><B>Throws:</B>
  158. <DD><CODE>java.io.IOException</CODE></DL>
  159. </DD>
  160. </DL>
  161. <HR>
  162. <A NAME="getPermissiveTextReader(java.io.InputStream)"><!-- --></A><H3>
  163. getPermissiveTextReader</H3>
  164. <PRE>
  165. java.io.Reader <B>getPermissiveTextReader</B>(java.io.InputStream&nbsp;in)
  166. throws java.io.IOException</PRE>
  167. <DL>
  168. <DD>Map an InputStream to a Reader.
  169. Decode-error while reading from this Reader should be ignored
  170. or replaced.
  171. <P>
  172. <DD><DL>
  173. <DT><B>Throws:</B>
  174. <DD><CODE>java.io.IOException</CODE></DL>
  175. </DD>
  176. </DL>
  177. <!-- ========= END OF CLASS DATA ========= -->
  178. <HR>
  179. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  180. <A NAME="navbar_bottom"><!-- --></A>
  181. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  182. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  183. <TR>
  184. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  185. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  186. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  187. <TR ALIGN="center" VALIGN="top">
  188. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  189. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  190. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  191. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Encoding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  192. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  193. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  194. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  195. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  196. </TR>
  197. </TABLE>
  198. </TD>
  199. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  200. </EM>
  201. </TD>
  202. </TR>
  203. <TR>
  204. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  205. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/CopyFileWorker.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  206. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html" title="interface in org.gjt.sp.jedit.io"><B>NEXT CLASS</B></A></FONT></TD>
  207. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  208. <A HREF="../../../../../index.html?org/gjt/sp/jedit/io/Encoding.html" target="_top"><B>FRAMES</B></A> &nbsp;
  209. &nbsp;<A HREF="Encoding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  210. &nbsp;
  211. <NOSCRIPT>
  212. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  213. </NOSCRIPT>
  214. </FONT></TD>
  215. </TR>
  216. <TR>
  217. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  218. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  219. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  220. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  221. </TR>
  222. </TABLE>
  223. <A NAME="skip-navbar_bottom"></A>
  224. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  225. <HR>
  226. </BODY>
  227. </HTML>