diff options
Diffstat (limited to 'libraries/oscP5/reference/netP5/StringUtils.html')
-rw-r--r-- | libraries/oscP5/reference/netP5/StringUtils.html | 1008 |
1 files changed, 1008 insertions, 0 deletions
diff --git a/libraries/oscP5/reference/netP5/StringUtils.html b/libraries/oscP5/reference/netP5/StringUtils.html new file mode 100644 index 0000000..5357371 --- /dev/null +++ b/libraries/oscP5/reference/netP5/StringUtils.html @@ -0,0 +1,1008 @@ +<!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.6.0_33) on Sun Dec 23 14:34:38 SGT 2012 --> +<TITLE> +StringUtils (Javadocs: oscP5) +</TITLE> + +<META NAME="date" CONTENT="2012-12-23"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="StringUtils (Javadocs: oscP5)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= 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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </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-all.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="../netP5/NetStatus.html" title="class in netP5"><B>PREV CLASS</B></A> + <A HREF="../netP5/TcpClient.html" title="class in netP5"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../index.html?netP5/StringUtils.html" target="_top"><B>FRAMES</B></A> + <A HREF="StringUtils.html" target="_top"><B>NO FRAMES</B></A> + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | 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"> +netP5</FONT> +<BR> +Class StringUtils</H2> +<PRE> +<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> + <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>netP5.StringUtils</B> +</PRE> +<HR> +<DL> +<DT><PRE>public class <B>StringUtils</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> +</PRE> + +<P> +<HR> + +<P> + +<!-- ========== 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 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#arrayToString(java.lang.String[])">arrayToString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theArray)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#arrayToString(java.lang.String[], int, int)">arrayToString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theArray, + int theStart, + int theEnd)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#centerJustify(java.lang.String, int)">centerJustify</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</CODE> + +<BR> + Creates a string of the given width with the given string left justified + (padded by an appropriate number of spaces in front and after it).</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#duplicate(java.lang.String, int)">duplicate</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int copies)</CODE> + +<BR> + Returns a String with the source String copied the specified number of + times.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#explode(java.lang.String)">explode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source)</CODE> + +<BR> + Splits a string into an array with a space as delimiter.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#explode(java.lang.String[], int[])">explode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] source, + int[] lengths)</CODE> + +<BR> + Splits every String in an array at the specified lengths.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#explode(java.lang.String, int[])">explode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int[] lengths)</CODE> + +<BR> + Splits a string at the specified lengths and returns an array of Strings.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#explode(java.lang.String, java.lang.String)">explode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> delimiter)</CODE> + +<BR> + Splits a string into an array with the specified delimiter.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static float</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#getFloat(java.lang.String)">getFloat</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> theString)</CODE> + +<BR> + </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="../netP5/StringUtils.html#getInt(java.lang.String)">getInt</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> theString)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#getStackTrace(java.lang.Throwable)">getStackTrace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</CODE> + +<BR> + Prints the stacktrace to a buffer and returns the buffer as a String.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#implode(java.lang.Object[])">implode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] elements)</CODE> + +<BR> + Combines an array to a string, using a comma and a space as delimiter.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#implode(java.lang.Object[], java.lang.String)">implode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] elements, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> delimiter)</CODE> + +<BR> + Combines an array to a string, using the specified delimiter.</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="../netP5/StringUtils.html#isEmpty(java.lang.String)">isEmpty</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</CODE> + +<BR> + Checks if a String is empty or null.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#left(java.lang.String, java.lang.String)">left</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Returns the substring to the left of the specified substring in the + specified String, starting from the left.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#leftBack(java.lang.String, java.lang.String)">leftBack</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Returns the substring to the left of the specified substring in the + specified String, starting from the right.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#leftJustify(java.lang.String, int)">leftJustify</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</CODE> + +<BR> + Creates a string of the given width with the given string left justified + (followed by an appropriate number of spaces).</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#middle(java.lang.String, int, int)">middle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int startIndex, + int length)</CODE> + +<BR> + Returns a substring of a String, starting from specified index and with + specified length.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#middle(java.lang.String, java.lang.String, java.lang.String)">middle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> start, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> end)</CODE> + +<BR> + Returns the substring between two substrings.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#remove(java.lang.String, char)">remove</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + char searchFor)</CODE> + +<BR> + Removes all instances of a character in a String.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#remove(java.lang.String, java.lang.String)">remove</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Removes all instances of a substring in a String.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#remove(java.lang.String, java.lang.String[])">remove</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] searchFor)</CODE> + +<BR> + Removes all instances of substrings in a String.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#removeDuplicates(java.lang.String, java.lang.String)">removeDuplicates</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Removes duplicates of a substring in a String.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#replace(java.lang.String, java.lang.String[], java.lang.String)">replace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] searchFor, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> replaceWith)</CODE> + +<BR> + Replaces several substrings in a string.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#replace(java.lang.String, java.lang.String, java.lang.String)">replace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> replaceWith)</CODE> + +<BR> + Replaces substrings in a string.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#right(java.lang.String, java.lang.String)">right</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Returns the substring to the right of the specified substring in the + specified String, starting from the left.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#rightBack(java.lang.String, java.lang.String)">rightBack</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</CODE> + +<BR> + Returns the substring to the right of the specified substring in the + specified String, starting from the right.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#rightJustify(java.lang.String, int)">rightJustify</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</CODE> + +<BR> + Creates a string of the given width with the given string right justified + (with an appropriate number of spaces before it).</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#slice(int, java.lang.String[])">slice</A></B>(int theNum, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theStringArray)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#spaces(int)">spaces</A></B>(int length)</CODE> + +<BR> + Returns a String with the specified number of spaces.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static char</CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#switchCase(char)">switchCase</A></B>(char source)</CODE> + +<BR> + Switches the case of the supplied character.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../netP5/StringUtils.html#switchCase(java.lang.String)">switchCase</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source)</CODE> + +<BR> + Switches the case of the supplied String.</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.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> +</TR> +</TABLE> + +<P> + +<!-- ============ 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="right(java.lang.String, java.lang.String)"><!-- --></A><H3> +right</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>right</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Returns the substring to the right of the specified substring in the + specified String, starting from the left. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to search.<DD><CODE>searchFor</CODE> - the substring to search for in source. +<DT><B>Returns:</B><DD>the substring that is to the right of searchFor in source.</DL> +</DD> +</DL> +<HR> + +<A NAME="rightBack(java.lang.String, java.lang.String)"><!-- --></A><H3> +rightBack</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>rightBack</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Returns the substring to the right of the specified substring in the + specified String, starting from the right. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to search.<DD><CODE>searchFor</CODE> - the substring to search for in source. +<DT><B>Returns:</B><DD>the substring that is to the right of searchFor in source, + starting from the right.</DL> +</DD> +</DL> +<HR> + +<A NAME="left(java.lang.String, java.lang.String)"><!-- --></A><H3> +left</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>left</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Returns the substring to the left of the specified substring in the + specified String, starting from the left. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to search.<DD><CODE>searchFor</CODE> - the substring to search for in source. +<DT><B>Returns:</B><DD>the substring that is to the left of searchFor in source.</DL> +</DD> +</DL> +<HR> + +<A NAME="leftBack(java.lang.String, java.lang.String)"><!-- --></A><H3> +leftBack</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>leftBack</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Returns the substring to the left of the specified substring in the + specified String, starting from the right. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to search.<DD><CODE>searchFor</CODE> - the substring to search for in source. +<DT><B>Returns:</B><DD>the substring that is to the left of searchFor in source, + starting from the right.</DL> +</DD> +</DL> +<HR> + +<A NAME="middle(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> +middle</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>middle</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> start, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> end)</PRE> +<DL> +<DD>Returns the substring between two substrings. I.e. + StringUtils.middle("This i a big challenge", "a", "challenge") returns " + big ". +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to search.<DD><CODE>start</CODE> - the String to the left to search for, from the left.<DD><CODE>end</CODE> - the String to the right to search for, from the right.</DL> +</DD> +</DL> +<HR> + +<A NAME="middle(java.lang.String, int, int)"><!-- --></A><H3> +middle</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>middle</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int startIndex, + int length)</PRE> +<DL> +<DD>Returns a substring of a String, starting from specified index and with + specified length. I. e. StringUtils.middle("This is a big challenge", 5, + 6) returns " is a " +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to get a substring from.<DD><CODE>startIndex</CODE> - the index in the source String to get the substring from.<DD><CODE>length</CODE> - the length of the substring to return.</DL> +</DD> +</DL> +<HR> + +<A NAME="replace(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> +replace</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>replace</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> replaceWith)</PRE> +<DL> +<DD>Replaces substrings in a string. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to replace substrings in.<DD><CODE>searchFor</CODE> - the string to search for.<DD><CODE>replaceWith</CODE> - the string to replace all found searchFor-substrings with.</DL> +</DD> +</DL> +<HR> + +<A NAME="replace(java.lang.String, java.lang.String[], java.lang.String)"><!-- --></A><H3> +replace</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>replace</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] searchFor, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> replaceWith)</PRE> +<DL> +<DD>Replaces several substrings in a string. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to replace substrings in.<DD><CODE>searchFor</CODE> - the substrings to search for.<DD><CODE>replaceWith</CODE> - what to replace every searchFor with,</DL> +</DD> +</DL> +<HR> + +<A NAME="explode(java.lang.String[], int[])"><!-- --></A><H3> +explode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A> <B>explode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] source, + int[] lengths)</PRE> +<DL> +<DD>Splits every String in an array at the specified lengths. + + Example: <code><pre> + String source[] = { "123a123b123c123d", "Bla1bla2bla3bla4bla5bla6bla7" }; + int[] lengths = { 3, 1, 3, 1 }; + Vector result = StringUtils.explode(source, lengths); + Object element = null; + String[] rowElements = null; + Enumeration enum = result.elements(); + while (enum.hasMoreElements()) { + element = enum.nextElement(); + if (element instanceof String[]) { + rowElements = (String[]) element; + for (int i = 0; i < rowElements.length; i++) { + System.out.println(rowElements[i]); + } + } + } + </pre></code> The result that will be output: 123 a 123 b + + Bla 1 bla 2 +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>a Vector containing String arrays (the rows).</DL> +</DD> +</DL> +<HR> + +<A NAME="explode(java.lang.String, int[])"><!-- --></A><H3> +explode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>explode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int[] lengths)</PRE> +<DL> +<DD>Splits a string at the specified lengths and returns an array of Strings. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to split. +<DT><B>Returns:</B><DD>an array of Strings with the same number of elements as the + number of elements in the lengths argument. The length of each + String element is specified by the correspondent lengths array + element. +<DT><B>Throws:</B> +<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if any of the length´s are invalid.</DL> +</DD> +</DL> +<HR> + +<A NAME="explode(java.lang.String)"><!-- --></A><H3> +explode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>explode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source)</PRE> +<DL> +<DD>Splits a string into an array with a space as delimiter. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to explode. +<DT><B>Returns:</B><DD>an array of strings that are made out of splitting the string at + the spaces.</DL> +</DD> +</DL> +<HR> + +<A NAME="explode(java.lang.String, java.lang.String)"><!-- --></A><H3> +explode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>explode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> delimiter)</PRE> +<DL> +<DD>Splits a string into an array with the specified delimiter. Original code + Copyright (C) 2001,2002 Stephen Ostermiller + http://ostermiller.org/utils/StringHelper.java.html + + <p> + This method is meant to be similar to the split function in other + programming languages but it does not use regular expressions. Rather the + String is split on a single String literal. It is equivalent to the +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>s</CODE> - the String to explode.<DD><CODE>delimiter</CODE> - the delimiter where to split the string. +<DT><B>Returns:</B><DD>an array of strings that are made out of splitting the string at + the specified delimiter. +<DT><B>Throws:</B> +<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if s is null.</DL> +</DD> +</DL> +<HR> + +<A NAME="slice(int, java.lang.String[])"><!-- --></A><H3> +slice</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>slice</B>(int theNum, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theStringArray)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="implode(java.lang.Object[], java.lang.String)"><!-- --></A><H3> +implode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>implode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] elements, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> delimiter)</PRE> +<DL> +<DD>Combines an array to a string, using the specified delimiter. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>elements</CODE> - the array to combine to a single string.<DD><CODE>delimiter</CODE> - the delimiter to put between the combined elements. +<DT><B>Returns:</B><DD>the array combined to a string.</DL> +</DD> +</DL> +<HR> + +<A NAME="implode(java.lang.Object[])"><!-- --></A><H3> +implode</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>implode</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] elements)</PRE> +<DL> +<DD>Combines an array to a string, using a comma and a space as delimiter. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>elements</CODE> - the array to combine to a single string. +<DT><B>Returns:</B><DD>the array combined to a string.</DL> +</DD> +</DL> +<HR> + +<A NAME="remove(java.lang.String, char)"><!-- --></A><H3> +remove</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>remove</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + char searchFor)</PRE> +<DL> +<DD>Removes all instances of a character in a String. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to remove substring in.<DD><CODE>searchFor</CODE> - the character to remove. +<DT><B>Returns:</B><DD>the replaced String.</DL> +</DD> +</DL> +<HR> + +<A NAME="remove(java.lang.String, java.lang.String)"><!-- --></A><H3> +remove</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>remove</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Removes all instances of a substring in a String. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to remove substring in.<DD><CODE>searchFor</CODE> - the substring to remove. +<DT><B>Returns:</B><DD>the replaced String.</DL> +</DD> +</DL> +<HR> + +<A NAME="remove(java.lang.String, java.lang.String[])"><!-- --></A><H3> +remove</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>remove</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] searchFor)</PRE> +<DL> +<DD>Removes all instances of substrings in a String. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to remove substrings in.<DD><CODE>searchFor</CODE> - an array of substrings to remove from the source String. +<DT><B>Returns:</B><DD>the replaced String.</DL> +</DD> +</DL> +<HR> + +<A NAME="removeDuplicates(java.lang.String, java.lang.String)"><!-- --></A><H3> +removeDuplicates</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>removeDuplicates</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> searchFor)</PRE> +<DL> +<DD>Removes duplicates of a substring in a String. Case sensitive. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to remove duplicates in.<DD><CODE>searchFor</CODE> - the substring that can only occur one at a time, several can + exist in the source though.</DL> +</DD> +</DL> +<HR> + +<A NAME="getStackTrace(java.lang.Throwable)"><!-- --></A><H3> +getStackTrace</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getStackTrace</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t) + throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> +<DL> +<DD>Prints the stacktrace to a buffer and returns the buffer as a String. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>t</CODE> - the Throwable you wnat to generate a stacktrace for. +<DT><B>Returns:</B><DD>the stacktrace of the supplied Throwable. +<DT><B>Throws:</B> +<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="isEmpty(java.lang.String)"><!-- --></A><H3> +isEmpty</H3> +<PRE> +public static boolean <B>isEmpty</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</PRE> +<DL> +<DD>Checks if a String is empty or null. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>s</CODE> - the String to test if it is empty or null. +<DT><B>Returns:</B><DD>true if the String is null or empty ("").</DL> +</DD> +</DL> +<HR> + +<A NAME="leftJustify(java.lang.String, int)"><!-- --></A><H3> +leftJustify</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>leftJustify</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</PRE> +<DL> +<DD>Creates a string of the given width with the given string left justified + (followed by an appropriate number of spaces). +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to justify<DD><CODE>length</CODE> - the length of the resulting String +<DT><B>Returns:</B><DD>the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.</DL> +</DD> +</DL> +<HR> + +<A NAME="rightJustify(java.lang.String, int)"><!-- --></A><H3> +rightJustify</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>rightJustify</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</PRE> +<DL> +<DD>Creates a string of the given width with the given string right justified + (with an appropriate number of spaces before it). +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to justify<DD><CODE>length</CODE> - the length of the resulting String +<DT><B>Returns:</B><DD>the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.</DL> +</DD> +</DL> +<HR> + +<A NAME="centerJustify(java.lang.String, int)"><!-- --></A><H3> +centerJustify</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>centerJustify</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int length)</PRE> +<DL> +<DD>Creates a string of the given width with the given string left justified + (padded by an appropriate number of spaces in front and after it). +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to justify<DD><CODE>length</CODE> - the length of the resulting String +<DT><B>Returns:</B><DD>the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.</DL> +</DD> +</DL> +<HR> + +<A NAME="spaces(int)"><!-- --></A><H3> +spaces</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>spaces</B>(int length)</PRE> +<DL> +<DD>Returns a String with the specified number of spaces. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>length</CODE> - the number of spaces to return. +<DT><B>Returns:</B><DD>a String consisting of the specified number of spaces.</DL> +</DD> +</DL> +<HR> + +<A NAME="duplicate(java.lang.String, int)"><!-- --></A><H3> +duplicate</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>duplicate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source, + int copies)</PRE> +<DL> +<DD>Returns a String with the source String copied the specified number of + times. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source String to copy.<DD><CODE>length</CODE> - the number of copies of source to return. +<DT><B>Returns:</B><DD>a String consisting of the specified source String copied the + specified number of times.</DL> +</DD> +</DL> +<HR> + +<A NAME="switchCase(java.lang.String)"><!-- --></A><H3> +switchCase</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>switchCase</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source)</PRE> +<DL> +<DD>Switches the case of the supplied String. Any lower case characters will + be uppercase and vice versa. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the String to switch case of. +<DT><B>Returns:</B><DD>the supplied String with switched case.</DL> +</DD> +</DL> +<HR> + +<A NAME="switchCase(char)"><!-- --></A><H3> +switchCase</H3> +<PRE> +public static char <B>switchCase</B>(char source)</PRE> +<DL> +<DD>Switches the case of the supplied character. A lower case character will + be uppercase and vice versa. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>source</CODE> - the character to switch case of. +<DT><B>Returns:</B><DD>the supplied character with switched case.</DL> +</DD> +</DL> +<HR> + +<A NAME="getInt(java.lang.String)"><!-- --></A><H3> +getInt</H3> +<PRE> +public static int <B>getInt</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> theString)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getFloat(java.lang.String)"><!-- --></A><H3> +getFloat</H3> +<PRE> +public static float <B>getFloat</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> theString)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="arrayToString(java.lang.String[])"><!-- --></A><H3> +arrayToString</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>arrayToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theArray)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="arrayToString(java.lang.String[], int, int)"><!-- --></A><H3> +arrayToString</H3> +<PRE> +public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>arrayToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] theArray, + int theStart, + int theEnd)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + + +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<A NAME="navbar_bottom"><!-- --></A> +<A HREF="#skip-navbar_bottom" 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_bottom_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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </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-all.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="../netP5/NetStatus.html" title="class in netP5"><B>PREV CLASS</B></A> + <A HREF="../netP5/TcpClient.html" title="class in netP5"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../index.html?netP5/StringUtils.html" target="_top"><B>FRAMES</B></A> + <A HREF="StringUtils.html" target="_top"><B>NO FRAMES</B></A> + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +processing library oscP5 by Andreas Schlegel. (c) 2004-2012 +</BODY> +</HTML> |