PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
HTML | 248 lines | 203 code | 33 blank | 12 comment | 0 complexity | 8fb026293f51e31ac9f4fa69fe37ace0 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. EncodingWithBOM.Detector (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.io.EncodingWithBOM.Detector 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/EncodingWithBOM.Detector.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/EncodingWithBOM.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/FavoritesVFS.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/EncodingWithBOM.Detector.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="EncodingWithBOM.Detector.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 EncodingWithBOM.Detector</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.io.EncodingWithBOM.Detector</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html" title="interface in org.gjt.sp.jedit.io">EncodingDetector</A></DD>
  74. </DL>
  75. <DL>
  76. <DT><B>Enclosing class:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingWithBOM.html" title="class in org.gjt.sp.jedit.io">EncodingWithBOM</A></DD>
  77. </DL>
  78. <HR>
  79. <DL>
  80. <DT><PRE>public static class <B>EncodingWithBOM.Detector</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html" title="interface in org.gjt.sp.jedit.io">EncodingDetector</A></DL>
  81. </PRE>
  82. <P>
  83. <HR>
  84. <P>
  85. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  86. <A NAME="constructor_summary"><!-- --></A>
  87. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  88. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  89. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  90. <B>Constructor Summary</B></FONT></TH>
  91. </TR>
  92. <TR BGCOLOR="white" CLASS="TableRowColor">
  93. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingWithBOM.Detector.html#EncodingWithBOM.Detector()">EncodingWithBOM.Detector</A></B>()</CODE>
  94. <BR>
  95. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  96. </TR>
  97. </TABLE>
  98. &nbsp;
  99. <!-- ========== METHOD SUMMARY =========== -->
  100. <A NAME="method_summary"><!-- --></A>
  101. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  102. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  103. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  104. <B>Method Summary</B></FONT></TH>
  105. </TR>
  106. <TR BGCOLOR="white" CLASS="TableRowColor">
  107. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  108. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  109. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingWithBOM.Detector.html#detectEncoding(java.io.InputStream)">detectEncoding</A></B>(java.io.InputStream&nbsp;sample)</CODE>
  110. <BR>
  111. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of a detected encoding for the bytes in sample.</TD>
  112. </TR>
  113. </TABLE>
  114. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  115. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  116. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  117. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  118. </TR>
  119. <TR BGCOLOR="white" CLASS="TableRowColor">
  120. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;
  124. <P>
  125. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  126. <A NAME="constructor_detail"><!-- --></A>
  127. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  128. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  129. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  130. <B>Constructor Detail</B></FONT></TH>
  131. </TR>
  132. </TABLE>
  133. <A NAME="EncodingWithBOM.Detector()"><!-- --></A><H3>
  134. EncodingWithBOM.Detector</H3>
  135. <PRE>
  136. public <B>EncodingWithBOM.Detector</B>()</PRE>
  137. <DL>
  138. </DL>
  139. <!-- ============ METHOD DETAIL ========== -->
  140. <A NAME="method_detail"><!-- --></A>
  141. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  142. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  143. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  144. <B>Method Detail</B></FONT></TH>
  145. </TR>
  146. </TABLE>
  147. <A NAME="detectEncoding(java.io.InputStream)"><!-- --></A><H3>
  148. detectEncoding</H3>
  149. <PRE>
  150. public java.lang.String <B>detectEncoding</B>(java.io.InputStream&nbsp;sample)
  151. throws java.io.IOException</PRE>
  152. <DL>
  153. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html#detectEncoding(java.io.InputStream)">EncodingDetector</A></CODE></B></DD>
  154. <DD>Returns the name of a detected encoding for the bytes in sample.
  155. Returns null if this instance could not detect reasonable one.
  156. <P>
  157. <DD><DL>
  158. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html#detectEncoding(java.io.InputStream)">detectEncoding</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/io/EncodingDetector.html" title="interface in org.gjt.sp.jedit.io">EncodingDetector</A></CODE></DL>
  159. </DD>
  160. <DD><DL>
  161. <DT><B>Throws:</B>
  162. <DD><CODE>java.io.IOException</CODE></DL>
  163. </DD>
  164. </DL>
  165. <!-- ========= END OF CLASS DATA ========= -->
  166. <HR>
  167. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  168. <A NAME="navbar_bottom"><!-- --></A>
  169. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  170. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  171. <TR>
  172. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  173. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  174. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  175. <TR ALIGN="center" VALIGN="top">
  176. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  177. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  178. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  179. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EncodingWithBOM.Detector.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  180. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  181. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  182. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  183. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  184. </TR>
  185. </TABLE>
  186. </TD>
  187. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  188. </EM>
  189. </TD>
  190. </TR>
  191. <TR>
  192. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  193. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/EncodingWithBOM.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  194. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/FavoritesVFS.html" title="class in org.gjt.sp.jedit.io"><B>NEXT CLASS</B></A></FONT></TD>
  195. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  196. <A HREF="../../../../../index.html?org/gjt/sp/jedit/io/EncodingWithBOM.Detector.html" target="_top"><B>FRAMES</B></A> &nbsp;
  197. &nbsp;<A HREF="EncodingWithBOM.Detector.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  198. &nbsp;
  199. <NOSCRIPT>
  200. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  201. </NOSCRIPT>
  202. </FONT></TD>
  203. </TR>
  204. <TR>
  205. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  206. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  207. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  208. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  209. </TR>
  210. </TABLE>
  211. <A NAME="skip-navbar_bottom"></A>
  212. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  213. <HR>
  214. </BODY>
  215. </HTML>