|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdevimpl.audit.util.Strings
public class Strings
String utilities. Some of these methods have reasonable JDK alternatives in newer JDKs.
Nested Class Summary | |
---|---|
static class |
Strings.TokenIterator An iterator for the tokens in a string. |
Field Summary | |
---|---|
static java.lang.String |
LINE_SEPARATOR |
Method Summary | |
---|---|
static java.lang.StringBuffer |
append(java.lang.StringBuffer buffer, java.lang.Object object) Appends a string representation of an object to a string buffer. |
static void |
append(java.lang.StringBuffer buffer, java.lang.String message, java.lang.Object[] arguments) Appends a formatted string from a template string and an array of arguments to a StringBuffer. |
static void |
appendHtmlEscaped(java.lang.StringBuilder buffer, java.lang.String text) Escapes HTML meta-characters in a string into a buffer. |
static java.lang.String |
capitalize(java.lang.String string) Capitalizes a string. |
static java.lang.String |
capitalizeAll(java.lang.String string) Capitalizes each letter which follows a whitespace character in a string. |
static java.lang.String |
capitalizeAndSeparateAll(java.lang.String string) Capitalizes each letter which follows a whitespace character in a string, and inserts a space before any uppercase letter preceded by a lower case letter. |
static java.lang.String |
decapitalize(java.lang.String string) Decapitalizes a string. |
static java.lang.String |
fill(char c, int length) Creates a string filled with a character. |
static java.lang.String |
firstLine(java.lang.String string) Extracts the first line of a string. |
static java.lang.String |
firstToken(java.lang.String string, char delimiter) Gets the first token in a string. |
static java.lang.String |
firstToken(java.lang.String string, java.lang.String delimiters) Gets the first token in a string. |
static java.lang.String |
htmlEscaped(java.lang.String text) Escapes HTML meta-characters in a string. |
static java.lang.String |
lastToken(java.lang.String string, char delimiter) Gets the last token in a string. |
static java.lang.String |
lastToken(java.lang.String string, java.lang.String delimiters) Gets the last token in a string. |
static java.lang.String |
remove(java.lang.String string, java.lang.String substring) Removes the first occurrence of a substring. |
static java.lang.String |
removeAll(java.lang.String string, java.lang.String substring) Removes all occurrences of a substring. |
static java.lang.String |
removePrefix(java.lang.String string, java.lang.String prefix) Removes a prefix from a string, if present. |
static java.lang.String |
removeSuffix(java.lang.String string, java.lang.String suffix) Removes a suffix from a string, if present. |
static java.lang.String |
replace(java.lang.String string, java.lang.String substring, java.lang.String replacement) Replaces the first occurrence of a substring. |
static java.lang.String |
replaceAll(java.lang.String string, java.lang.String substring, java.lang.String replacement) Replaces all occurrences of a substring. |
static java.util.List<java.lang.String> |
tokens(java.lang.String string, char delimiter) Gets a list of the tokens in a string. |
static java.lang.String |
toString(java.lang.Object object) Gets a string representation of an object. |
static java.lang.String |
toString(java.lang.String message, java.lang.Object[] arguments) Gets a formatted string from a template string and an array of arguments. |
static java.lang.String |
trim(java.lang.String string, char character) Gets a string trimmed of leading and trailing occurrences of a character. |
java.lang.String |
trim(java.lang.String string, java.lang.String characters) Gets a string trimmed of leading and trailing occurrences of set of characters. |
static boolean |
wildcardMatch(java.lang.String string, java.lang.String pattern) Gets true if a string matches a pattern which may include wildcard characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINE_SEPARATOR
Method Detail |
---|
public static java.lang.String capitalize(java.lang.String string)
public static java.lang.String capitalizeAll(java.lang.String string)
public static java.lang.String capitalizeAndSeparateAll(java.lang.String string)
public static java.lang.String decapitalize(java.lang.String string)
public static java.lang.String htmlEscaped(java.lang.String text)
public static void appendHtmlEscaped(java.lang.StringBuilder buffer, java.lang.String text)
public static java.lang.String fill(char c, int length)
c
- The character to replicate.length
- The length of the string.public static java.lang.String firstLine(java.lang.String string)
public static java.lang.String remove(java.lang.String string, java.lang.String substring)
public static java.lang.String removeAll(java.lang.String string, java.lang.String substring)
public static java.lang.String replace(java.lang.String string, java.lang.String substring, java.lang.String replacement)
public static java.lang.String replaceAll(java.lang.String string, java.lang.String substring, java.lang.String replacement)
public static java.lang.String removePrefix(java.lang.String string, java.lang.String prefix)
public static java.lang.String removeSuffix(java.lang.String string, java.lang.String suffix)
public static java.lang.String trim(java.lang.String string, char character)
string
- The string to trim.character
- The character to trim from the string.public java.lang.String trim(java.lang.String string, java.lang.String characters)
string
- The string to trim.characters
- The characters to trim from the string.public static java.util.List<java.lang.String> tokens(java.lang.String string, char delimiter)
string
- The string to tokenize.delimiter
- The character which delimits tokens.public static java.lang.String firstToken(java.lang.String string, char delimiter)
string
- The string to tokenize.delimiter
- The character which delimits tokens.public static java.lang.String firstToken(java.lang.String string, java.lang.String delimiters)
string
- The string to tokenize.delimiters
- The characters any of which delimit tokens.public static java.lang.String lastToken(java.lang.String string, char delimiter)
string
- The string to tokenize.delimiter
- The character which delimits tokens.public static java.lang.String lastToken(java.lang.String string, java.lang.String delimiters)
string
- The string to tokenize.delimiters
- The characters any of which delimit tokens.public static boolean wildcardMatch(java.lang.String string, java.lang.String pattern)
string
- The string to match.pattern
- The pattern to match against, containing wildcards.public static java.lang.String toString(java.lang.Object object)
public static java.lang.String toString(java.lang.String message, java.lang.Object[] arguments)
public static void append(java.lang.StringBuffer buffer, java.lang.String message, java.lang.Object[] arguments)
public static java.lang.StringBuffer append(java.lang.StringBuffer buffer, java.lang.Object object)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |