PageRenderTime 51ms CodeModel.GetById 12ms RepoModel.GetById 1ms 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

Large files files are truncated, but you can click here to view the full file

  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="getFirst…

Large files files are truncated, but you can click here to view the full file