| <!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_65) on Fri Mar 04 17:58:56 EST 2016 --> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <TITLE> |
| StringUtils (Apache Shiro 1.2.4 API) |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2016-03-04"> |
| |
| <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 (Apache Shiro 1.2.4 API)"; |
| } |
| } |
| </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="class-use/StringUtils.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-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="../../../../org/apache/shiro/util/SoftHashMap.html" title="class in org.apache.shiro.util"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/shiro/util/ThreadContext.html" title="class in org.apache.shiro.util"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/shiro/util/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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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.apache.shiro.util</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>org.apache.shiro.util.StringUtils</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public class <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.32"><B>StringUtils</B></A><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> |
| <p>Simple utility class for String operations useful across the framework. |
| <p/> |
| <p>Some methods in this class were copied from the Spring Framework so we didn't have to re-invent the wheel, |
| and in these cases, we have retained all license, copyright and author information. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>0.9</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- =========== 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 char</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/util/StringUtils.html#DEFAULT_DELIMITER_CHAR">DEFAULT_DELIMITER_CHAR</A></B></CODE> |
| |
| <BR> |
| Constant representing the default delimiter character (comma), equal to <code>','</code></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="../../../../org/apache/shiro/util/StringUtils.html#DEFAULT_QUOTE_CHAR">DEFAULT_QUOTE_CHAR</A></B></CODE> |
| |
| <BR> |
| Constant representing the default quote character (double quote), equal to '"'</code></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="../../../../org/apache/shiro/util/StringUtils.html#EMPTY_STRING">EMPTY_STRING</A></B></CODE> |
| |
| <BR> |
| Constant representing the empty string, equal to ""</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_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>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/util/StringUtils.html#StringUtils()">StringUtils</A></B>()</CODE> |
| |
| <BR> |
| </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 <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="../../../../org/apache/shiro/util/StringUtils.html#clean(java.lang.String)">clean</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> in)</CODE> |
| |
| <BR> |
| Returns a 'cleaned' representation of the specified argument.</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/apache/shiro/util/StringUtils.html#hasLength(java.lang.String)">hasLength</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> str)</CODE> |
| |
| <BR> |
| Check that the given String is neither <code>null</code> nor of length 0.</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/apache/shiro/util/StringUtils.html#hasText(java.lang.String)">hasText</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> str)</CODE> |
| |
| <BR> |
| Check whether the given String has actual text.</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="../../../../org/apache/shiro/util/StringUtils.html#join(java.util.Iterator, java.lang.String)">join</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><?> iterator, |
| <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> separator)</CODE> |
| |
| <BR> |
| Joins the elements of the provided <code>Iterator</code> into |
| a single String containing the provided elements.</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="../../../../org/apache/shiro/util/StringUtils.html#split(java.lang.String)">split</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> line)</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="../../../../org/apache/shiro/util/StringUtils.html#split(java.lang.String, char)">split</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> line, |
| char delimiter)</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="../../../../org/apache/shiro/util/StringUtils.html#split(java.lang.String, char, char)">split</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> line, |
| char delimiter, |
| char quoteChar)</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="../../../../org/apache/shiro/util/StringUtils.html#split(java.lang.String, char, char, char)">split</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> line, |
| char delimiter, |
| char beginQuoteChar, |
| char endQuoteChar)</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="../../../../org/apache/shiro/util/StringUtils.html#split(java.lang.String, char, char, char, boolean, boolean)">split</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> aLine, |
| char delimiter, |
| char beginQuoteChar, |
| char endQuoteChar, |
| boolean retainQuotes, |
| boolean trimTokens)</CODE> |
| |
| <BR> |
| Splits the specified delimited String into tokens, supporting quoted tokens so that quoted strings themselves |
| won't be tokenized.</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="../../../../org/apache/shiro/util/StringUtils.html#splitKeyValue(java.lang.String)">splitKeyValue</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> aLine)</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/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<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="../../../../org/apache/shiro/util/StringUtils.html#splitToSet(java.lang.String, java.lang.String)">splitToSet</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> delimited, |
| <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> separator)</CODE> |
| |
| <BR> |
| Splits the <code>delimited</code> string (delimited by the specified <code>separator</code> character) and returns the |
| delimited values as a <code>Set</code>.</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/apache/shiro/util/StringUtils.html#startsWithIgnoreCase(java.lang.String, java.lang.String)">startsWithIgnoreCase</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> str, |
| <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> prefix)</CODE> |
| |
| <BR> |
| Test if the given String starts with the specified prefix, |
| ignoring upper/lower case.</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="../../../../org/apache/shiro/util/StringUtils.html#toDelimitedString(java.util.Collection, java.lang.String)">toDelimitedString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> c, |
| <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> |
| Returns the collection's contents as a string, with each element delimited by the specified |
| <code>delimiter</code> argument.</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="../../../../org/apache/shiro/util/StringUtils.html#toDelimitedString(java.lang.Object[], java.lang.String)">toDelimitedString</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>[] array, |
| <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> |
| Returns the array's contents as a string, with each element delimited by the specified |
| <code>delimiter</code> argument.</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="../../../../org/apache/shiro/util/StringUtils.html#tokenizeToStringArray(java.lang.String, java.lang.String)">tokenizeToStringArray</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> str, |
| <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> delimiters)</CODE> |
| |
| <BR> |
| Tokenize the given String into a String array via a StringTokenizer.</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="../../../../org/apache/shiro/util/StringUtils.html#tokenizeToStringArray(java.lang.String, java.lang.String, boolean, boolean)">tokenizeToStringArray</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> str, |
| <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> delimiters, |
| boolean trimTokens, |
| boolean ignoreEmptyTokens)</CODE> |
| |
| <BR> |
| Tokenize the given String into a String array via a StringTokenizer.</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="../../../../org/apache/shiro/util/StringUtils.html#toString(java.lang.Object[])">toString</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>[] array)</CODE> |
| |
| <BR> |
| Returns the specified array as a comma-delimited (',') 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="../../../../org/apache/shiro/util/StringUtils.html#toStringArray(java.util.Collection)">toStringArray</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> collection)</CODE> |
| |
| <BR> |
| Copy the given Collection into a String array.</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="../../../../org/apache/shiro/util/StringUtils.html#uppercaseFirstChar(java.lang.String)">uppercaseFirstChar</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> in)</CODE> |
| |
| <BR> |
| Returns the input argument, but ensures the first character is capitalized (if possible).</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#clone()" title="class or interface in java.lang">clone</A>, <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#finalize()" title="class or interface in java.lang">finalize</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> |
| |
| <!-- ============ 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="EMPTY_STRING"><!-- --></A><H3> |
| EMPTY_STRING</H3> |
| <PRE> |
| public static final <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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.39"><B>EMPTY_STRING</B></A></PRE> |
| <DL> |
| <DD>Constant representing the empty string, equal to "" |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.shiro.util.StringUtils.EMPTY_STRING">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DEFAULT_DELIMITER_CHAR"><!-- --></A><H3> |
| DEFAULT_DELIMITER_CHAR</H3> |
| <PRE> |
| public static final char <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.44"><B>DEFAULT_DELIMITER_CHAR</B></A></PRE> |
| <DL> |
| <DD>Constant representing the default delimiter character (comma), equal to <code>','</code> |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.shiro.util.StringUtils.DEFAULT_DELIMITER_CHAR">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DEFAULT_QUOTE_CHAR"><!-- --></A><H3> |
| DEFAULT_QUOTE_CHAR</H3> |
| <PRE> |
| public static final char <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.49"><B>DEFAULT_QUOTE_CHAR</B></A></PRE> |
| <DL> |
| <DD>Constant representing the default quote character (double quote), equal to '"'</code> |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.shiro.util.StringUtils.DEFAULT_QUOTE_CHAR">Constant Field Values</A></DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_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>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="StringUtils()"><!-- --></A><H3> |
| StringUtils</H3> |
| <PRE> |
| public <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.32"><B>StringUtils</B></A>()</PRE> |
| <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="hasText(java.lang.String)"><!-- --></A><H3> |
| hasText</H3> |
| <PRE> |
| public static boolean <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.69"><B>hasText</B></A>(<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> str)</PRE> |
| <DL> |
| <DD>Check whether the given String has actual text. |
| More specifically, returns <code>true</code> if the string not <code>null</code>, |
| its length is greater than 0, and it contains at least one non-whitespace character. |
| <p/> |
| <code>StringUtils.hasText(null) == false<br/> |
| StringUtils.hasText("") == false<br/> |
| StringUtils.hasText(" ") == false<br/> |
| StringUtils.hasText("12345") == true<br/> |
| StringUtils.hasText(" 12345 ") == true</code> |
| <p/> |
| <p>Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the String to check (may be <code>null</code>) |
| <DT><B>Returns:</B><DD><code>true</code> if the String is not <code>null</code>, its length is |
| greater than 0, and it does not contain whitespace only<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Character.html?is-external=true#isWhitespace(char)" title="class or interface in java.lang"><CODE>Character.isWhitespace(char)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hasLength(java.lang.String)"><!-- --></A><H3> |
| hasLength</H3> |
| <PRE> |
| public static boolean <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.97"><B>hasLength</B></A>(<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> str)</PRE> |
| <DL> |
| <DD>Check that the given String is neither <code>null</code> nor of length 0. |
| Note: Will return <code>true</code> for a String that purely consists of whitespace. |
| <p/> |
| <code>StringUtils.hasLength(null) == false<br/> |
| StringUtils.hasLength("") == false<br/> |
| StringUtils.hasLength(" ") == true<br/> |
| StringUtils.hasLength("Hello") == true</code> |
| <p/> |
| Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the String to check (may be <code>null</code>) |
| <DT><B>Returns:</B><DD><code>true</code> if the String is not null and has length<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/shiro/util/StringUtils.html#hasText(java.lang.String)"><CODE>hasText(String)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="startsWithIgnoreCase(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| startsWithIgnoreCase</H3> |
| <PRE> |
| public static boolean <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.113"><B>startsWithIgnoreCase</B></A>(<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> str, |
| <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> prefix)</PRE> |
| <DL> |
| <DD>Test if the given String starts with the specified prefix, |
| ignoring upper/lower case. |
| <p/> |
| <p>Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the String to check<DD><CODE>prefix</CODE> - the prefix to look for |
| <DT><B>Returns:</B><DD><code>true</code> starts with the specified prefix (ignoring case), <code>false</code> if it does not.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true#startsWith(java.lang.String, int)" title="class or interface in java.lang"><CODE>String.startsWith(java.lang.String, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clean(java.lang.String)"><!-- --></A><H3> |
| clean</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.144"><B>clean</B></A>(<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> in)</PRE> |
| <DL> |
| <DD>Returns a 'cleaned' representation of the specified argument. 'Cleaned' is defined as the following: |
| <p/> |
| <ol> |
| <li>If the specified <code>String</code> is <code>null</code>, return <code>null</code></li> |
| <li>If not <code>null</code>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true#trim()" title="class or interface in java.lang"><CODE>trim()</CODE></A> it.</li> |
| <li>If the trimmed string is equal to the empty String (i.e. ""), return <code>null</code></li> |
| <li>If the trimmed string is not the empty string, return the trimmed version</li>. |
| </ol> |
| <p/> |
| Therefore this method always ensures that any given string has trimmed text, and if it doesn't, <code>null</code> |
| is returned. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>in</CODE> - the input String to clean. |
| <DT><B>Returns:</B><DD>a populated-but-trimmed String or <code>null</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString(java.lang.Object[])"><!-- --></A><H3> |
| toString</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.164"><B>toString</B></A>(<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>[] array)</PRE> |
| <DL> |
| <DD>Returns the specified array as a comma-delimited (',') string. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>array</CODE> - the array whose contents will be converted to a string. |
| <DT><B>Returns:</B><DD>the array's contents as a comma-delimited (',') string.<DT><B>Since:</B></DT> |
| <DD>1.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toDelimitedString(java.lang.Object[], java.lang.String)"><!-- --></A><H3> |
| toDelimitedString</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.177"><B>toDelimitedString</B></A>(<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>[] array, |
| <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>Returns the array's contents as a string, with each element delimited by the specified |
| <code>delimiter</code> argument. Useful for <code>toString()</code> implementations and log messages. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>array</CODE> - the array whose contents will be converted to a string<DD><CODE>delimiter</CODE> - the delimiter to use between each element |
| <DT><B>Returns:</B><DD>a single string, delimited by the specified <code>delimiter</code>.<DT><B>Since:</B></DT> |
| <DD>1.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toDelimitedString(java.util.Collection, java.lang.String)"><!-- --></A><H3> |
| toDelimitedString</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.200"><B>toDelimitedString</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> c, |
| <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>Returns the collection's contents as a string, with each element delimited by the specified |
| <code>delimiter</code> argument. Useful for <code>toString()</code> implementations and log messages. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - the collection whose contents will be converted to a string<DD><CODE>delimiter</CODE> - the delimiter to use between each element |
| <DT><B>Returns:</B><DD>a single string, delimited by the specified <code>delimiter</code>.<DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="tokenizeToStringArray(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| tokenizeToStringArray</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.224"><B>tokenizeToStringArray</B></A>(<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> str, |
| <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> delimiters)</PRE> |
| <DL> |
| <DD>Tokenize the given String into a String array via a StringTokenizer. |
| Trims tokens and omits empty tokens. |
| <p>The given delimiters string is supposed to consist of any number of |
| delimiter characters. Each of those characters can be used to separate |
| tokens. A delimiter is always a single character; for multi-character |
| delimiters, consider using <code>delimitedListToStringArray</code> |
| <p/> |
| <p>Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the String to tokenize<DD><CODE>delimiters</CODE> - the delimiter characters, assembled as String |
| (each of those characters is individually considered as delimiter). |
| <DT><B>Returns:</B><DD>an array of the tokens<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html?is-external=true" title="class or interface in java.util"><CODE>StringTokenizer</CODE></A>, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true#trim()" title="class or interface in java.lang"><CODE>String.trim()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="tokenizeToStringArray(java.lang.String, java.lang.String, boolean, boolean)"><!-- --></A><H3> |
| tokenizeToStringArray</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.250"><B>tokenizeToStringArray</B></A>(<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> str, |
| <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> delimiters, |
| boolean trimTokens, |
| boolean ignoreEmptyTokens)</PRE> |
| <DL> |
| <DD>Tokenize the given String into a String array via a StringTokenizer. |
| <p>The given delimiters string is supposed to consist of any number of |
| delimiter characters. Each of those characters can be used to separate |
| tokens. A delimiter is always a single character; for multi-character |
| delimiters, consider using <code>delimitedListToStringArray</code> |
| <p/> |
| <p>Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the String to tokenize<DD><CODE>delimiters</CODE> - the delimiter characters, assembled as String |
| (each of those characters is individually considered as delimiter)<DD><CODE>trimTokens</CODE> - trim the tokens via String's <code>trim</code><DD><CODE>ignoreEmptyTokens</CODE> - omit empty tokens from the result array |
| (only applies to tokens that are empty after trimming; StringTokenizer |
| will not consider subsequent delimiters as token in the first place). |
| <DT><B>Returns:</B><DD>an array of the tokens (<code>null</code> if the input String |
| was <code>null</code>)<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html?is-external=true" title="class or interface in java.util"><CODE>StringTokenizer</CODE></A>, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true#trim()" title="class or interface in java.lang"><CODE>String.trim()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toStringArray(java.util.Collection)"><!-- --></A><H3> |
| toStringArray</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.281"><B>toStringArray</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> collection)</PRE> |
| <DL> |
| <DD>Copy the given Collection into a String array. |
| The Collection must contain String elements only. |
| <p/> |
| <p>Copied from the Spring Framework while retaining all license, copyright and author information. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>collection</CODE> - the Collection to copy |
| <DT><B>Returns:</B><DD>the String array (<code>null</code> if the passed-in |
| Collection was <code>null</code>)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="splitKeyValue(java.lang.String)"><!-- --></A><H3> |
| splitKeyValue</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.288"><B>splitKeyValue</B></A>(<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> aLine) |
| throws <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="split(java.lang.String)"><!-- --></A><H3> |
| split</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.325"><B>split</B></A>(<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> line)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="split(java.lang.String, char)"><!-- --></A><H3> |
| split</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.329"><B>split</B></A>(<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> line, |
| char delimiter)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="split(java.lang.String, char, char)"><!-- --></A><H3> |
| split</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.333"><B>split</B></A>(<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> line, |
| char delimiter, |
| char quoteChar)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="split(java.lang.String, char, char, char)"><!-- --></A><H3> |
| split</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.337"><B>split</B></A>(<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> line, |
| char delimiter, |
| char beginQuoteChar, |
| char endQuoteChar)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="split(java.lang.String, char, char, char, boolean, boolean)"><!-- --></A><H3> |
| split</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>[] <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.361"><B>split</B></A>(<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> aLine, |
| char delimiter, |
| char beginQuoteChar, |
| char endQuoteChar, |
| boolean retainQuotes, |
| boolean trimTokens)</PRE> |
| <DL> |
| <DD>Splits the specified delimited String into tokens, supporting quoted tokens so that quoted strings themselves |
| won't be tokenized. |
| <p/> |
| This method's implementation is very loosely based (with significant modifications) on |
| <a href="http://blogs.bytecode.com.au/glen">Glen Smith</a>'s open-source |
| <a href="http://opencsv.svn.sourceforge.net/viewvc/opencsv/trunk/src/au/com/bytecode/opencsv/CSVReader.java?&view=markup">CSVReader.java</a> |
| file. |
| <p/> |
| That file is Apache 2.0 licensed as well, making Glen's code a great starting point for us to modify to |
| our needs. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>aLine</CODE> - the String to parse<DD><CODE>delimiter</CODE> - the delimiter by which the <tt>line</tt> argument is to be split<DD><CODE>beginQuoteChar</CODE> - the character signifying the start of quoted text (so the quoted text will not be split)<DD><CODE>endQuoteChar</CODE> - the character signifying the end of quoted text<DD><CODE>retainQuotes</CODE> - if the quotes themselves should be retained when constructing the corresponding token<DD><CODE>trimTokens</CODE> - if leading and trailing whitespace should be trimmed from discovered tokens. |
| <DT><B>Returns:</B><DD>the tokens discovered from parsing the given delimited <tt>line</tt>.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="join(java.util.Iterator, java.lang.String)"><!-- --></A><H3> |
| join</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.429"><B>join</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><?> iterator, |
| <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> separator)</PRE> |
| <DL> |
| <DD>Joins the elements of the provided <code>Iterator</code> into |
| a single String containing the provided elements.</p> |
| <p/> |
| No delimiter is added before or after the list. |
| A <code>null</code> separator is the same as an empty String ("").</p> |
| <p/> |
| Copied from Commons Lang, version 3 (r1138702).</p> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>iterator</CODE> - the <code>Iterator</code> of values to join together, may be null<DD><CODE>separator</CODE> - the separator character to use, null treated as "" |
| <DT><B>Returns:</B><DD>the joined String, <code>null</code> if null iterator input<DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="splitToSet(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| splitToSet</H3> |
| <PRE> |
| public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<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>> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.473"><B>splitToSet</B></A>(<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> delimited, |
| <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> separator)</PRE> |
| <DL> |
| <DD>Splits the <code>delimited</code> string (delimited by the specified <code>separator</code> character) and returns the |
| delimited values as a <code>Set</code>. |
| <p/> |
| If either argument is <code>null</code>, this method returns <code>null</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>delimited</CODE> - the string to split<DD><CODE>separator</CODE> - the character that delineates individual tokens to split |
| <DT><B>Returns:</B><DD>the delimited values as a <code>Set</code>.<DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="uppercaseFirstChar(java.lang.String)"><!-- --></A><H3> |
| uppercaseFirstChar</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> <A HREF="../../../../src-html/org/apache/shiro/util/StringUtils.html#line.487"><B>uppercaseFirstChar</B></A>(<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> in)</PRE> |
| <DL> |
| <DD>Returns the input argument, but ensures the first character is capitalized (if possible). |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>in</CODE> - the string to uppercase the first character. |
| <DT><B>Returns:</B><DD>the input argument, but with the first character capitalized (if possible).<DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </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="class-use/StringUtils.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-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="../../../../org/apache/shiro/util/SoftHashMap.html" title="class in org.apache.shiro.util"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/shiro/util/ThreadContext.html" title="class in org.apache.shiro.util"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/shiro/util/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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2004-2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |