/* XBN Java: Generically useful, non-GUI Java code. http://sourceforge.net/projects/xbnjava Copyright (C) 1997-2003, Jeff Epstein All rights reserved. Modifications: No Redistribution in binary form, with or without modifications, are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * If modifications are made to source code then this license should indicate that fact in the "Modifications" section above. * Neither the author, nor the contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. [NOTE: This license contains NO advertising clause.] */ package xbn.string; import xbn.placeholder.i_i; /**
Random functions for java.lang.StringBuffers. See StringBuffer.
Source code: UtilStringBuffer.java. Unit tests: See the unit tests for UtilSOB.
To shorten code and Javadoc.
Equal to "xbn.string.UtilStringBuffer."
**/ public static final String sUSB = "xbn.string.UtilStringBuffer."; /**Create a UtilStringBuffer. This constructor does nothing.
**/ public UtilStringBuffer() { } private static final String sGQL = "getQuotedLines"; /**Get a copy of the StringBuffer where each line is quoted.
@return((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + "getQuotedLines"))).getStringBuffer()
**/
public final StringBuffer getQuotedLines(StringBuffer str_buffer) {
return ((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + sGQL))).getStringBuffer();
}
/**
Get a copy of the StringBuffer where each line is quoted.
@return((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + "getQuotedLines"), s_quote)).getStringBuffer()
**/
public final StringBuffer getQuotedLines(StringBuffer str_buffer, String s_quote) {
return ((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + sGQL), s_quote)).getStringBuffer();
}
/**
Get a copy of the StringBuffer where each line is quoted.
@return((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + "getQuotedLines"), s_quoteStart, s_quoteEnd)).getStringBuffer()
**/
public final StringBuffer getQuotedLines(StringBuffer str_buffer, String s_quoteStart, String s_quoteEnd) {
return ((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + sGQL), s_quoteStart, s_quoteEnd)).getStringBuffer();
}
/**
Get a copy of the StringBuffer (as a StringBuffer) where each line is quoted.
@return((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + "getQuotedLines"), s_quoteStart, s_quoteEnd, s_lineSep)).getStringBuffer()
**/
public final StringBuffer getQuotedLines(StringBuffer str_buffer, String s_quoteStart, String s_quoteEnd, String s_lineSep) {
return ((SOBStringBuffer)getQuotedLines(getSOBSB(str_buffer, sUSB + sGQL), s_quoteStart, s_quoteEnd, s_lineSep)).getStringBuffer();
}
private static final String sQL = "quoteLines";
/**
Quote each line within a StringBuffer.
Equal to quoteLines(str_buffer, sUSB + "'")
Quote each line within a StringBuffer.
Equal to quoteLines(getSOBSB(str_buffer, sUSB + "quoteLines"), s_quote)
Quote each line within a StringBuffer.
Equal to quoteLines(str_buffer, s_quoteStart, s_quoteEnd)
Quote each line within a StringBuffer.
**/ public final void quoteLines(StringBuffer str_buffer, String s_quoteStart, String s_quoteEnd, String s_lineSep) { quoteLines(getSOBSB(str_buffer, sUSB + sQL), s_quoteStart, s_quoteEnd, s_lineSep); } /**Return a copy of the provided StringBuffer, in which all occurances are replaced.
@returngetReplaceAll(getSOBSB(str_buffer, sUSB + "getReplaceAll"), s_replaceWhat, s_replaceWith).getStringBuffer()
**/
public final StringBuffer getReplaceAll(StringBuffer str_buffer, String s_replaceWhat, String s_replaceWith) {
return getReplaceAll(getSOBSB(str_buffer, sUSB + "getReplaceAll"), s_replaceWhat, s_replaceWith).getStringBuffer();
}
/**
Replace all occurances.
@returnreplaceAll(getSOBSB(str_buffer, sUSB + "replaceAll"), s_replaceWhat, s_replaceWith)
**/
public final int replaceAll(StringBuffer str_buffer, String s_replaceWhat, String s_replaceWith) {
return replaceAll(getSOBSB(str_buffer, sUSB + "replaceAll"), s_replaceWhat, s_replaceWith);
}
/**
Replace all occurances, with multiple passes, until no instances of the search string remain.
@returngetReplaceUntil(getSOBSB(str_buffer, sUSB + "getReplaceUntil"), s_replaceWhat, s_replaceWith)
**/
public final StringBuffer getReplaceUntil(StringBuffer str_buffer, String s_replaceWhat, String s_replaceWith) {
return getReplaceUntil(getSOBSB(str_buffer, sUSB + "replaceUntil"), s_replaceWhat, s_replaceWith).getStringBuffer();
}
/**
Replace all occurances, with multiple passes, until no instances of the search string remain.
@returnreplaceUntil(getSOBSB(str_buffer, sUSB + "replaceUntil"), s_replaceWhat, s_replaceWith)
**/
public final i_i replaceUntil(StringBuffer str_buffer, String s_replaceWhat, String s_replaceWith) {
return replaceUntil(getSOBSB(str_buffer, sUSB + "replaceUntil"), s_replaceWhat, s_replaceWith);
}
/**
Is the value of the StringBuffer a valid hexidecimal number?
@returnisHexidecimal(getSOBSB(sb_potentialHex, "sb_potentialHex", "isHexidecimal"))
**/
public boolean isHexidecimal(StringBuffer sb_potentialHex) {
return isHexidecimal(getSOBSB(sb_potentialHex, "sb_potentialHex", "isHexidecimal"));
}
/**
Does the StringBuffer contain only tabs and spaces?
@param sb_potentialTabSpace The StringBuffer analyzed, to see if it contains only tabs and spaces characters. May not be null or zero characters in length. @returnisTabSpace(getSOBSB(sb_potentialTabSpace, "sb_potentialTabSpace", "isTabSpace"))
**/
public boolean isTabSpace(StringBuffer sb_potentialTabSpace) {
return isTabSpace(getSOBSB(sb_potentialTabSpace, "sb_potentialTabSpace", "isTabSpace"));
}
/**
Does the StringBuffer not contain any tabs and space characters?
@param str_buffer The StringBuffer analyzed, to see if it contains only non-tabs and non-space characters. May not be null or zero characters in length. @returnhasNoTabSpace(getSOBSB(str_buffer, sUSB + "hasNoTabSpace"))
**/
public boolean hasNoTabSpace(StringBuffer str_buffer) {
return hasNoTabSpace(getSOBSB(str_buffer, sUSB + "hasNoTabSpace"));
}
/**
Append a duplicated string onto the StringBuffer.
Equal to dupAppend(getSOBSB(str_buffer, sUSB + "dupAppend"), s_toDuplicate, i_dupCount)
Get a copy of the StringBuffer, after appending a duplicated string onto it.
@return((SOBStringBuffer)dupAppend(getSOBSB(str_buffer, sUSB + "getDupAppend"), s_toDuplicate, i_dupCount)).getStringBuffer()
**/
public final StringBuffer getDupAppend(StringBuffer str_buffer, String s_toDuplicate, int i_dupCount) {
return ((SOBStringBuffer)getDupAppend(getSOBSB(str_buffer, sUSB + "getDupAppend"), s_toDuplicate, i_dupCount)).getStringBuffer();
}
/**
Get the array index of the first non-white-space character.
@returngetIdxOf1stNonWS(getSOBSB(str_buffer, sUSB + "getIdxOf1stNonWS"))
**/
public final int getIdxOf1stNonWS(StringBuffer str_buffer) {
return getIdxOf1stNonWS(getSOBSB(str_buffer, sUSB + "getIdxOf1stNonWS"));
}
/**
Get the array index of the last non-white-space character.
@returngetIdxOfLastNonWS(getSOBSB(str_buffer, sUSB + "getIdxOfLastNonWS"))
**/
public final int getIdxOfLastNonWS(StringBuffer str_buffer) {
return getIdxOfLastNonWS(getSOBSB(str_buffer, sUSB + "getIdxOfLastNonWS"));
}
private static final String sGIO1CNIA = "getIdxOf1stCharNIA";
/**
Get the array index of the first character that is not a member of the array.
@returngetIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOf1stCharNIA"), a_char)
**/
public final int getIdxOf1stCharNIA(StringBuffer str_buffer, char[] a_char) {
return getIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + sGIO1CNIA), a_char);
}
/**
Get the array index of the first character that is not a member of the array.
@returngetIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOf1stCharNIA"), a_char, 0, str_buffer.length(), b_validateAOC)
**/
public final int getIdxOf1stCharNIA(StringBuffer str_buffer, char[] a_char, boolean b_validateAOC) {
try {
return getIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + sGIO1CNIA), a_char, 0, str_buffer.length(), b_validateAOC);
} catch(NullPointerException npx) {
throwAX("getIdxOf1stCharNIA: str_buffer is null.");
}
//Never reached. Required for compile.
return -1;
}
/**
Get the array index of the first character that is not a member of the array.
@returngetIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOf1stCharNIA"), a_char, i_idxStart, i_idxAfterEnd)
**/
public final int getIdxOf1stCharNIA(StringBuffer str_buffer, char[] a_char, int i_idxStart, int i_idxAfterEnd) {
return getIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + sGIO1CNIA), a_char, i_idxStart, i_idxAfterEnd);
}
/**
Get the array index of the first character that does not exist in the array.
@returngetIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOf1stCharNIA"), a_char, i_idxStart, i_idxAfterEnd, b_validateAOC)
**/
public final int getIdxOf1stCharNIA(StringBuffer str_buffer, char[] a_char, int i_idxStart, int i_idxAfterEnd, boolean b_validateAOC) {
return getIdxOf1stCharNIA(getSOBSB(str_buffer, sUSB + sGIO1CNIA), a_char, i_idxStart, i_idxAfterEnd, b_validateAOC);
}
private static final String sGIOLCNIA = "getIdxOfLastCharNIA";
/**
Get the array index of the last character that is not a member of the array.
@returngetIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOfLastCharNIA"), a_char)
**/
public final int getIdxOfLastCharNIA(StringBuffer str_buffer, char[] a_char) {
return getIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + sGIOLCNIA), a_char);
}
/**
Get the array index of the last character that is not a member of the array.
@returngetIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOfLastCharNIA"), a_char, 0, length(), b_validateAOC)
**/
public final int getIdxOfLastCharNIA(StringBuffer str_buffer, char[] a_char, boolean b_validateAOC) {
try {
return getIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + sGIOLCNIA), a_char, 0, str_buffer.length(), b_validateAOC);
} catch(NullPointerException npx) {
throwAX("getIdxOf1stCharNIA: str_buffer is null.");
}
//Never reached. Required for compile.
return -1;
}
/**
Get the array index of the last character that is not a member of the array.
@returngetIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOfLastCharNIA"), a_char, i_idxStart, i_idxAfterEnd)
**/
public final int getIdxOfLastCharNIA(StringBuffer str_buffer, char[] a_char, int i_idxStart, int i_idxAfterEnd) {
return getIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + sGIOLCNIA), a_char, i_idxStart, i_idxAfterEnd);
}
/**
Get the array index of the last character that does not exist in the array.
@returngetIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + "getIdxOfLastCharNIA"), a_char, i_idxStart, i_idxAfterEnd, b_validateAOC)
**/
public final int getIdxOfLastCharNIA(StringBuffer str_buffer, char[] a_char, int i_idxStart, int i_idxAfterEnd, boolean b_validateAOC) {
return getIdxOfLastCharNIA(getSOBSB(str_buffer, sUSB + sGIOLCNIA), a_char, i_idxStart, i_idxAfterEnd, b_validateAOC);
}
/**
Get a copy of the StringBuffer, where the contents' invisible characters are made visible.
@return((SOBStringBuffer)getVisible(getSOBSB(str_buffer, sUSB + "getVisible")).getStringBuffer()
**/
public final StringBuffer getVisible(StringBuffer str_buffer) {
return ((SOBStringBuffer)getVisible(getSOBSB(str_buffer, sUSB + "getVisible"))).getStringBuffer();
}
/**
Translate the contents of a StringBuffer, so all invisible characters are made visible.
Equal to makeVisible(getSOBSB(str_buffer, sUSB + "getVisible"))
Does the string contain only letters, digits and underscores?
@returnisLetterDigitUnderscore(getSOBSB(str_buffer, sUSB + "isLetterDigitUnderscore"))
**/
public boolean isLetterDigitUnderscore(StringBuffer str_buffer) {
return isLetterDigitUnderscore(getSOBSB(str_buffer, sUSB + "isLetterDigitUnderscore"));
}
/**
Does the string contain only letters and (other provided) legal characters?
@returnhasLettersOrInAOC(getSOBSB(str_buffer, sUSB + "hasLettersOrInAOC"), b_digitsOkOpt, ac_legal)
**/
public boolean hasLettersOrInAOC(StringBuffer str_buffer, boolean b_digitsOkOpt, char[] ac_legal) {
return hasLettersOrInAOC(getSOBSB(str_buffer, sUSB + "hasLettersOrInAOC"), b_digitsOkOpt, ac_legal);
}
/**
Does the string contain only letters and (other provided) legal characters?
@returnhasLettersOrInAOC(getSOBSB(str_buffer, sUSB + "hasLettersOrInAOC"), b_digitsOkOpt, ac_legal, b_validateAOC)
**/
public boolean hasLettersOrInAOC(StringBuffer str_buffer, boolean b_digitsOkOpt, char[] ac_legal, boolean b_validateAOC) {
return hasLettersOrInAOC(getSOBSB(str_buffer, sUSB + "hasLettersOrInAOC"), b_digitsOkOpt, ac_legal, b_validateAOC);
}
/**
Does the string contain only digits and (other provided) legal characters?
@returnhasDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "hasDigitsOrInAOC"), b_lettersOkOpt, ac_legal)
**/
public boolean hasDigitsOrInAOC(StringBuffer str_buffer, boolean b_lettersOkOpt, char[] ac_legal) {
return hasDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "hasDigitsOrInAOC"), b_lettersOkOpt, ac_legal);
}
/**
Does the string contain only digits and (other provided) legal characters?
@returnhasDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "hasDigitsOrInAOC"), b_lettersOkOpt, ac_legal, b_validateAOC)
**/
public boolean hasDigitsOrInAOC(StringBuffer str_buffer, boolean b_lettersOkOpt, char[] ac_legal, boolean b_validateAOC) {
return hasDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "hasDigitsOrInAOC"), b_lettersOkOpt, ac_legal, b_validateAOC);
}
/**
Does the string contain only letters, digits and (other provided) legal characters?
@returnhasLDOrInAOC(getSOBSB(str_buffer, sUSB + "hasLDOrInAOC"), ac_legal)
**/
public boolean hasLDOrInAOC(StringBuffer str_buffer, char[] ac_legal) {
return hasLDOrInAOC(getSOBSB(str_buffer, sUSB + "hasLDOrInAOC"), ac_legal);
}
/**
Does the string contain only letters, digits and (other provided) legal characters?
@returnhasLDOrInAOC(getSOBSB(str_buffer, sUSB + "hasLDOrInAOC"), ac_legal, b_validateAOC)
**/
public boolean hasLDOrInAOC(StringBuffer str_buffer, char[] ac_legal, boolean b_validateAOC) {
return hasLDOrInAOC(getSOBSB(str_buffer, sUSB + "hasLDOrInAOC"), ac_legal, b_validateAOC);
}
/**
Does the string contain only legal characters?
@returnhasLegalChars(getSOBSB(str_buffer, sUSB + "hasLegalChars"), ac_legal)
**/
public boolean hasLegalChars(StringBuffer str_buffer, char[] ac_legal) {
return hasLegalChars(getSOBSB(str_buffer, sUSB + "hasLegalChars"), ac_legal);
}
/**
Does the string contain only legal characters?
@returnisLegal(getSOBSB(str_buffer, sUSB + "hasLegalChars"), false, false, ac_legal, b_validateAOC)
**/
public boolean hasLegalChars(StringBuffer str_buffer, char[] ac_legal, boolean b_validateAOC) {
return isLegal(getSOBSB(str_buffer, sUSB + "hasLegalChars"), false, false, ac_legal, b_validateAOC);
}
/**
Does the string contain only legal characters?
@returnisLegal(getSOBSB(str_buffer, sUSB + "isLegal"), b_lettersOkOpt, b_digitsOkOpt, ac_legal)
**/
public boolean isLegal(StringBuffer str_buffer, boolean b_lettersOkOpt, boolean b_digitsOkOpt, char[] ac_legal) {
return isLegal(getSOBSB(str_buffer, sUSB + "isLegal"), b_lettersOkOpt, b_digitsOkOpt, ac_legal);
}
/**
Does the string contain only legal characters?
@returnisLegal(getSOBSB(str_buffer, sUSB + "isLegal"), b_lettersOkOpt, b_digitsOkOpt, ac_legal, b_validateAOC)
**/
public boolean isLegal(StringBuffer str_buffer, boolean b_lettersOkOpt, boolean b_digitsOkOpt, char[] ac_legal, boolean b_validateAOC) {
return isLegal(getSOBSB(str_buffer, sUSB + "isLegal"), b_lettersOkOpt, b_digitsOkOpt, ac_legal, b_validateAOC);
}
/**
Does the string not contain any letters or (other provided) illegal characters?
@returnisNotLettersOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLettersOrInAOC"), b_digitsBadOpt, ac_legal)
**/
public boolean isNotLettersOrInAOC(StringBuffer str_buffer, boolean b_digitsBadOpt, char[] ac_legal) {
return isNotLettersOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLettersOrInAOC"), b_digitsBadOpt, ac_legal);
}
/**
Does the string not contain any letters or (other provided) illegal characters?
@returnisNotLettersOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLettersOrInAOC"), b_digitsBadOpt, ac_legal, b_validateAOC)
**/
public boolean isNotLettersOrInAOC(StringBuffer str_buffer, boolean b_digitsBadOpt, char[] ac_legal, boolean b_validateAOC) {
return isNotLettersOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLettersOrInAOC"), b_digitsBadOpt, ac_legal, b_validateAOC);
}
/**
Does the string not contain any digits or (other provided) illegal characters?
@returnisNotDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "isNotDigitsOrInAOC"), b_digitsBadOpt, ac_legal)
**/
public boolean isNotDigitsOrInAOC(StringBuffer str_buffer, boolean b_lettersBadOpt, char[] ac_legal) {
return isNotDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "isNotDigitsOrInAOC"), b_lettersBadOpt, ac_legal);
}
/**
Does the string not contain any digits or (other provided) illegal characters?
@returnisNotDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "isNotDigitsOrInAOC"), b_lettersBadOpt, ac_legal, b_validateAOC)
**/
public boolean isNotDigitsOrInAOC(StringBuffer str_buffer, boolean b_lettersBadOpt, char[] ac_legal, boolean b_validateAOC) {
return isNotDigitsOrInAOC(getSOBSB(str_buffer, sUSB + "isNotDigitsOrInAOC"), b_lettersBadOpt, ac_legal, b_validateAOC);
}
/**
Does the string not contain any letters, digits or (other provided) illegal characters?
@returnisNotLDOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLDOrInAOC"), ac_legal)
**/
public boolean isNotLDOrInAOC(StringBuffer str_buffer, char[] ac_legal) {
return isNotLDOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLDOrInAOC"), ac_legal);
}
/**
Does the string not contain any letters, digits or (other provided) illegal characters?
@returnisNotLDOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLDOrInAOC"), ac_legal, b_validateAOC)
**/
public boolean isNotLDOrInAOC(StringBuffer str_buffer, char[] ac_legal, boolean b_validateAOC) {
return isNotLDOrInAOC(getSOBSB(str_buffer, sUSB + "isNotLDOrInAOC"), ac_legal, b_validateAOC);
}
/**
Does the string not contain any illegal characters?
@returnhasNoIllegalChars(getSOBSB(str_buffer, sUSB + "hasNoIllegalChars"), ac_illegal)
**/
public boolean hasNoIllegalChars(StringBuffer str_buffer, char[] ac_illegal) {
return hasNoIllegalChars(getSOBSB(str_buffer, sUSB + "hasNoIllegalChars"), ac_illegal);
}
/**
Does the string not contain any illegal characters?
@returnisNotIllegal(getSOBSB(str_buffer, sUSB + "hasNoIllegalChars"), false, false, ac_illegal, b_validateAOC)
**/
public boolean hasNoIllegalChars(StringBuffer str_buffer, char[] ac_illegal, boolean b_validateAOC) {
return isLegal(getSOBSB(str_buffer, sUSB + "hasNoIllegalChars"), false, false, ac_illegal, b_validateAOC);
}
/**
Does the string not contain any illegal characters?
@returnisNotIllegal(getSOBSB(str_buffer, sUSB + "isNotIllegal"), b_lettersBadOpt, b_digitsBadOpt, ac_illegal)
**/
public boolean isNotIllegal(StringBuffer str_buffer, boolean b_lettersBadOpt, boolean b_digitsBadOpt, char[] ac_illegal) {
return isNotIllegal(getSOBSB(str_buffer, sUSB + "isNotIllegal"), b_lettersBadOpt, b_digitsBadOpt, ac_illegal);
}
/**
Does the string not contain any illegal characters?
@returnisNotIllegal(getSOBSB(str_buffer, sUSB + "isNotLegal"), b_lettersBadOpt, b_digitsBadOpt, ac_illegal, b_validateAOC)
**/
public boolean isNotIllegal(StringBuffer str_buffer, boolean b_lettersBadOpt, boolean b_digitsBadOpt, char[] ac_illegal, boolean b_validateAOC) {
return isNotIllegal(getSOBSB(str_buffer, sUSB + "isNotLegal"), b_lettersBadOpt, b_digitsBadOpt, ac_illegal, b_validateAOC);
}
/**
Create an SOBString from the StringBuffer.
@returngetSOBS(str_buffer, sUSB + "str_buffer", s_callingClsFnc)
**/
public final SOBString getSOBS(StringBuffer str_buffer, String s_callingClsFnc) {
return getSOBS(str_buffer, sUSB + "str_buffer", s_callingClsFnc);
}
/**
Create an SOBString from the StringBuffer.
@param str_buffer The StringBuffer to create a new SOBString with. May not be null. @param s_sDescription The descriptive name of str_buffer, for potential error messages. @param s_callingClsFnc The function from which the potential error message should appear as if it is coming from. @return(new SOBString(str_buffer.toString()))
**/
public final SOBString getSOBS(StringBuffer str_buffer, String s_sbDesc, String s_callingClsFnc) {
try {
return new SOBString(str_buffer.toString());
} catch(NullPointerException npx) {
throwAXSpoof(s_callingClsFnc + ": " + s_sbDesc + " is null.");
}
//Never reached. Required for compile.
return null;
}
/**
Create an SOBStringBuffer from the StringBuffer.
@returngetSOBSB(str_buffer, sUSB + "str_buffer", s_callingClsFnc)
**/
public final SOBStringBuffer getSOBSB(StringBuffer str_buffer, String s_callingClsFnc) {
return getSOBSB(str_buffer, "str_buffer", s_callingClsFnc);
}
/**
Create an SOBStringBuffer from the StringBuffer.
@param str_buffer The StringBuffer to create a new SOBStringBuffer with. May not be null. @param s_sDescription The descriptive name of str_buffer, for potential error messages. @param s_callingClsFnc The function from which the potential error message should appear as if it is coming from. @return(new SOBStringBuffer(str_buffer))
**/
public final SOBStringBuffer getSOBSB(StringBuffer str_buffer, String s_sbDesc, String s_callingClsFnc) {
try {
return (new SOBStringBuffer(str_buffer));
} catch(NullPointerException npx) {
throwAXSpoof(s_callingClsFnc + ": " + s_sbDesc + " is null.");
}
//Never reached. Required for compile.
return null;
}
/**
Get an array of SOBStrings from the array of StringBuffers.
@param a_stringBuffer The array of strings to create an array of SOBStrings from. @return null If a_stringBuffer is null.Get an array of SOBStringBuffers from the array of StringBuffers.
@param a_stringBuffer The array of strings to create an array of SOBStringBuffers from. @return null If a_stringBuffer is null.