/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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:46 GMT-08:00 2008 -->
- <TITLE>
- MiscUtilities (jEdit API)
- </TITLE>
- <META NAME="keywords" CONTENT="org.gjt.sp.jedit.MiscUtilities class">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
- <NOSCRIPT>
- </NOSCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" >
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MiscUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../org/gjt/sp/jedit/Marker.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>
- <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../index.html?org/gjt/sp/jedit/MiscUtilities.html" target="_top"><B>FRAMES</B></A>
- <A HREF="MiscUtilities.html" target="_top"><B>NO FRAMES</B></A>
-
- <NOSCRIPT>
- <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- org.gjt.sp.jedit</FONT>
- <BR>
- Class MiscUtilities</H2>
- <PRE>
- java.lang.Object
- <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.MiscUtilities</B>
- </PRE>
- <HR>
- <DL>
- <DT><PRE>public class <B>MiscUtilities</B><DT>extends java.lang.Object</DL>
- </PRE>
- <P>
- Path name manipulation, string manipulation, and more.<p>
- The most frequently used members of this class are:<p>
- <b>Some path name methods:</b><p>
- <ul>
- <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileName(java.lang.String)"><CODE>getFileName(String)</CODE></A></li>
- <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getParentOfPath(java.lang.String)"><CODE>getParentOfPath(String)</CODE></A></li>
- <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)"><CODE>constructPath(String,String)</CODE></A></li>
- </ul>
- <b>String comparison:</b><p>
- 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
- <function>String.compareTo()</function>, correctly recognizes and handles
- embedded numbers.<p>
- This class also defines several inner classes for use with the
- sorting features of the Java collections API:
- <ul>
- <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><CODE>MiscUtilities.StringICaseCompare</CODE></A></li>
- <li><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.MenuItemCompare.html" title="class in org.gjt.sp.jedit"><CODE>MiscUtilities.MenuItemCompare</CODE></A></li>
- </ul>
- For example, you might call:<p>
- <code>Arrays.sort(myListOfStrings,
- new MiscUtilities.StringICaseCompare());</code>
- <P>
- <P>
- <HR>
- <P>
- <!-- ======== NESTED CLASS SUMMARY ======== -->
- <A NAME="nested_class_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Nested Class Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static interface</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A></B></CODE>
- <BR>
- <B>Deprecated.</B> <I></I> </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static class</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.MenuItemCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.MenuItemCompare</A></B></CODE>
- <BR>
- <B>Deprecated.</B> </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static class</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.StringCompare</A></B></CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static class</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit">MiscUtilities.StringICaseCompare</A></B></CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- </TABLE>
- <!-- =========== FIELD SUMMARY =========== -->
- <A NAME="field_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Field Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.text.DecimalFormat</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#KB_FORMAT">KB_FORMAT</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.text.DecimalFormat</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#MB_FORMAT">MB_FORMAT</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#UTF_8_Y">UTF_8_Y</A></B></CODE>
- <BR>
- <B>Deprecated.</B> <I>Extended encodings are now supported as services.
- This value is no longer used.</I></TD>
- </TR>
- </TABLE>
-
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.io.Reader</CODE></FONT></TD>
- <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 in,
- <A HREF="../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A> buffer)</CODE>
- <BR>
- Tries to detect if the stream is gzipped, and if it has an encoding
- specified with an XML PI.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#buildToVersion(java.lang.String)">buildToVersion</A></B>(java.lang.String build)</CODE>
- <BR>
- Converts an internal version number (build) into a
- `human-readable' form.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#canonPath(java.lang.String)">canonPath</A></B>(java.lang.String path)</CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEntities(java.lang.String)">charsToEntities</A></B>(java.lang.String str)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Use <A HREF="../../../../org/gjt/sp/util/XMLUtilities.html#charsToEntities(java.lang.String, boolean)"><CODE>XMLUtilities.charsToEntities(String, boolean)</CODE></A>.</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEscapes(java.lang.String)">charsToEscapes</A></B>(java.lang.String str)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#charsToEscapes(java.lang.String)"><CODE>StandardUtilities.charsToEscapes(String)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#charsToEscapes(java.lang.String, java.lang.String)">charsToEscapes</A></B>(java.lang.String str,
- java.lang.String toEscape)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#charsToEscapes(java.lang.String)"><CODE>StandardUtilities.charsToEscapes(String)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#classToFile(java.lang.String)">classToFile</A></B>(java.lang.String name)</CODE>
- <BR>
- Converts a class name to a file name.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#closeQuietly(java.io.InputStream)">closeQuietly</A></B>(java.io.InputStream in)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.InputStream)"><CODE>IOUtilities.closeQuietly(java.io.InputStream)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#closeQuietly(java.io.OutputStream)">closeQuietly</A></B>(java.io.OutputStream out)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/IOUtilities.html#closeQuietly(java.io.OutputStream)"><CODE>IOUtilities.closeQuietly(java.io.OutputStream)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <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 str1,
- java.lang.String str2,
- boolean ignoreCase)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#compareVersions(java.lang.String, java.lang.String)">compareVersions</A></B>(java.lang.String v1,
- java.lang.String v2)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Call <code>compareStrings()</code> instead</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#concatPath(java.lang.String, java.lang.String)">concatPath</A></B>(java.lang.String parent,
- java.lang.String path)</CODE>
- <BR>
- 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
- appended to <code>parent</code> even if it is absolute.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)">constructPath</A></B>(java.lang.String parent,
- java.lang.String path)</CODE>
- <BR>
- Constructs an absolute path name from a directory and another
- path name.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <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 parent,
- java.lang.String path1,
- java.lang.String path2)</CODE>
- <BR>
- Constructs an absolute path name from three path components.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <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 bufferSize,
- <A HREF="../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A> progress,
- java.io.InputStream in,
- java.io.OutputStream out,
- boolean canStop)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <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> progress,
- java.io.InputStream in,
- java.io.OutputStream out,
- boolean canStop)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#createWhiteSpace(int, int)">createWhiteSpace</A></B>(int len,
- int tabSize)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#createWhiteSpace(int, int)"><CODE>StandardUtilities.createWhiteSpace(int, int)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#createWhiteSpace(int, int, int)">createWhiteSpace</A></B>(int len,
- int tabSize,
- int start)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#createWhiteSpace(int, int, int)"><CODE>StandardUtilities.createWhiteSpace(int, int, int)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#escapesToChars(java.lang.String)">escapesToChars</A></B>(java.lang.String str)</CODE>
- <BR>
- Converts "\n" and "\t" escapes in the specified string to
- newlines and tabs.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#expandVariables(java.lang.String)">expandVariables</A></B>(java.lang.String arg)</CODE>
- <BR>
- Accepts a string from the user which may contain variables of various syntaxes.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#fileToClass(java.lang.String)">fileToClass</A></B>(java.lang.String name)</CODE>
- <BR>
- Converts a file name to a class name.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static org.xml.sax.InputSource</CODE></FONT></TD>
- <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 systemId,
- java.lang.String test,
- java.lang.Class where)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#formatFileSize(long)">formatFileSize</A></B>(long length)</CODE>
- <BR>
- Formats the given file size into a nice string (123 Bytes, 10.6 kB,
- 1.2 MB).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getEncodings()">getEncodings</A></B>()</CODE>
- <BR>
- <B>Deprecated.</B> <I>See #getEncodings( boolean )</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getEncodings(boolean)">getEncodings</A></B>(boolean getSelected)</CODE>
- <BR>
- Returns a list of supported character encodings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileExtension(java.lang.String)">getFileExtension</A></B>(java.lang.String path)</CODE>
- <BR>
- Returns the extension of the specified filename, or an empty
- string if there is none.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileName(java.lang.String)">getFileName</A></B>(java.lang.String path)</CODE>
- <BR>
- Returns the last component of the specified path.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileNameNoExtension(java.lang.String)">getFileNameNoExtension</A></B>(java.lang.String path)</CODE>
- <BR>
- Returns the last component of the specified path name without the
- trailing extension (if there is one).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileParent(java.lang.String)">getFileParent</A></B>(java.lang.String path)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Call getParentOfPath() instead</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFileProtocol(java.lang.String)">getFileProtocol</A></B>(java.lang.String url)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Call getProtocolOfURL() instead</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getFirstSeparatorIndex(java.lang.String)">getFirstSeparatorIndex</A></B>(java.lang.String path)</CODE>
- <BR>
- Return the first index of either / or the OS-specific file
- separator.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLastSeparatorIndex(java.lang.String)">getLastSeparatorIndex</A></B>(java.lang.String path)</CODE>
- <BR>
- Return the last index of either / or the OS-specific file
- separator.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLeadingWhiteSpace(java.lang.String)">getLeadingWhiteSpace</A></B>(java.lang.String str)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getLeadingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getLeadingWhiteSpace(String)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLeadingWhiteSpaceWidth(java.lang.String, int)">getLeadingWhiteSpaceWidth</A></B>(java.lang.String str,
- int tabSize)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getLeadingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getLeadingWhiteSpace(String)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.util.List, boolean)">getLongestPrefix</A></B>(java.util.List str,
- boolean ignoreCase)</CODE>
- <BR>
- Returns the longest common prefix in the given set of strings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.lang.Object[], boolean)">getLongestPrefix</A></B>(java.lang.Object[] str,
- boolean ignoreCase)</CODE>
- <BR>
- Returns the longest common prefix in the given set of strings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getLongestPrefix(java.lang.String[], boolean)">getLongestPrefix</A></B>(java.lang.String[] str,
- boolean ignoreCase)</CODE>
- <BR>
- Returns the longest common prefix in the given set of strings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <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 seg,
- int tabSize,
- int column,
- int[] totalVirtualWidth)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getParentOfPath(java.lang.String)">getParentOfPath</A></B>(java.lang.String path)</CODE>
- <BR>
- Returns the parent of the specified path.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getProtocolOfURL(java.lang.String)">getProtocolOfURL</A></B>(java.lang.String url)</CODE>
- <BR>
- Returns the protocol specified by a URL.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getTrailingWhiteSpace(java.lang.String)">getTrailingWhiteSpace</A></B>(java.lang.String str)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#getTrailingWhiteSpace(java.lang.String)"><CODE>StandardUtilities.getTrailingWhiteSpace(String)</CODE></A></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#getVirtualWidth(javax.swing.text.Segment, int)">getVirtualWidth</A></B>(javax.swing.text.Segment seg,
- int tabSize)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#globToRE(java.lang.String)">globToRE</A></B>(java.lang.String glob)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Use <A HREF="../../../../org/gjt/sp/util/StandardUtilities.html#globToRE(java.lang.String)"><CODE>StandardUtilities.globToRE(String)</CODE></A>.</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isAbsolutePath(java.lang.String)">isAbsolutePath</A></B>(java.lang.String path)</CODE>
- <BR>
- Returns if the specified path name is an absolute path or URL.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBackup(java.lang.String)">isBackup</A></B>(java.lang.String filename)</CODE>
- <BR>
- Check if the filename is a backup file.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBinary(java.io.InputStream)">isBinary</A></B>(java.io.InputStream in)</CODE>
- <BR>
- Check if an InputStream is binary.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isBinary(java.io.Reader)">isBinary</A></B>(java.io.Reader reader)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Use isBinary(InputStream) instead.</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isToolsJarAvailable()">isToolsJarAvailable</A></B>()</CODE>
- <BR>
- If on JDK 1.2 or higher, make sure that tools.jar is available.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#isURL(java.lang.String)">isURL</A></B>(java.lang.String str)</CODE>
- <BR>
- Checks if the specified string is a URL.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#moveFile(java.io.File, java.io.File)">moveFile</A></B>(java.io.File source,
- java.io.File dest)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#objectsEqual(java.lang.Object, java.lang.Object)">objectsEqual</A></B>(java.lang.Object o1,
- java.lang.Object o2)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#parsePermissions(java.lang.String)">parsePermissions</A></B>(java.lang.String s)</CODE>
- <BR>
- Parse a Unix-style permission string (rwxrwxrwx).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <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 in,
- org.xml.sax.helpers.DefaultHandler handler)</CODE>
- <BR>
- <B>Deprecated.</B> <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#pathsEqual(java.lang.String, java.lang.String)">pathsEqual</A></B>(java.lang.String p1,
- java.lang.String p2)</CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.util.List, java.util.Comparator)">quicksort</A></B>(java.util.List list,
- java.util.Comparator compare)</CODE>
- <BR>
- <B>Deprecated.</B> <I><code>Collections.sort()</code></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.lang.Object[], java.util.Comparator)">quicksort</A></B>(java.lang.Object[] obj,
- java.util.Comparator compare)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <code>Arrays.sort()</code></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <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[] obj,
- <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A> compare)</CODE>
- <BR>
- <B>Deprecated.</B> <I>use <code>Arrays.sort()</code></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#quicksort(java.util.Vector, java.util.Comparator)">quicksort</A></B>(java.util.Vector vector,
- java.util.Comparator compare)</CODE>
- <BR>
- <B>Deprecated.</B> <I><code>Collections.sort()</code></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <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 vector,
- <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.Compare.html" title="interface in org.gjt.sp.jedit">MiscUtilities.Compare</A> compare)</CODE>
- <BR>
- <B>Deprecated.</B> <I><code>Collections.sort()</code></I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#resolveSymlinks(java.lang.String)">resolveSymlinks</A></B>(java.lang.String path)</CODE>
- <BR>
- Resolves any symbolic links in the path name specified
- using <code>File.getCanonicalPath()</code>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <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 file,
- int backups,
- java.lang.String backupPrefix,
- java.lang.String backupSuffix,
- java.lang.String backupDirectory)</CODE>
- <BR>
- Saves a backup (optionally numbered) of a file.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static void</CODE></FONT></TD>
- <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 file,
- int backups,
- java.lang.String backupPrefix,
- java.lang.String backupSuffix,
- java.lang.String backupDirectory,
- int backupTimeDistance)</CODE>
- <BR>
- Saves a backup (optionally numbered) of a file.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#stringsEqual(java.lang.String, java.lang.String)">stringsEqual</A></B>(java.lang.String s1,
- java.lang.String s2)</CODE>
- <BR>
- <B>Deprecated.</B> <I>Call <code>objectsEqual()</code> instead.</I></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.html#throwableToString(java.lang.Throwable)">throwableToString</A></B>(java.lang.Throwable t)</CODE>
- <BR>
- Returns a string containing the stack trace of the given throwable.</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
- </TR>
- </TABLE>
-
- <P>
- <!-- ============ FIELD DETAIL =========== -->
- <A NAME="field_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Field Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="UTF_8_Y"><!-- --></A><H3>
- UTF_8_Y</H3>
- <PRE>
- <FONT SIZE="-1">@Deprecated
- </FONT>public static final java.lang.String <B>UTF_8_Y</B></PRE>
- <DL>
- <DD><B>Deprecated.</B> <I>Extended encodings are now supported as services.
- This value is no longer used.</I><DD>This encoding is not supported by Java, yet it is useful.
- A UTF-8 file that begins with 0xEFBBBF.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.MiscUtilities.UTF_8_Y">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="KB_FORMAT"><!-- --></A><H3>
- KB_FORMAT</H3>
- <PRE>
- public static final java.text.DecimalFormat <B>KB_FORMAT</B></PRE>
- <DL>
- <DL>
- </DL>
- </DL>
- <HR>
- <A NAME="MB_FORMAT"><!-- --></A><H3>
- MB_FORMAT</H3>
- <PRE>
- public static final java.text.DecimalFormat <B>MB_FORMAT</B></PRE>
- <DL>
- <DL>
- </DL>
- </DL>
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="canonPath(java.lang.String)"><!-- --></A><H3>
- canonPath</H3>
- <PRE>
- public static java.lang.String <B>canonPath</B>(java.lang.String path)</PRE>
- <DL>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name
- <DT><B>Returns:</B><DD>the canonical form of the specified path name. Currently
- only expands a leading <code>~</code>. <b>For local path names
- only.</b><DT><B>Since:</B></DT>
- <DD>jEdit 4.0pre2</DD>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="expandVariables(java.lang.String)"><!-- --></A><H3>
- expandVariables</H3>
- <PRE>
- public static java.lang.String <B>expandVariables</B>(java.lang.String arg)</PRE>
- <DL>
- <DD>Accepts a string from the user which may contain variables of various syntaxes.
- The goal is to support the following:
- $varname
- ${varname}
- And expand each of these by looking at the system environment variables for possible
- expansions.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>a string which is either the unchanged input string, or one with expanded variables.<DT><B>Since:</B></DT>
- <DD>4.3pre7</DD>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="resolveSymlinks(java.lang.String)"><!-- --></A><H3>
- resolveSymlinks</H3>
- <PRE>
- public static java.lang.String <B>resolveSymlinks</B>(java.lang.String path)</PRE>
- <DL>
- <DD>Resolves any symbolic links in the path name specified
- using <code>File.getCanonicalPath()</code>. <b>For local path
- names only.</b>
- <P>
- <DD><DL>
- <DT><B>Since:</B></DT>
- <DD>jEdit 4.2pre1</DD>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isAbsolutePath(java.lang.String)"><!-- --></A><H3>
- isAbsolutePath</H3>
- <PRE>
- public static boolean <B>isAbsolutePath</B>(java.lang.String path)</PRE>
- <DL>
- <DD>Returns if the specified path name is an absolute path or URL.
- <P>
- <DD><DL>
- <DT><B>Since:</B></DT>
- <DD>jEdit 4.1pre11</DD>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="constructPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
- constructPath</H3>
- <PRE>
- public static java.lang.String <B>constructPath</B>(java.lang.String parent,
- java.lang.String path)</PRE>
- <DL>
- <DD>Constructs an absolute path name from a directory and another
- path name. This method is VFS-aware.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The directory<DD><CODE>path</CODE> - The path name</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="constructPath(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
- constructPath</H3>
- <PRE>
- public static java.lang.String <B>constructPath</B>(java.lang.String parent,
- java.lang.String path1,
- java.lang.String path2)</PRE>
- <DL>
- <DD>Constructs an absolute path name from three path components.
- This method is VFS-aware.
- <P>
- <DD><DL>
- <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>
- </DD>
- </DL>
- <HR>
- <A NAME="concatPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
- concatPath</H3>
- <PRE>
- public static java.lang.String <B>concatPath</B>(java.lang.String parent,
- java.lang.String path)</PRE>
- <DL>
- <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
- appended to <code>parent</code> even if it is absolute.
- <b>For local path names only.</b>.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>path</CODE> - <DD><CODE>parent</CODE> - </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getFirst…
Large files files are truncated, but you can click here to view the full file