PageRenderTime 55ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
HTML | 1389 lines | 1241 code | 139 blank | 9 comment | 0 complexity | 092a0cdd5844de1cadb2754ba0be9615 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:13:46 GMT-08:00 2008 -->
  6. <TITLE>
  7. MiscUtilities (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.MiscUtilities 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/MiscUtilities.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/Marker.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit"><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/MiscUtilities.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="MiscUtilities.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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</FONT>
  66. <BR>
  67. Class MiscUtilities</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.MiscUtilities</B>
  71. </PRE>
  72. <HR>
  73. <DL>
  74. <DT><PRE>public class <B>MiscUtilities</B><DT>extends java.lang.Object</DL>
  75. </PRE>
  76. <P>
  77. Path name manipulation, string manipulation, and more.<p>
  78. The most frequently used members of this class are:<p>
  79. <b>Some path name methods:</b><p>
  80. <ul>
  81. <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileName(java.lang.String)"><CODE>getFileName(String)</CODE></A></li>
  82. <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getParentOfPath(java.lang.String)"><CODE>getParentOfPath(String)</CODE></A></li>
  83. <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)"><CODE>constructPath(String,String)</CODE></A></li>
  84. </ul>
  85. <b>String comparison:</b><p>
  86. A <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#compareStrings(java.lang.String, java.lang.String, boolean)"><CODE>compareStrings(String,String,boolean)</CODE></A> method that unlike
  87. <function>String.compareTo()</function>, correctly recognizes and handles
  88. embedded numbers.<p>
  89. This class also defines several inner classes for use with the
  90. sorting features of the Java collections API:
  91. <ul>
  92. <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><CODE>MiscUtilities.StringICaseCompare</CODE></A></li>
  93. <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.MenuItemCompare.html" title="class in org.gjt.sp.jedit"><CODE>MiscUtilities.MenuItemCompare</CODE></A></li>
  94. </ul>
  95. For example, you might call:<p>
  96. <code>Arrays.sort(myListOfStrings,
  97. new MiscUtilities.StringICaseCompare());</code>
  98. <P>
  99. <P>
  100. <HR>
  101. <P>
  102. <!-- ======== NESTED CLASS SUMMARY ======== -->
  103. <A NAME="nested_class_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Nested Class Summary</B></FONT></TH>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  111. <CODE>static&nbsp;interface</CODE></FONT></TD>
  112. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A></B></CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  118. <CODE>static&nbsp;class</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.MenuItemCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.MenuItemCompare</A></B></CODE>
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;</TD>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>static&nbsp;class</CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.StringCompare</A></B></CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.StringCompare.html" title="class in org.gjt.sp.util"><CODE>StandardUtilities.StringCompare</CODE></A></I></TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>static&nbsp;class</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.StringICaseCompare</A></B></CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.StringCompare.html" title="class in org.gjt.sp.util"><CODE>StandardUtilities.StringCompare</CODE></A></I></TD>
  136. </TR>
  137. </TABLE>
  138. &nbsp;<!-- =========== FIELD SUMMARY =========== -->
  139. <A NAME="field_summary"><!-- --></A>
  140. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  141. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  142. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  143. <B>Field Summary</B></FONT></TH>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  147. <CODE>static&nbsp;java.text.DecimalFormat</CODE></FONT></TD>
  148. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#KB_FORMAT">KB_FORMAT</A></B></CODE>
  149. <BR>
  150. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  154. <CODE>static&nbsp;java.text.DecimalFormat</CODE></FONT></TD>
  155. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#MB_FORMAT">MB_FORMAT</A></B></CODE>
  156. <BR>
  157. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  161. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  162. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#UTF_8_Y">UTF_8_Y</A></B></CODE>
  163. <BR>
  164. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Extended encodings are now supported as services.
  165. This value is no longer used.</I></TD>
  166. </TR>
  167. </TABLE>
  168. &nbsp;
  169. <!-- ========== METHOD SUMMARY =========== -->
  170. <A NAME="method_summary"><!-- --></A>
  171. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  172. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  173. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  174. <B>Method Summary</B></FONT></TH>
  175. </TR>
  176. <TR BGCOLOR="white" CLASS="TableRowColor">
  177. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  178. <CODE>static&nbsp;java.io.Reader</CODE></FONT></TD>
  179. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#autodetect(java.io.InputStream, org.gjt.sp.jedit.Buffer)">autodetect</A></B>(java.io.InputStream&nbsp;in,
  180. <A HREF="../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer)</CODE>
  181. <BR>
  182. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tries to detect if the stream is gzipped, and if it has an encoding
  183. specified with an XML PI.</TD>
  184. </TR>
  185. <TR BGCOLOR="white" CLASS="TableRowColor">
  186. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  187. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  188. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#buildToVersion(java.lang.String)">buildToVersion</A></B>(java.lang.String&nbsp;build)</CODE>
  189. <BR>
  190. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an internal version number (build) into a
  191. `human-readable' form.</TD>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  195. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  196. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#canonPath(java.lang.String)">canonPath</A></B>(java.lang.String&nbsp;path)</CODE>
  197. <BR>
  198. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  199. </TR>
  200. <TR BGCOLOR="white" CLASS="TableRowColor">
  201. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  202. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  203. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEntities(java.lang.String)">charsToEntities</A></B>(java.lang.String&nbsp;str)</CODE>
  204. <BR>
  205. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/gjt/sp/util/XMLUtilities.html#charsToEntities(java.lang.String, boolean)"><CODE>XMLUtilities.charsToEntities(String, boolean)</CODE></A>.</I></TD>
  206. </TR>
  207. <TR BGCOLOR="white" CLASS="TableRowColor">
  208. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  209. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  210. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEscapes(java.lang.String)">charsToEscapes</A></B>(java.lang.String&nbsp;str)</CODE>
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#charsToEscapes(java.lang.String)"><CODE>StandardUtilities.charsToEscapes(String)</CODE></A></I></TD>
  213. </TR>
  214. <TR BGCOLOR="white" CLASS="TableRowColor">
  215. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  216. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  217. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEscapes(java.lang.String, java.lang.String)">charsToEscapes</A></B>(java.lang.String&nbsp;str,
  218. java.lang.String&nbsp;toEscape)</CODE>
  219. <BR>
  220. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#charsToEscapes(java.lang.String)"><CODE>StandardUtilities.charsToEscapes(String)</CODE></A></I></TD>
  221. </TR>
  222. <TR BGCOLOR="white" CLASS="TableRowColor">
  223. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  224. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  225. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#classToFile(java.lang.String)">classToFile</A></B>(java.lang.String&nbsp;name)</CODE>
  226. <BR>
  227. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a class name to a file name.</TD>
  228. </TR>
  229. <TR BGCOLOR="white" CLASS="TableRowColor">
  230. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  231. <CODE>static&nbsp;void</CODE></FONT></TD>
  232. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#closeQuietly(java.io.InputStream)">closeQuietly</A></B>(java.io.InputStream&nbsp;in)</CODE>
  233. <BR>
  234. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.InputStream)"><CODE>IOUtilities.closeQuietly(java.io.InputStream)</CODE></A></I></TD>
  235. </TR>
  236. <TR BGCOLOR="white" CLASS="TableRowColor">
  237. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  238. <CODE>static&nbsp;void</CODE></FONT></TD>
  239. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#closeQuietly(java.io.OutputStream)">closeQuietly</A></B>(java.io.OutputStream&nbsp;out)</CODE>
  240. <BR>
  241. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.OutputStream)"><CODE>IOUtilities.closeQuietly(java.io.OutputStream)</CODE></A></I></TD>
  242. </TR>
  243. <TR BGCOLOR="white" CLASS="TableRowColor">
  244. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  245. <CODE>static&nbsp;int</CODE></FONT></TD>
  246. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#compareStrings(java.lang.String, java.lang.String, boolean)">compareStrings</A></B>(java.lang.String&nbsp;str1,
  247. java.lang.String&nbsp;str2,
  248. boolean&nbsp;ignoreCase)</CODE>
  249. <BR>
  250. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#compareStrings(java.lang.String, java.lang.String, boolean)"><CODE>StandardUtilities.compareStrings(String, String, boolean)</CODE></A></I></TD>
  251. </TR>
  252. <TR BGCOLOR="white" CLASS="TableRowColor">
  253. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  254. <CODE>static&nbsp;int</CODE></FONT></TD>
  255. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#compareVersions(java.lang.String, java.lang.String)">compareVersions</A></B>(java.lang.String&nbsp;v1,
  256. java.lang.String&nbsp;v2)</CODE>
  257. <BR>
  258. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Call <code>compareStrings()</code> instead</I></TD>
  259. </TR>
  260. <TR BGCOLOR="white" CLASS="TableRowColor">
  261. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  262. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  263. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#concatPath(java.lang.String, java.lang.String)">concatPath</A></B>(java.lang.String&nbsp;parent,
  264. java.lang.String&nbsp;path)</CODE>
  265. <BR>
  266. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Like <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)"><CODE>constructPath(java.lang.String, java.lang.String)</CODE></A>, except <code>path</code> will be
  267. appended to <code>parent</code> even if it is absolute.</TD>
  268. </TR>
  269. <TR BGCOLOR="white" CLASS="TableRowColor">
  270. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  271. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  272. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)">constructPath</A></B>(java.lang.String&nbsp;parent,
  273. java.lang.String&nbsp;path)</CODE>
  274. <BR>
  275. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an absolute path name from a directory and another
  276. path name.</TD>
  277. </TR>
  278. <TR BGCOLOR="white" CLASS="TableRowColor">
  279. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  280. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  281. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String, java.lang.String)">constructPath</A></B>(java.lang.String&nbsp;parent,
  282. java.lang.String&nbsp;path1,
  283. java.lang.String&nbsp;path2)</CODE>
  284. <BR>
  285. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an absolute path name from three path components.</TD>
  286. </TR>
  287. <TR BGCOLOR="white" CLASS="TableRowColor">
  288. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  289. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  290. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)">copyStream</A></B>(int&nbsp;bufferSize,
  291. <A HREF="../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  292. java.io.InputStream&nbsp;in,
  293. java.io.OutputStream&nbsp;out,
  294. boolean&nbsp;canStop)</CODE>
  295. <BR>
  296. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><CODE>IOUtilities.copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)</CODE></A></I></TD>
  297. </TR>
  298. <TR BGCOLOR="white" CLASS="TableRowColor">
  299. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  300. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  301. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)">copyStream</A></B>(<A HREF="../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  302. java.io.InputStream&nbsp;in,
  303. java.io.OutputStream&nbsp;out,
  304. boolean&nbsp;canStop)</CODE>
  305. <BR>
  306. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><CODE>IOUtilities.copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)</CODE></A></I></TD>
  307. </TR>
  308. <TR BGCOLOR="white" CLASS="TableRowColor">
  309. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  310. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  311. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#createWhiteSpace(int, int)">createWhiteSpace</A></B>(int&nbsp;len,
  312. int&nbsp;tabSize)</CODE>
  313. <BR>
  314. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#createWhiteSpace(int, int)"><CODE>StandardUtilities.createWhiteSpace(int, int)</CODE></A></I></TD>
  315. </TR>
  316. <TR BGCOLOR="white" CLASS="TableRowColor">
  317. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  318. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  319. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#createWhiteSpace(int, int, int)">createWhiteSpace</A></B>(int&nbsp;len,
  320. int&nbsp;tabSize,
  321. int&nbsp;start)</CODE>
  322. <BR>
  323. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#createWhiteSpace(int, int, int)"><CODE>StandardUtilities.createWhiteSpace(int, int, int)</CODE></A></I></TD>
  324. </TR>
  325. <TR BGCOLOR="white" CLASS="TableRowColor">
  326. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  327. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  328. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#escapesToChars(java.lang.String)">escapesToChars</A></B>(java.lang.String&nbsp;str)</CODE>
  329. <BR>
  330. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts "\n" and "\t" escapes in the specified string to
  331. newlines and tabs.</TD>
  332. </TR>
  333. <TR BGCOLOR="white" CLASS="TableRowColor">
  334. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  335. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  336. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#expandVariables(java.lang.String)">expandVariables</A></B>(java.lang.String&nbsp;arg)</CODE>
  337. <BR>
  338. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepts a string from the user which may contain variables of various syntaxes.</TD>
  339. </TR>
  340. <TR BGCOLOR="white" CLASS="TableRowColor">
  341. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  342. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  343. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#fileToClass(java.lang.String)">fileToClass</A></B>(java.lang.String&nbsp;name)</CODE>
  344. <BR>
  345. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a file name to a class name.</TD>
  346. </TR>
  347. <TR BGCOLOR="white" CLASS="TableRowColor">
  348. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  349. <CODE>static&nbsp;org.xml.sax.InputSource</CODE></FONT></TD>
  350. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#findEntity(java.lang.String, java.lang.String, java.lang.Class)">findEntity</A></B>(java.lang.String&nbsp;systemId,
  351. java.lang.String&nbsp;test,
  352. java.lang.Class&nbsp;where)</CODE>
  353. <BR>
  354. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/gjt/sp/util/XMLUtilities.html#findEntity(java.lang.String, java.lang.String, java.lang.Class)"><CODE>XMLUtilities.findEntity(String,String,Class)</CODE></A>.</I></TD>
  355. </TR>
  356. <TR BGCOLOR="white" CLASS="TableRowColor">
  357. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  358. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  359. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#formatFileSize(long)">formatFileSize</A></B>(long&nbsp;length)</CODE>
  360. <BR>
  361. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats the given file size into a nice string (123 Bytes, 10.6 kB,
  362. 1.2 MB).</TD>
  363. </TR>
  364. <TR BGCOLOR="white" CLASS="TableRowColor">
  365. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  366. <CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
  367. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getEncodings()">getEncodings</A></B>()</CODE>
  368. <BR>
  369. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>See #getEncodings( boolean )</I></TD>
  370. </TR>
  371. <TR BGCOLOR="white" CLASS="TableRowColor">
  372. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  373. <CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
  374. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getEncodings(boolean)">getEncodings</A></B>(boolean&nbsp;getSelected)</CODE>
  375. <BR>
  376. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of supported character encodings.</TD>
  377. </TR>
  378. <TR BGCOLOR="white" CLASS="TableRowColor">
  379. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  380. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  381. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileExtension(java.lang.String)">getFileExtension</A></B>(java.lang.String&nbsp;path)</CODE>
  382. <BR>
  383. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the extension of the specified filename, or an empty
  384. string if there is none.</TD>
  385. </TR>
  386. <TR BGCOLOR="white" CLASS="TableRowColor">
  387. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  388. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  389. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileName(java.lang.String)">getFileName</A></B>(java.lang.String&nbsp;path)</CODE>
  390. <BR>
  391. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the last component of the specified path.</TD>
  392. </TR>
  393. <TR BGCOLOR="white" CLASS="TableRowColor">
  394. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  395. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  396. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileNameNoExtension(java.lang.String)">getFileNameNoExtension</A></B>(java.lang.String&nbsp;path)</CODE>
  397. <BR>
  398. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the last component of the specified path name without the
  399. trailing extension (if there is one).</TD>
  400. </TR>
  401. <TR BGCOLOR="white" CLASS="TableRowColor">
  402. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  403. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  404. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileParent(java.lang.String)">getFileParent</A></B>(java.lang.String&nbsp;path)</CODE>
  405. <BR>
  406. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Call getParentOfPath() instead</I></TD>
  407. </TR>
  408. <TR BGCOLOR="white" CLASS="TableRowColor">
  409. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  410. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  411. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileProtocol(java.lang.String)">getFileProtocol</A></B>(java.lang.String&nbsp;url)</CODE>
  412. <BR>
  413. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Call getProtocolOfURL() instead</I></TD>
  414. </TR>
  415. <TR BGCOLOR="white" CLASS="TableRowColor">
  416. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  417. <CODE>static&nbsp;int</CODE></FONT></TD>
  418. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFirstSeparatorIndex(java.lang.String)">getFirstSeparatorIndex</A></B>(java.lang.String&nbsp;path)</CODE>
  419. <BR>
  420. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the first index of either / or the OS-specific file
  421. separator.</TD>
  422. </TR>
  423. <TR BGCOLOR="white" CLASS="TableRowColor">
  424. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  425. <CODE>static&nbsp;int</CODE></FONT></TD>
  426. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLastSeparatorIndex(java.lang.String)">getLastSeparatorIndex</A></B>(java.lang.String&nbsp;path)</CODE>
  427. <BR>
  428. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the last index of either / or the OS-specific file
  429. separator.</TD>
  430. </TR>
  431. <TR BGCOLOR="white" CLASS="TableRowColor">
  432. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  433. <CODE>static&nbsp;int</CODE></FONT></TD>
  434. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLeadingWhiteSpace(java.lang.String)">getLeadingWhiteSpace</A></B>(java.lang.String&nbsp;str)</CODE>
  435. <BR>
  436. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getLeadingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getLeadingWhiteSpace(String)</CODE></A></I></TD>
  437. </TR>
  438. <TR BGCOLOR="white" CLASS="TableRowColor">
  439. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  440. <CODE>static&nbsp;int</CODE></FONT></TD>
  441. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLeadingWhiteSpaceWidth(java.lang.String, int)">getLeadingWhiteSpaceWidth</A></B>(java.lang.String&nbsp;str,
  442. int&nbsp;tabSize)</CODE>
  443. <BR>
  444. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getLeadingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getLeadingWhiteSpace(String)</CODE></A></I></TD>
  445. </TR>
  446. <TR BGCOLOR="white" CLASS="TableRowColor">
  447. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  448. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  449. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.util.List, boolean)">getLongestPrefix</A></B>(java.util.List&nbsp;str,
  450. boolean&nbsp;ignoreCase)</CODE>
  451. <BR>
  452. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the longest common prefix in the given set of strings.</TD>
  453. </TR>
  454. <TR BGCOLOR="white" CLASS="TableRowColor">
  455. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  456. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  457. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.lang.Object[], boolean)">getLongestPrefix</A></B>(java.lang.Object[]&nbsp;str,
  458. boolean&nbsp;ignoreCase)</CODE>
  459. <BR>
  460. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the longest common prefix in the given set of strings.</TD>
  461. </TR>
  462. <TR BGCOLOR="white" CLASS="TableRowColor">
  463. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  464. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  465. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.lang.String[], boolean)">getLongestPrefix</A></B>(java.lang.String[]&nbsp;str,
  466. boolean&nbsp;ignoreCase)</CODE>
  467. <BR>
  468. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the longest common prefix in the given set of strings.</TD>
  469. </TR>
  470. <TR BGCOLOR="white" CLASS="TableRowColor">
  471. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  472. <CODE>static&nbsp;int</CODE></FONT></TD>
  473. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getOffsetOfVirtualColumn(javax.swing.text.Segment, int, int, int[])">getOffsetOfVirtualColumn</A></B>(javax.swing.text.Segment&nbsp;seg,
  474. int&nbsp;tabSize,
  475. int&nbsp;column,
  476. int[]&nbsp;totalVirtualWidth)</CODE>
  477. <BR>
  478. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getVirtualWidth(javax.swing.text.Segment, int)"><CODE>StandardUtilities.getVirtualWidth(javax.swing.text.Segment, int)</CODE></A></I></TD>
  479. </TR>
  480. <TR BGCOLOR="white" CLASS="TableRowColor">
  481. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  482. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  483. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getParentOfPath(java.lang.String)">getParentOfPath</A></B>(java.lang.String&nbsp;path)</CODE>
  484. <BR>
  485. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent of the specified path.</TD>
  486. </TR>
  487. <TR BGCOLOR="white" CLASS="TableRowColor">
  488. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  489. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  490. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getProtocolOfURL(java.lang.String)">getProtocolOfURL</A></B>(java.lang.String&nbsp;url)</CODE>
  491. <BR>
  492. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the protocol specified by a URL.</TD>
  493. </TR>
  494. <TR BGCOLOR="white" CLASS="TableRowColor">
  495. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  496. <CODE>static&nbsp;int</CODE></FONT></TD>
  497. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getTrailingWhiteSpace(java.lang.String)">getTrailingWhiteSpace</A></B>(java.lang.String&nbsp;str)</CODE>
  498. <BR>
  499. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getTrailingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getTrailingWhiteSpace(String)</CODE></A></I></TD>
  500. </TR>
  501. <TR BGCOLOR="white" CLASS="TableRowColor">
  502. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  503. <CODE>static&nbsp;int</CODE></FONT></TD>
  504. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getVirtualWidth(javax.swing.text.Segment, int)">getVirtualWidth</A></B>(javax.swing.text.Segment&nbsp;seg,
  505. int&nbsp;tabSize)</CODE>
  506. <BR>
  507. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getVirtualWidth(javax.swing.text.Segment, int)"><CODE>StandardUtilities.getVirtualWidth(javax.swing.text.Segment, int)</CODE></A></I></TD>
  508. </TR>
  509. <TR BGCOLOR="white" CLASS="TableRowColor">
  510. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  511. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  512. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#globToRE(java.lang.String)">globToRE</A></B>(java.lang.String&nbsp;glob)</CODE>
  513. <BR>
  514. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#globToRE(java.lang.String)"><CODE>StandardUtilities.globToRE(String)</CODE></A>.</I></TD>
  515. </TR>
  516. <TR BGCOLOR="white" CLASS="TableRowColor">
  517. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  518. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  519. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isAbsolutePath(java.lang.String)">isAbsolutePath</A></B>(java.lang.String&nbsp;path)</CODE>
  520. <BR>
  521. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the specified path name is an absolute path or URL.</TD>
  522. </TR>
  523. <TR BGCOLOR="white" CLASS="TableRowColor">
  524. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  525. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  526. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBackup(java.lang.String)">isBackup</A></B>(java.lang.String&nbsp;filename)</CODE>
  527. <BR>
  528. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the filename is a backup file.</TD>
  529. </TR>
  530. <TR BGCOLOR="white" CLASS="TableRowColor">
  531. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  532. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  533. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBinary(java.io.InputStream)">isBinary</A></B>(java.io.InputStream&nbsp;in)</CODE>
  534. <BR>
  535. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if an InputStream is binary.</TD>
  536. </TR>
  537. <TR BGCOLOR="white" CLASS="TableRowColor">
  538. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  539. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  540. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBinary(java.io.Reader)">isBinary</A></B>(java.io.Reader&nbsp;reader)</CODE>
  541. <BR>
  542. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use isBinary(InputStream) instead.</I></TD>
  543. </TR>
  544. <TR BGCOLOR="white" CLASS="TableRowColor">
  545. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  546. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  547. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isToolsJarAvailable()">isToolsJarAvailable</A></B>()</CODE>
  548. <BR>
  549. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If on JDK 1.2 or higher, make sure that tools.jar is available.</TD>
  550. </TR>
  551. <TR BGCOLOR="white" CLASS="TableRowColor">
  552. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  553. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  554. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isURL(java.lang.String)">isURL</A></B>(java.lang.String&nbsp;str)</CODE>
  555. <BR>
  556. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the specified string is a URL.</TD>
  557. </TR>
  558. <TR BGCOLOR="white" CLASS="TableRowColor">
  559. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  560. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  561. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#moveFile(java.io.File, java.io.File)">moveFile</A></B>(java.io.File&nbsp;source,
  562. java.io.File&nbsp;dest)</CODE>
  563. <BR>
  564. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#moveFile(java.io.File, java.io.File)"><CODE>IOUtilities.moveFile(java.io.File, java.io.File)</CODE></A></I></TD>
  565. </TR>
  566. <TR BGCOLOR="white" CLASS="TableRowColor">
  567. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  568. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  569. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#objectsEqual(java.lang.Object, java.lang.Object)">objectsEqual</A></B>(java.lang.Object&nbsp;o1,
  570. java.lang.Object&nbsp;o2)</CODE>
  571. <BR>
  572. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#objectsEqual(java.lang.Object, java.lang.Object)"><CODE>StandardUtilities.objectsEqual(Object, Object)</CODE></A></I></TD>
  573. </TR>
  574. <TR BGCOLOR="white" CLASS="TableRowColor">
  575. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  576. <CODE>static&nbsp;int</CODE></FONT></TD>
  577. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#parsePermissions(java.lang.String)">parsePermissions</A></B>(java.lang.String&nbsp;s)</CODE>
  578. <BR>
  579. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse a Unix-style permission string (rwxrwxrwx).</TD>
  580. </TR>
  581. <TR BGCOLOR="white" CLASS="TableRowColor">
  582. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  583. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  584. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#parseXML(java.io.InputStream, org.xml.sax.helpers.DefaultHandler)">parseXML</A></B>(java.io.InputStream&nbsp;in,
  585. org.xml.sax.helpers.DefaultHandler&nbsp;handler)</CODE>
  586. <BR>
  587. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/gjt/sp/util/XMLUtilities.html#parseXML(java.io.InputStream, org.xml.sax.helpers.DefaultHandler)"><CODE>XMLUtilities.parseXML(InputStream,DefaultHandler)</CODE></A>.</I></TD>
  588. </TR>
  589. <TR BGCOLOR="white" CLASS="TableRowColor">
  590. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  591. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  592. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#pathsEqual(java.lang.String, java.lang.String)">pathsEqual</A></B>(java.lang.String&nbsp;p1,
  593. java.lang.String&nbsp;p2)</CODE>
  594. <BR>
  595. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  596. </TR>
  597. <TR BGCOLOR="white" CLASS="TableRowColor">
  598. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  599. <CODE>static&nbsp;void</CODE></FONT></TD>
  600. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.util.List, java.util.Comparator)">quicksort</A></B>(java.util.List&nbsp;list,
  601. java.util.Comparator&nbsp;compare)</CODE>
  602. <BR>
  603. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I><code>Collections.sort()</code></I></TD>
  604. </TR>
  605. <TR BGCOLOR="white" CLASS="TableRowColor">
  606. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  607. <CODE>static&nbsp;void</CODE></FONT></TD>
  608. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.lang.Object[], java.util.Comparator)">quicksort</A></B>(java.lang.Object[]&nbsp;obj,
  609. java.util.Comparator&nbsp;compare)</CODE>
  610. <BR>
  611. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <code>Arrays.sort()</code></I></TD>
  612. </TR>
  613. <TR BGCOLOR="white" CLASS="TableRowColor">
  614. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  615. <CODE>static&nbsp;void</CODE></FONT></TD>
  616. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.lang.Object[], org.gjt.sp.jedit.MiscUtilities.Compare)">quicksort</A></B>(java.lang.Object[]&nbsp;obj,
  617. <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A>&nbsp;compare)</CODE>
  618. <BR>
  619. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <code>Arrays.sort()</code></I></TD>
  620. </TR>
  621. <TR BGCOLOR="white" CLASS="TableRowColor">
  622. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  623. <CODE>static&nbsp;void</CODE></FONT></TD>
  624. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.util.Vector, java.util.Comparator)">quicksort</A></B>(java.util.Vector&nbsp;vector,
  625. java.util.Comparator&nbsp;compare)</CODE>
  626. <BR>
  627. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I><code>Collections.sort()</code></I></TD>
  628. </TR>
  629. <TR BGCOLOR="white" CLASS="TableRowColor">
  630. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  631. <CODE>static&nbsp;void</CODE></FONT></TD>
  632. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.util.Vector, org.gjt.sp.jedit.MiscUtilities.Compare)">quicksort</A></B>(java.util.Vector&nbsp;vector,
  633. <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A>&nbsp;compare)</CODE>
  634. <BR>
  635. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I><code>Collections.sort()</code></I></TD>
  636. </TR>
  637. <TR BGCOLOR="white" CLASS="TableRowColor">
  638. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  639. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  640. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#resolveSymlinks(java.lang.String)">resolveSymlinks</A></B>(java.lang.String&nbsp;path)</CODE>
  641. <BR>
  642. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resolves any symbolic links in the path name specified
  643. using <code>File.getCanonicalPath()</code>.</TD>
  644. </TR>
  645. <TR BGCOLOR="white" CLASS="TableRowColor">
  646. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  647. <CODE>static&nbsp;void</CODE></FONT></TD>
  648. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#saveBackup(java.io.File, int, java.lang.String, java.lang.String, java.lang.String)">saveBackup</A></B>(java.io.File&nbsp;file,
  649. int&nbsp;backups,
  650. java.lang.String&nbsp;backupPrefix,
  651. java.lang.String&nbsp;backupSuffix,
  652. java.lang.String&nbsp;backupDirectory)</CODE>
  653. <BR>
  654. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves a backup (optionally numbered) of a file.</TD>
  655. </TR>
  656. <TR BGCOLOR="white" CLASS="TableRowColor">
  657. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  658. <CODE>static&nbsp;void</CODE></FONT></TD>
  659. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#saveBackup(java.io.File, int, java.lang.String, java.lang.String, java.lang.String, int)">saveBackup</A></B>(java.io.File&nbsp;file,
  660. int&nbsp;backups,
  661. java.lang.String&nbsp;backupPrefix,
  662. java.lang.String&nbsp;backupSuffix,
  663. java.lang.String&nbsp;backupDirectory,
  664. int&nbsp;backupTimeDistance)</CODE>
  665. <BR>
  666. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves a backup (optionally numbered) of a file.</TD>
  667. </TR>
  668. <TR BGCOLOR="white" CLASS="TableRowColor">
  669. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  670. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  671. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#stringsEqual(java.lang.String, java.lang.String)">stringsEqual</A></B>(java.lang.String&nbsp;s1,
  672. java.lang.String&nbsp;s2)</CODE>
  673. <BR>
  674. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Call <code>objectsEqual()</code> instead.</I></TD>
  675. </TR>
  676. <TR BGCOLOR="white" CLASS="TableRowColor">
  677. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  678. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  679. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#throwableToString(java.lang.Throwable)">throwableToString</A></B>(java.lang.Throwable&nbsp;t)</CODE>
  680. <BR>
  681. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string containing the stack trace of the given throwable.</TD>
  682. </TR>
  683. </TABLE>
  684. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  685. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  686. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  687. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  688. </TR>
  689. <TR BGCOLOR="white" CLASS="TableRowColor">
  690. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  691. </TR>
  692. </TABLE>
  693. &nbsp;
  694. <P>
  695. <!-- ============ FIELD DETAIL =========== -->
  696. <A NAME="field_detail"><!-- --></A>
  697. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  698. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  699. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  700. <B>Field Detail</B></FONT></TH>
  701. </TR>
  702. </TABLE>
  703. <A NAME="UTF_8_Y"><!-- --></A><H3>
  704. UTF_8_Y</H3>
  705. <PRE>
  706. <FONT SIZE="-1">@Deprecated
  707. </FONT>public static final java.lang.String <B>UTF_8_Y</B></PRE>
  708. <DL>
  709. <DD><B>Deprecated.</B>&nbsp;<I>Extended encodings are now supported as services.
  710. This value is no longer used.</I><DD>This encoding is not supported by Java, yet it is useful.
  711. A UTF-8 file that begins with 0xEFBBBF.
  712. <P>
  713. <DL>
  714. <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.MiscUtilities.UTF_8_Y">Constant Field Values</A></DL>
  715. </DL>
  716. <HR>
  717. <A NAME="KB_FORMAT"><!-- --></A><H3>
  718. KB_FORMAT</H3>
  719. <PRE>
  720. public static final java.text.DecimalFormat <B>KB_FORMAT</B></PRE>
  721. <DL>
  722. <DL>
  723. </DL>
  724. </DL>
  725. <HR>
  726. <A NAME="MB_FORMAT"><!-- --></A><H3>
  727. MB_FORMAT</H3>
  728. <PRE>
  729. public static final java.text.DecimalFormat <B>MB_FORMAT</B></PRE>
  730. <DL>
  731. <DL>
  732. </DL>
  733. </DL>
  734. <!-- ============ METHOD DETAIL ========== -->
  735. <A NAME="method_detail"><!-- --></A>
  736. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  737. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  738. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  739. <B>Method Detail</B></FONT></TH>
  740. </TR>
  741. </TABLE>
  742. <A NAME="canonPath(java.lang.String)"><!-- --></A><H3>
  743. canonPath</H3>
  744. <PRE>
  745. public static java.lang.String <B>canonPath</B>(java.lang.String&nbsp;path)</PRE>
  746. <DL>
  747. <DD><DL>
  748. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name
  749. <DT><B>Returns:</B><DD>the canonical form of the specified path name. Currently
  750. only expands a leading <code>~</code>. <b>For local path names
  751. only.</b><DT><B>Since:</B></DT>
  752. <DD>jEdit 4.0pre2</DD>
  753. </DL>
  754. </DD>
  755. </DL>
  756. <HR>
  757. <A NAME="expandVariables(java.lang.String)"><!-- --></A><H3>
  758. expandVariables</H3>
  759. <PRE>
  760. public static java.lang.String <B>expandVariables</B>(java.lang.String&nbsp;arg)</PRE>
  761. <DL>
  762. <DD>Accepts a string from the user which may contain variables of various syntaxes.
  763. The goal is to support the following:
  764. $varname
  765. ${varname}
  766. And expand each of these by looking at the system environment variables for possible
  767. expansions.
  768. <P>
  769. <DD><DL>
  770. <DT><B>Returns:</B><DD>a string which is either the unchanged input string, or one with expanded variables.<DT><B>Since:</B></DT>
  771. <DD>4.3pre7</DD>
  772. </DL>
  773. </DD>
  774. </DL>
  775. <HR>
  776. <A NAME="resolveSymlinks(java.lang.String)"><!-- --></A><H3>
  777. resolveSymlinks</H3>
  778. <PRE>
  779. public static java.lang.String <B>resolveSymlinks</B>(java.lang.String&nbsp;path)</PRE>
  780. <DL>
  781. <DD>Resolves any symbolic links in the path name specified
  782. using <code>File.getCanonicalPath()</code>. <b>For local path
  783. names only.</b>
  784. <P>
  785. <DD><DL>
  786. <DT><B>Since:</B></DT>
  787. <DD>jEdit 4.2pre1</DD>
  788. </DL>
  789. </DD>
  790. </DL>
  791. <HR>
  792. <A NAME="isAbsolutePath(java.lang.String)"><!-- --></A><H3>
  793. isAbsolutePath</H3>
  794. <PRE>
  795. public static boolean <B>isAbsolutePath</B>(java.lang.String&nbsp;path)</PRE>
  796. <DL>
  797. <DD>Returns if the specified path name is an absolute path or URL.
  798. <P>
  799. <DD><DL>
  800. <DT><B>Since:</B></DT>
  801. <DD>jEdit 4.1pre11</DD>
  802. </DL>
  803. </DD>
  804. </DL>
  805. <HR>
  806. <A NAME="constructPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
  807. constructPath</H3>
  808. <PRE>
  809. public static java.lang.String <B>constructPath</B>(java.lang.String&nbsp;parent,
  810. java.lang.String&nbsp;path)</PRE>
  811. <DL>
  812. <DD>Constructs an absolute path name from a directory and another
  813. path name. This method is VFS-aware.
  814. <P>
  815. <DD><DL>
  816. <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The directory<DD><CODE>path</CODE> - The path name</DL>
  817. </DD>
  818. </DL>
  819. <HR>
  820. <A NAME="constructPath(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
  821. constructPath</H3>
  822. <PRE>
  823. public static java.lang.String <B>constructPath</B>(java.lang.String&nbsp;parent,
  824. java.lang.String&nbsp;path1,
  825. java.lang.String&nbsp;path2)</PRE>
  826. <DL>
  827. <DD>Constructs an absolute path name from three path components.
  828. This method is VFS-aware.
  829. <P>
  830. <DD><DL>
  831. <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent directory<DD><CODE>path1</CODE> - The first path<DD><CODE>path2</CODE> - The second path</DL>
  832. </DD>
  833. </DL>
  834. <HR>
  835. <A NAME="concatPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
  836. concatPath</H3>
  837. <PRE>
  838. public static java.lang.String <B>concatPath</B>(java.lang.String&nbsp;parent,
  839. java.lang.String&nbsp;path)</PRE>
  840. <DL>
  841. <DD>Like <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)"><CODE>constructPath(java.lang.String, java.lang.String)</CODE></A>, except <code>path</code> will be
  842. appended to <code>parent</code> even if it is absolute.
  843. <b>For local path names only.</b>.
  844. <P>
  845. <DD><DL>
  846. <DT><B>Parameters:</B><DD><CODE>path</CODE> - <DD><CODE>parent</CODE> - </DL>
  847. </DD>
  848. </DL>
  849. <HR>
  850. <A NAME="getFirstSeparatorIndex(java.lang.String)"><!-- --></A><H3>
  851. getFirstSeparatorIndex</H3>
  852. <PRE>
  853. public static int <B>getFirstSeparatorIndex</B>(java.lang.String&nbsp;path)</PRE>
  854. <DL>
  855. <DD>Return the first index of either / or the OS-specific file
  856. separator.
  857. <P>
  858. <DD><DL>
  859. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path<DT><B>Since:</B></DT>
  860. <DD>jEdit 4.3pre3</DD>
  861. </DL>
  862. </DD>
  863. </DL>
  864. <HR>
  865. <A NAME="getLastSeparatorIndex(java.lang.String)"><!-- --></A><H3>
  866. getLastSeparatorIndex</H3>
  867. <PRE>
  868. public static int <B>getLastSeparatorIndex</B>(java.lang.String&nbsp;path)</PRE>
  869. <DL>
  870. <DD>Return the last index of either / or the OS-specific file
  871. separator.
  872. <P>
  873. <DD><DL>
  874. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path<DT><B>Since:</B></DT>
  875. <DD>jEdit 4.3pre3</DD>
  876. </DL>
  877. </DD>
  878. </DL>
  879. <HR>
  880. <A NAME="getFileExtension(java.lang.String)"><!-- --></A><H3>
  881. getFileExtension</H3>
  882. <PRE>
  883. public static java.lang.String <B>getFileExtension</B>(java.lang.String&nbsp;path)</PRE>
  884. <DL>
  885. <DD>Returns the extension of the specified filename, or an empty
  886. string if there is none.
  887. <P>
  888. <DD><DL>
  889. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path</DL>
  890. </DD>
  891. </DL>
  892. <HR>
  893. <A NAME="getFileName(java.lang.String)"><!-- --></A><H3>
  894. getFileName</H3>
  895. <PRE>
  896. public static java.lang.String <B>getFileName</B>(java.lang.String&nbsp;path)</PRE>
  897. <DL>
  898. <DD>Returns the last component of the specified path.
  899. This method is VFS-aware.
  900. <P>
  901. <DD><DL>
  902. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name</DL>
  903. </DD>
  904. </DL>
  905. <HR>
  906. <A NAME="getFileNameNoExtension(java.lang.String)"><!-- --></A><H3>
  907. getFileNameNoExtension</H3>
  908. <PRE>
  909. public static java.lang.String <B>getFileNameNoExtension</B>(java.lang.String&nbsp;path)</PRE>
  910. <DL>
  911. <DD>Returns the last component of the specified path name without the
  912. trailing extension (if there is one).
  913. <P>
  914. <DD><DL>
  915. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name<DT><B>Since:</B></DT>
  916. <DD>jEdit 4.0pre8</DD>
  917. </DL>
  918. </DD>
  919. </DL>
  920. <HR>
  921. <A NAME="getFileParent(java.lang.String)"><!-- --></A><H3>
  922. getFileParent</H3>
  923. <PRE>
  924. <FONT SIZE="-1">@Deprecated
  925. </FONT>public static java.lang.String <B>getFileParent</B>(java.lang.String&nbsp;path)</PRE>
  926. <DL>
  927. <DD><B>Deprecated.</B>&nbsp;<I>Call getParentOfPath() instead</I>
  928. <P>
  929. <DD><DL>
  930. </DL>
  931. </DD>
  932. </DL>
  933. <HR>
  934. <A NAME="getParentOfPath(java.lang.String)"><!-- --></A><H3>
  935. getParentOfPath</H3>
  936. <PRE>
  937. public static java.lang.String <B>getParentOfPath</B>(java.lang.String&nbsp;path)</PRE>
  938. <DL>
  939. <DD>Returns the parent of the specified path. This method is VFS-aware.
  940. <P>
  941. <DD><DL>
  942. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name<DT><B>Since:</B></DT>
  943. <DD>jEdit 2.6pre5</DD>
  944. </DL>
  945. </DD>
  946. </DL>
  947. <HR>
  948. <A NAME="getFileProtocol(java.lang.String)"><!-- --></A><H3>
  949. getFileProtocol</H3>
  950. <PRE>
  951. <FONT SIZE="-1">@Deprecated
  952. </FONT>public static java.lang.String <B>getFileProtocol</B>(java.lang.String&nbsp;url)</PRE>
  953. <DL>
  954. <DD><B>Deprecated.</B>&nbsp;<I>Call getProtocolOfURL() instead</I>
  955. <P>
  956. <DD><DL>
  957. </DL>
  958. </DD>
  959. </DL>
  960. <HR>
  961. <A NAME="getProtocolOfURL(java.lang.String)"><!-- --></A><H3>
  962. getProtocolOfURL</H3>
  963. <PRE>
  964. public static java.lang.String <B>getProtocolOfURL</B>(java.lang.String&nbsp;url)</PRE>
  965. <DL>
  966. <DD>Returns the protocol specified by a URL.
  967. <P>
  968. <DD><DL>
  969. <DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL<DT><B>Since:</B></DT>
  970. <DD>jEdit 2.6pre5</DD>
  971. </DL>
  972. </DD>
  973. </DL>
  974. <HR>
  975. <A NAME="isURL(java.lang.String)"><!-- --></A><H3>
  976. isURL</H3>
  977. <PRE>
  978. public static boolean <B>isURL</B>(java.lang.String&nbsp;str)</PRE>
  979. <DL>
  980. <DD>Checks if the specified string is a URL.
  981. <P>
  982. <DD><DL>
  983. <DT><B>Parameters:</B><DD><CODE>str</CODE> - The string to check
  984. <DT><B>Returns:</B><DD>True if the string is a URL, false otherwise</DL>
  985. </DD>
  986. </DL>
  987. <HR>
  988. <A NAME="saveBackup(java.io.File, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
  989. saveBackup</H3>
  990. <PRE>
  991. public static void <B>saveBackup</B>(java.io.File&nbsp;file,
  992. int&nbsp;backups,
  993. java.lang.String&nbsp;backupPrefix,
  994. java.lang.String&nbsp;backupSuffix,
  995. java.lang.String&nbsp;backupDirectory)</PRE>
  996. <DL>
  997. <DD>Saves a backup (optionally numbered) of a file.
  998. <P>
  999. <DD><DL>
  1000. <DT><B>Parameters:</B><DD><CODE>file</CODE> - A local file<DD><CODE>backups</CODE> - The number of backups. Must be >= 1. If > 1, backup
  1001. files will be numbered.<DD><CODE>backupPrefix</CODE> - The backup file name prefix<DD><CODE>backupSuffix</CODE> - The backup file name suffix<DD><CODE>backupDirectory</CODE> - The directory where to save backups; if null,
  1002. they will be saved in the same directory as the file itself.<DT><B>Since:</B></DT>
  1003. <DD>jEdit 4.0pre1</DD>
  1004. </DL>
  1005. </DD>
  1006. </DL>
  1007. <HR>
  1008. <A NAME="saveBackup(java.io.File, int, java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>
  1009. saveBackup</H3>
  1010. <PRE>
  1011. public static void <B>saveBackup</B>(java.io.File&nbsp;file,
  1012. int&nbsp;backups,
  1013. java.lang.String&nbsp;backupPrefix,
  1014. java.lang.String&nbsp;backupSuffix,
  1015. java.lang.String&nbsp;backupDirectory,
  1016. int&nbsp;backupTimeDistance)</PRE>
  1017. <DL>
  1018. <DD>Saves a backup (optionally numbered) of a file.
  1019. <P>
  1020. <DD><DL>
  1021. <DT><B>Parameters:</B><DD><CODE>file</CODE> - A local file<DD><CODE>backups</CODE> - The number of backups. Must be >= 1. If > 1, backup
  1022. files will be numbered.<DD><CODE>backupPrefix</CODE> - The backup file name prefix<DD><CODE>backupSuffix</CODE> - The backup file name suffix<DD><CODE>backupDirectory</CODE> - The directory where to save backups; if null,
  1023. they will be saved in the same directory as the file itself.<DD><CODE>backupTimeDistance</CODE> - The minimum time in minutes when a backup
  1024. version 1 shall be moved into version 2; if 0, backups are always
  1025. moved.<DT><B>Since:</B></DT>
  1026. <DD>jEdit 4.2pre5</DD>
  1027. </DL>
  1028. </DD>
  1029. </DL>
  1030. <HR>
  1031. <A NAME="moveFile(java.io.File, java.io.File)"><!-- --></A><H3>
  1032. moveFile</H3>
  1033. <PRE>
  1034. <FONT SIZE="-1">@Deprecated
  1035. </FONT>public static boolean <B>moveFile</B>(java.io.File&nbsp;source,
  1036. java.io.File&nbsp;dest)</PRE>
  1037. <DL>
  1038. <DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#moveFile(java.io.File, java.io.File)"><CODE>IOUtilities.moveFile(java.io.File, java.io.File)</CODE></A></I>
  1039. <P>
  1040. <DD>Moves the source file to the destination.
  1041. If the destination cannot be created or is a read-only file, the
  1042. method returns <code>false</code>. Otherwise, the contents of the
  1043. source are copied to the destination, the source is deleted,
  1044. and <code>true</code> is returned.
  1045. <P>
  1046. <DD><DL>
  1047. <DT><B>Parameters:</B><DD><CODE>source</CODE> - The source file to move.<DD><CODE>dest</CODE> - The destination where to move the file.
  1048. <DT><B>Returns:</B><DD>true on success, false otherwise.<DT><B>Since:</B></DT>
  1049. <DD>jEdit 4.3pre1</DD>
  1050. </DL>
  1051. </DD>
  1052. </DL>
  1053. <HR>
  1054. <A NAME="copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><!-- --></A><H3>
  1055. copyStream</H3>
  1056. <PRE>
  1057. <FONT SIZE="-1">@Deprecated
  1058. </FONT>public static boolean <B>copyStream</B>(int&nbsp;bufferSize,
  1059. <A HREF="../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  1060. java.io.InputStream&nbsp;in,
  1061. java.io.OutputStream&nbsp;out,
  1062. boolean&nbsp;canStop)
  1063. throws java.io.IOException</PRE>
  1064. <DL>
  1065. <DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><CODE>IOUtilities.copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)</CODE></A></I>
  1066. <P>
  1067. <DD>Copy an input stream to an output stream.
  1068. <P>
  1069. <DD><DL>
  1070. <DT><B>Parameters:</B><DD><CODE>bufferSize</CODE> - the size of the buffer<DD><CODE>progress</CODE> - the progress observer it could be null<DD><CODE>in</CODE> - the input stream<DD><CODE>out</CODE> - the output stream<DD><CODE>canStop</CODE> - if true, the copy can be stopped by interrupting the thread
  1071. <DT><B>Returns:</B><DD><code>true</code> if the copy was done, <code>false</code> if it was interrupted
  1072. <DT><B>Throws:</B>
  1073. <DD><CODE>java.io.IOException</CODE> - IOException If an I/O error occurs<DT><B>Since:</B></DT>
  1074. <DD>jEdit 4.3pre3</DD>
  1075. </DL>
  1076. </DD>
  1077. </DL>
  1078. <HR>
  1079. <A NAME="copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><!-- --></A><H3>
  1080. copyStream</H3>
  1081. <PRE>
  1082. <FONT SIZE="-1">@Deprecated
  1083. </FONT>public static boolean <B>copyStream</B>(<A HREF="../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  1084. java.io.InputStream&nbsp;in,
  1085. java.io.OutputStream&nbsp;out,
  1086. boolean&nbsp;canStop)
  1087. throws java.io.IOException</PRE>
  1088. <DL>
  1089. <DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)"><CODE>IOUtilities.copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean)</CODE></A></I>
  1090. <P>
  1091. <DD>Copy an input stream to an output stream with a buffer of 4096 bytes.
  1092. <P>
  1093. <DD><DL>
  1094. <DT><B>Parameters:</B><DD><CODE>progress</CODE> - the progress observer it could be null<DD><CODE>in</CODE> - the input stream<DD><CODE>out</CODE> - the output stream<DD><CODE>canStop</CODE> - if true, the copy can be stopped by interrupting the thread
  1095. <DT><B>Returns:</B><DD><code>true</code> if the copy was done, <code>false</code> if it was interrupted
  1096. <DT><B>Throws:</B>
  1097. <DD><CODE>java.io.IOException</CODE> - IOException If an I/O error occurs<DT><B>Since:</B></DT>
  1098. <DD>jEdit 4.3pre3</DD>
  1099. </DL>
  1100. </DD>
  1101. </DL>
  1102. <HR>
  1103. <A NAME="isBinary(java.io.Reader)"><!-- --></A><H3>
  1104. isBinary</H3>
  1105. <PRE>
  1106. <FONT SIZE="-1">@Deprecated
  1107. </FONT>public static boolean <B>isBinary</B>(java.io.Reader&nbsp;reader)
  1108. throws java.io.IOException</PRE>
  1109. <DL>
  1110. <DD><B>Deprecated.</B>&nbsp;<I>Use isBinary(InputStream) instead.</I>
  1111. <P>
  1112. <DD>Check if a Reader is binary.
  1113. <P>
  1114. <DD><DL>
  1115. <DT><B>Throws:</B>
  1116. <DD><CODE>java.io.IOException</CODE></DL>
  1117. </DD>
  1118. </DL>
  1119. <HR>
  1120. <A NAME="isBinary(java.io.InputStream)"><!-- --></A><H3>
  1121. isBinary</H3>
  1122. <PRE>
  1123. public static boolean <B>isBinary</B>(java.io.InputStream&nbsp;in)
  1124. throws java.io.IOException</PRE>
  1125. <DL>
  1126. <DD>Check if an InputStream is binary.
  1127. First this tries encoding auto detection. If an encoding is
  1128. detected, the stream should be a text stream. Otherwise, this
  1129. will check the first characters 100
  1130. (jEdit property vfs.binaryCheck.length) in the system default
  1131. encoding. If more than 1 (jEdit property vfs.binaryCheck.count)
  1132. NUL(�) was found, the stream is declared binary.
  1133. This is not 100% because sometimes the autodetection could fail.
  1134. This method will not close the stream. You have to do it yourself
  1135. <P>
  1136. <DD><DL>
  1137. <DT><B>Parameters:</B><DD><CODE>in</CODE> - the stream
  1138. <DT><B>Returns:</B><DD><code>true</code> if the stream was detected as binary
  1139. <DT><B>Throws:</B>
  1140. <DD><CODE>java.io.IOException</CODE> - IOException If an I/O error occurs<DT><B>Since:</B></DT>
  1141. <DD>jEdit 4.3pre10</DD>
  1142. </DL>
  1143. </DD>
  1144. </DL>
  1145. <HR>
  1146. <A NAME="isBackup(java.lang.String)"><!-- --></A><H3>
  1147. isBackup</H3>
  1148. <PRE>
  1149. public static boolean <B>isBackup</B>(java.lang.String&nbsp;filename)</PRE>
  1150. <DL>
  1151. <DD>Check if the filename is a backup file.
  1152. <P>
  1153. <DD><DL>
  1154. <DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to check
  1155. <DT><B>Returns:</B><DD>true if this is a backup file.<DT><B>Since:</B></DT>
  1156. <DD>jEdit 4.3pre5</DD>
  1157. </DL>
  1158. </DD>
  1159. </DL>
  1160. <HR>
  1161. <A NAME="autodetect(java.io.InputStream, org.gjt.sp.jedit.Buffer)"><!-- --></A><H3>
  1162. autodetect</H3>
  1163. <PRE>
  1164. public static java.io.Reader <B>autodetect</B>(java.io.InputStream&nbsp;in,
  1165. <A HREF="../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer)
  1166. throws java.io.IOException</PRE>
  1167. <DL>
  1168. <DD>Tries to detect if the stream is gzipped, and if it has an encoding
  1169. specified with an XML PI.
  1170. <P>
  1171. <DD><DL>
  1172. <DT><B>Parameters:</B><DD><CODE>in</CODE> - the input stream reader that must be autodetected<DD><CODE>buffer</CODE> - a buffer. It can be null if you only want to autodetect the encoding of a file
  1173. <DT><B>Returns:</B><DD>a Reader using the detected encoding
  1174. <DT><B>Throws:</B>
  1175. <DD><CODE>java.io.IOException</CODE> - io exception during read<DT><B>Since:</B></DT>
  1176. <DD>jEdit 4.3pre5</DD>
  1177. </DL>
  1178. </DD>
  1179. </DL>
  1180. <HR>
  1181. <A NAME="closeQuietly(java.io.InputStream)"><!-- --></A><H3>
  1182. closeQuietly</H3>
  1183. <PRE>
  1184. <FONT SIZE="-1">@Deprecated
  1185. </FONT>public static void <B>closeQuietly</B>(java.io.InputStream&nbsp;in)</PRE>
  1186. <DL>
  1187. <DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.InputStream)"><CODE>IOUtilities.closeQuietly(java.io.InputStream)</CODE></A></I>
  1188. <P>
  1189. <DD>Method that will close an <CODE>InputStream</CODE> ignoring it if it is null and ignoring exceptions.
  1190. <P>
  1191. <DD><DL>
  1192. <DT><B>Parameters:</B><DD><CODE>in</CODE> - the InputStream to close.<DT><B>Since:</B></DT>
  1193. <DD>jEdit 4.3pre3</DD>
  1194. </DL>
  1195. </DD>
  1196. </DL>
  1197. <HR>
  1198. <A NAME="closeQuietly(java.io.OutputStream)"><!-- --></A><H3>
  1199. closeQuietly</H3>
  1200. <PRE>
  1201. <FONT SIZE="-1">@Deprecated
  1202. </FONT>public static void <B>closeQuietly</B>(java.io.OutputStream&nbsp;out)</PRE>
  1203. <DL>
  1204. <DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.OutputStream)"><CODE>IOUtilities.closeQuietly(java.io.OutputStream)</CODE></A></I>
  1205. <P>
  1206. <DD>Method that will close an <CODE>OutputStream</CODE> ignoring it if it is null and ignoring exceptions.
  1207. <P>
  1208. <DD><DL>
  1209. <DT><B>Parameters:</B><DD><CODE>out</CODE> - the OutputStream to close.<DT><B>Since:</B></DT>
  1210. <DD>jEdit 4.3pre3</DD>
  1211. </DL>
  1212. </DD>
  1213. </DL>
  1214. <HR>
  1215. <A NAME="fileToClass(java.lang.String)"><!-- --></A><H3>
  1216. fileToClass</H3>
  1217. <PRE>
  1218. public static java.lang.String <B>fileToClass</B>(java.lang.String&nbsp;name)</PRE>
  1219. <DL>
  1220. <DD>Converts a file name to a class name. All slash characters are
  1221. replaced with periods and the trailing '.class' is removed.
  1222. <P>
  1223. <DD><DL>
  1224. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The file name</DL>
  1225. </DD>
  1226. </DL>
  1227. <HR>
  1228. <A NAME="classToFile(java.lang.String)"><!-- --></A><H3>
  1229. classToFile</H3>
  1230. <PRE>
  1231. public static java.lang.String <B>classToFile</B>(java.lang.String&nbsp;name)</PRE>
  1232. <DL>
  1233. <DD>Converts a class name to a file name. All periods are replaced
  1234. with slashes and the '.class' extension is added.
  1235. <P>
  1236. <DD><DL>
  1237. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The class name</DL>
  1238. </DD>
  1239. </DL>
  1240. <HR>
  1241. <A NAME="pathsEqual(java.lang.String, java.lang.String)"><!-- --></A><H3>
  1242. pathsEqual</H3>
  1243. <PRE>
  1244. public static boolean <B>pathsEqual</B>(java.lang.String&nbsp;p1,
  1245. java.lang.String&nbsp;p2)</PRE>
  1246. <DL>
  1247. <DD><DL>
  1248. <DT><B>Parameters:</B><DD><CODE>p1</CODE> - A path name<DD><CODE>p2</CODE> - A path name
  1249. <DT><B>Returns:</B><DD>True if both paths are equal, ignoring trailing slashes, as
  1250. well as case insensitivity on Windows.<DT><