The list of methods to do String Strip are organized into topic(s).
String
strip(final String s) Strips undisplayable characters from the String
return strip(s, false, HANDLE_UNKNOWN_INCLUDE);
String[]
strip(String string, String token) strip
StringTokenizer st = new StringTokenizer(string, token);
List<String> result = new ArrayList<String>();
while (st.hasMoreTokens()) {
result.add((String) st.nextElement());
return result.toArray(new String[0]);
String
stripBadHTMLTags(String s) strip Bad HTML Tags
final StringBuffer buf = new StringBuffer(s);
final Vector quotes = new Vector();
int i = -1;
int start = -1;
StringBuffer bit = null;
String lastTag = null;
while ((++i) < buf.length()) {
switch (buf.charAt(i)) {
...
String
stripExtension(String filename) strip Extension
final String SEPARATOR = ".";
final StringTokenizer tokenizer = new StringTokenizer(filename, SEPARATOR);
return tokenizer.nextToken();
String
stripLastElement(String str) strip Last Element
String last = getLastElement(str);
if (last.length() > 0) {
int index = str.lastIndexOf(last);
if (index >= 0) {
if (index == 0)
str = "";
else
str = str.substring(0, index);
...
String
stripLeadingSlash(String str) strip Leading Slash
if (!isEmpty(str) && str.startsWith("/")) {
return str.substring(1);
} else {
return str;
String
stripNamespaceDeclarations(String xml) strip Namespace Declarations
if (xml == null) {
return null;
for (String declaration : declarations) {
for (;;) {
int i = xml.indexOf(declaration);
if (i < 0) {
break;
...
String
stripTags(final String tagged) strip Tags
final StringBuffer stripped = new StringBuffer();
boolean inTag = false;
for (int i = 0; i < tagged.length(); i++) {
final char c = tagged.charAt(i);
if (c == '<') {
inTag = true;
continue;
if (c == '>') {
inTag = false;
continue;
if (inTag) {
continue;
stripped.append(c);
return stripped.toString().trim();