| Package | Description |
|---|---|
| java.beans | |
| java.io | |
| java.lang | |
| java.lang.annotation | |
| java.lang.reflect |
Provides classes and interfaces for obtaining reflective
information about classes and objects.
|
| java.net | |
| java.util | |
| java.util.concurrent | |
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP
file formats.
|
| Modifier and Type | Method and Description |
|---|---|
String |
VetoableChangeListenerProxy.getPropertyName()
Returns the name of the named property associated with the listener.
|
String |
PropertyChangeListenerProxy.getPropertyName()
Returns the name of the named property associated with the listener.
|
String |
PropertyChangeEvent.getPropertyName()
Gets the programmatic name of the property that was changed.
|
String |
PropertyChangeEvent.toString()
Returns a string representation of the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyChangeSupport.addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
void |
VetoableChangeSupport.addVetoableChangeListener(String propertyName,
VetoableChangeListener listener)
Add a VetoableChangeListener for a specific property.
|
void |
PropertyChangeSupport.fireIndexedPropertyChange(String propertyName,
int index,
boolean oldValue,
boolean newValue)
Reports a boolean bound indexed property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
PropertyChangeSupport.fireIndexedPropertyChange(String propertyName,
int index,
int oldValue,
int newValue)
Reports an integer bound indexed property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
PropertyChangeSupport.fireIndexedPropertyChange(String propertyName,
int index,
Object oldValue,
Object newValue)
Reports a bound indexed property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Reports a boolean bound property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
int oldValue,
int newValue)
Reports an integer bound property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Reports a bound property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
boolean oldValue,
boolean newValue)
Reports a boolean constrained property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
int oldValue,
int newValue)
Reports an integer constrained property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
Reports a constrained property update to listeners
that have been registered to track updates of
all properties or a property with the specified name.
|
PropertyChangeListener[] |
PropertyChangeSupport.getPropertyChangeListeners(String propertyName)
Returns an array of all the listeners which have been associated
with the named property.
|
VetoableChangeListener[] |
VetoableChangeSupport.getVetoableChangeListeners(String propertyName)
Returns an array of all the listeners which have been associated
with the named property.
|
boolean |
VetoableChangeSupport.hasListeners(String propertyName)
Check if there are any listeners for a specific property, including
those registered on all properties.
|
boolean |
PropertyChangeSupport.hasListeners(String propertyName)
Check if there are any listeners for a specific property, including
those registered on all properties.
|
void |
PropertyChangeSupport.removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.
|
void |
VetoableChangeSupport.removeVetoableChangeListener(String propertyName,
VetoableChangeListener listener)
Remove a VetoableChangeListener for a specific property.
|
| Constructor and Description |
|---|
IndexedPropertyChangeEvent(Object source,
String propertyName,
Object oldValue,
Object newValue,
int index)
Constructs a new
IndexedPropertyChangeEvent object. |
PropertyChangeEvent(Object source,
String propertyName,
Object oldValue,
Object newValue)
Constructs a new
PropertyChangeEvent. |
PropertyChangeListenerProxy(String propertyName,
PropertyChangeListener listener)
Constructor which binds the
PropertyChangeListener
to a specific property. |
PropertyVetoException(String mess,
PropertyChangeEvent evt)
Constructs a
PropertyVetoException with a
detailed message. |
VetoableChangeListenerProxy(String propertyName,
VetoableChangeListener listener)
Constructor which binds the
VetoableChangeListener
to a specific property. |
| Modifier and Type | Field and Description |
|---|---|
String |
InvalidClassException.classname
Name of the invalid class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
InputStreamReader.getEncoding()
Returns the name of the character encoding being used by this stream.
|
String |
WriteAbortedException.getMessage()
Produce the message and include the message from the nested
exception, if there is one.
|
String |
InvalidClassException.getMessage()
Produce the message and include the classname, if present.
|
String |
ObjectStreamField.getName()
Get the name of this field.
|
String |
ObjectStreamClass.getName()
Returns the name of the class described by this descriptor.
|
String |
ObjectStreamField.getTypeString()
Return the JVM type signature.
|
String |
ObjectInputStream.readLine()
Deprecated.
This method does not properly convert bytes to characters.
see DataInputStream for the details and alternatives.
|
String |
DataInputStream.readLine()
Deprecated.
This method does not properly convert bytes to characters.
As of JDK 1.1, the preferred way to read lines of text is via the
BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:
|
String |
DataInput.readLine()
Reads the next line of text from the input stream.
|
String |
BufferedReader.readLine()
Reads a line of text.
|
String |
ObjectInputStream.readUTF()
Reads a String in
modified UTF-8
format.
|
String |
DataInputStream.readUTF()
See the general contract of the
readUTF
method of DataInput. |
String |
DataInput.readUTF()
Reads in a string that has been encoded using a
modified UTF-8
format.
|
static String |
DataInputStream.readUTF(DataInput in)
Reads from the
stream
in a representation
of a Unicode character string encoded in
modified UTF-8 format;
this string of characters is then returned as a String. |
String |
ObjectStreamField.toString()
Return a string that describes this field.
|
String |
ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass.
|
String |
ByteArrayOutputStream.toString()
Converts the buffer's contents into a string decoding bytes using the
platform's default character set.
|
String |
ByteArrayOutputStream.toString(int hibyte)
Deprecated.
This method does not properly convert bytes into characters.
As of JDK 1.1, the preferred way to do this is via the
toString(String enc) method, which takes an encoding-name
argument, or the toString() method, which uses the
platform's default character encoding. |
String |
ByteArrayOutputStream.toString(String charsetName)
Converts the buffer's contents into a string by decoding the bytes using
the specified
charsetName. |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
ObjectInputStream.GetField.defaulted(String name)
Return true if the named field is defaulted and has no value in this
stream.
|
abstract boolean |
ObjectInputStream.GetField.get(String name,
boolean val)
Get the value of the named boolean field from the persistent field.
|
abstract byte |
ObjectInputStream.GetField.get(String name,
byte val)
Get the value of the named byte field from the persistent field.
|
abstract char |
ObjectInputStream.GetField.get(String name,
char val)
Get the value of the named char field from the persistent field.
|
abstract double |
ObjectInputStream.GetField.get(String name,
double val)
Get the value of the named double field from the persistent field.
|
abstract float |
ObjectInputStream.GetField.get(String name,
float val)
Get the value of the named float field from the persistent field.
|
abstract int |
ObjectInputStream.GetField.get(String name,
int val)
Get the value of the named int field from the persistent field.
|
abstract long |
ObjectInputStream.GetField.get(String name,
long val)
Get the value of the named long field from the persistent field.
|
abstract Object |
ObjectInputStream.GetField.get(String name,
Object val)
Get the value of the named Object field from the persistent field.
|
abstract short |
ObjectInputStream.GetField.get(String name,
short val)
Get the value of the named short field from the persistent field.
|
ObjectStreamField |
ObjectStreamClass.getField(String name)
Get the field of this class by name.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
boolean val)
Put the value of the named boolean field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
byte val)
Put the value of the named byte field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
char val)
Put the value of the named char field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
double val)
Put the value of the named double field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
float val)
Put the value of the named float field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
int val)
Put the value of the named int field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
long val)
Put the value of the named long field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
Object val)
Put the value of the named Object field into the persistent field.
|
abstract void |
ObjectOutputStream.PutField.put(String name,
short val)
Put the value of the named short field into the persistent field.
|
protected Class<?> |
ObjectInputStream.resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy
class descriptor; subclasses may implement this method to read custom
data from the stream along with the descriptors for dynamic proxy
classes, allowing them to use an alternate loading mechanism for the
interfaces and the proxy class.
|
String |
ByteArrayOutputStream.toString(String charsetName)
Converts the buffer's contents into a string by decoding the bytes using
the specified
charsetName. |
void |
ObjectOutputStream.writeBytes(String str)
Writes a String as a sequence of bytes.
|
void |
DataOutputStream.writeBytes(String s)
Writes out the string to the underlying output stream as a
sequence of bytes.
|
void |
DataOutput.writeBytes(String s)
Writes a string to the output stream.
|
void |
ObjectOutputStream.writeChars(String str)
Writes a String as a sequence of chars.
|
void |
DataOutputStream.writeChars(String s)
Writes a string to the underlying output stream as a sequence of
characters.
|
void |
DataOutput.writeChars(String s)
Writes every character in the string
s,
to the output stream, in order,
two bytes per character. |
void |
ObjectOutputStream.writeUTF(String str)
Primitive data write of this String in
modified UTF-8
format.
|
void |
DataOutputStream.writeUTF(String str)
Writes a string to the underlying output stream using
modified UTF-8
encoding in a machine-independent manner.
|
void |
DataOutput.writeUTF(String s)
Writes two bytes of length information
to the output stream, followed
by the
modified UTF-8
representation
of every character in the string
s. |
| Constructor and Description |
|---|
EOFException(String s)
Constructs an
EOFException with the specified detail
message. |
InputStreamReader(InputStream in,
String charsetName)
Creates an InputStreamReader that uses the named charset.
|
InvalidClassException(String reason)
Report an InvalidClassException for the reason specified.
|
InvalidClassException(String cname,
String reason)
Constructs an InvalidClassException object.
|
InvalidObjectException(String reason)
Constructs an
InvalidObjectException. |
IOException(String message)
Constructs an
IOException with the specified detail message. |
IOException(String message,
Throwable cause)
Constructs an
IOException with the specified detail message
and cause. |
NotActiveException(String reason)
Constructor to create a new NotActiveException with the reason given.
|
NotSerializableException(String classname)
Constructs a NotSerializableException object with message string.
|
ObjectStreamException(String classname)
Create an ObjectStreamException with the specified argument.
|
ObjectStreamField(String name,
Class<?> type)
Create a Serializable field with the specified type.
|
ObjectStreamField(String name,
Class<?> type,
boolean unshared)
Creates an ObjectStreamField representing a serializable field with the
given name and type.
|
StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown.
|
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message.
|
UTFDataFormatException(String s)
Constructs a
UTFDataFormatException with the
specified detail message. |
WriteAbortedException(String s,
Exception ex)
Constructs a WriteAbortedException with a string describing
the exception and the exception causing the abort.
|
| Modifier and Type | Field and Description |
|---|---|
static Comparator<String> |
String.CASE_INSENSITIVE_ORDER
A Comparator that orders
String objects as by
compareToIgnoreCase. |
| Modifier and Type | Method and Description |
|---|---|
String |
String.concat(String str)
Concatenates the specified string to the end of this string.
|
static String |
String.copyValueOf(char[] data)
Returns a String that represents the character sequence in the
array specified.
|
static String |
String.copyValueOf(char[] data,
int offset,
int count)
Returns a String that represents the character sequence in the
array specified.
|
static String |
String.format(String format,
Object... args)
Returns a formatted string using the specified format string and
arguments.
|
String |
Class.getCanonicalName()
Returns the canonical name of the underlying class as
defined by the Java Language Specification.
|
String |
StackTraceElement.getClassName()
Returns the fully qualified name of the class containing the
execution point represented by this stack trace element.
|
String |
StackTraceElement.getFileName()
Returns the name of the source file containing the execution point
represented by this stack trace element.
|
String |
Throwable.getLocalizedMessage()
Creates a localized description of this throwable.
|
String |
Throwable.getMessage()
Returns the detail message string of this throwable.
|
String |
StackTraceElement.getMethodName()
Returns the name of the method containing the execution point
represented by this stack trace element.
|
String |
Class.getName()
Returns the name of the entity (class, interface, array class,
primitive type, or void) represented by this
Class object,
as a String. |
String |
Class.getSimpleName()
Returns the simple name of the underlying class as given in the
source code.
|
String |
String.intern()
Returns a canonical representation for the string object.
|
String |
Enum.name()
Returns the name of this enum constant, exactly as declared in its
enum declaration.
|
String |
String.replace(char oldChar,
char newChar)
Returns a new string resulting from replacing all occurrences of
oldChar in this string with newChar. |
String |
String.replace(CharSequence target,
CharSequence replacement)
Replaces each substring of this string that matches the literal target
sequence with the specified literal replacement sequence.
|
String |
String.replaceAll(String regex,
String replacement)
Replaces each substring of this string that matches the given regular expression with the
given replacement.
|
String |
String.replaceFirst(String regex,
String replacement)
Replaces the first substring of this string that matches the given regular expression with the
given replacement.
|
String[] |
String.split(String regex)
Splits this string around matches of the given regular expression.
|
String[] |
String.split(String regex,
int limit)
Splits this string around matches of the given
regular expression.
|
String |
StringBuffer.substring(int start) |
String |
String.substring(int beginIndex)
Returns a new string that is a substring of this string.
|
String |
StringBuffer.substring(int start,
int end) |
String |
String.substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string.
|
static String |
Integer.toBinaryString(int i)
Returns a string representation of the integer argument as an
unsigned integer in base 2.
|
static String |
Long.toBinaryString(long i)
Returns a string representation of the
long
argument as an unsigned integer in base 2. |
static String |
Double.toHexString(double d)
Returns a hexadecimal string representation of the
double argument. |
static String |
Float.toHexString(float f)
Returns a hexadecimal string representation of the
float argument. |
static String |
Integer.toHexString(int i)
Returns a string representation of the integer argument as an
unsigned integer in base 16.
|
static String |
Long.toHexString(long i)
Returns a string representation of the
long
argument as an unsigned integer in base 16. |
String |
String.toLowerCase()
Converts all of the characters in this
String to lower
case using the rules of the default locale. |
static String |
Integer.toOctalString(int i)
Returns a string representation of the integer argument as an
unsigned integer in base 8.
|
static String |
Long.toOctalString(long i)
Returns a string representation of the
long
argument as an unsigned integer in base 8. |
String |
Throwable.toString()
Returns a short description of this throwable.
|
String |
StringBuilder.toString() |
String |
StringBuffer.toString() |
String |
String.toString()
This object (which is already a string!) is itself returned.
|
String |
StackTraceElement.toString()
Returns a string representation of this stack trace element.
|
String |
Short.toString()
Returns a
String object representing this
Short's value. |
String |
Object.toString()
Returns a string representation of the object.
|
String |
Long.toString()
Returns a
String object representing this
Long's value. |
String |
Integer.toString()
Returns a
String object representing this
Integer's value. |
String |
Float.toString()
Returns a string representation of this
Float object. |
String |
Enum.toString()
Returns the name of this enum constant, as contained in the
declaration.
|
String |
Double.toString()
Returns a string representation of this
Double object. |
String |
Class.toString()
Converts the object to a string.
|
String |
Character.toString()
Returns a
String object representing this
Character's value. |
String |
Character.Subset.toString()
Returns the name of this subset.
|
String |
CharSequence.toString()
Returns a string containing the characters in this sequence in the same
order as this sequence.
|
String |
Byte.toString()
Returns a
String object representing this
Byte's value. |
String |
Boolean.toString()
Returns a
String object representing this Boolean's
value. |
static String |
Boolean.toString(boolean b)
Returns a
String object representing the specified
boolean. |
static String |
Byte.toString(byte b)
Returns a new
String object representing the
specified byte. |
static String |
Character.toString(char c)
Returns a
String object representing the
specified char. |
static String |
Double.toString(double d)
Returns a string representation of the
double
argument. |
static String |
Float.toString(float f)
Returns a string representation of the
float
argument. |
static String |
Integer.toString(int i)
Returns a
String object representing the
specified integer. |
static String |
Integer.toString(int i,
int radix)
Returns a string representation of the first argument in the
radix specified by the second argument.
|
static String |
Long.toString(long i)
Returns a
String object representing the specified
long. |
static String |
Long.toString(long i,
int radix)
Returns a string representation of the first argument in the
radix specified by the second argument.
|
static String |
Short.toString(short s)
Returns a new
String object representing the
specified short. |
String |
String.toUpperCase()
Converts all of the characters in this
String to upper
case using the rules of the default locale. |
String |
String.trim()
Returns a copy of the string, with leading and trailing whitespace
omitted.
|
static String |
String.valueOf(boolean b)
Returns the string representation of the
boolean argument. |
static String |
String.valueOf(char c)
Returns the string representation of the
char
argument. |
static String |
String.valueOf(char[] data)
Returns the string representation of the
char array
argument. |
static String |
String.valueOf(char[] data,
int offset,
int count)
Returns the string representation of a specific subarray of the
char array argument. |
static String |
String.valueOf(double d)
Returns the string representation of the
double argument. |
static String |
String.valueOf(float f)
Returns the string representation of the
float argument. |
static String |
String.valueOf(int i)
Returns the string representation of the
int argument. |
static String |
String.valueOf(long l)
Returns the string representation of the
long argument. |
static String |
String.valueOf(Object obj)
Returns the string representation of the
Object argument. |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
StringBuilder.append(String str) |
StringBuffer |
StringBuffer.append(String str) |
int |
String.compareTo(String anotherString)
Compares two strings lexicographically.
|
int |
String.compareToIgnoreCase(String str)
Compares two strings lexicographically, ignoring case
differences.
|
String |
String.concat(String str)
Concatenates the specified string to the end of this string.
|
static Short |
Short.decode(String nm)
Decodes a
String into a Short. |
static Long |
Long.decode(String nm)
Decodes a
String into a Long. |
static Integer |
Integer.decode(String nm)
Decodes a
String into an Integer. |
static Byte |
Byte.decode(String nm)
Decodes a
String into a Byte. |
protected Class<?> |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len)
Converts an array of bytes into an instance of class Class.
|
boolean |
String.endsWith(String suffix)
Tests if this string ends with the specified suffix.
|
boolean |
String.equalsIgnoreCase(String anotherString)
Compares this
String to another String, ignoring case
considerations. |
protected Class<?> |
ClassLoader.findClass(String name)
Finds the class with the specified binary name.
|
protected Class<?> |
ClassLoader.findLoadedClass(String name)
Returns the class with the given binary name if this
loader has been recorded by the Java virtual machine as an initiating
loader of a class with that binary name.
|
protected URL |
ClassLoader.findResource(String name)
Finds the resource with the given name.
|
protected Enumeration<URL> |
ClassLoader.findResources(String name)
Returns an enumeration of
URL objects
representing all the resources with the given name. |
static String |
String.format(String format,
Object... args)
Returns a formatted string using the specified format string and
arguments.
|
static Class<?> |
Class.forName(String className)
Returns the
Class object associated with the class or
interface with the given string name. |
static Class<?> |
Class.forName(String name,
boolean initialize,
ClassLoader loader)
Returns the
Class object associated with the class or
interface with the given string name, using the given class loader. |
static boolean |
Boolean.getBoolean(String name)
Returns
true if and only if the system property
named by the argument exists and is equal to the string
"true". |
byte[] |
String.getBytes(String charsetName)
Encodes this
String into a sequence of bytes using the named
charset, storing the result into a new byte array. |
protected Object |
ClassLoader.getClassLoadingLock(String className)
Returns the lock object for class loading operations.
|
Field |
Class.getField(String name)
Returns a
Field object that reflects the specified public
member field of the class or interface represented by this
Class object. |
static Integer |
Integer.getInteger(String nm)
Determines the integer value of the system property with the
specified name.
|
static Integer |
Integer.getInteger(String nm,
int val)
Determines the integer value of the system property with the
specified name.
|
static Integer |
Integer.getInteger(String nm,
Integer val)
Returns the integer value of the system property with the
specified name.
|
static Long |
Long.getLong(String nm)
Determines the
long value of the system property
with the specified name. |
static Long |
Long.getLong(String nm,
long val)
Determines the
long value of the system property
with the specified name. |
static Long |
Long.getLong(String nm,
Long val)
Returns the
long value of the system property with
the specified name. |
Method |
Class.getMethod(String name,
Class<?>... parameterTypes)
Returns a
Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
URL |
ClassLoader.getResource(String name)
Finds the resource with the given name.
|
URL |
Class.getResource(String name)
Finds a resource with a given name.
|
InputStream |
ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource.
|
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name.
|
Enumeration<URL> |
ClassLoader.getResources(String name)
Finds all the resources with the given name.
|
static URL |
ClassLoader.getSystemResource(String name)
Find a resource of the specified name from the search path used to load
classes.
|
static InputStream |
ClassLoader.getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path
used to load classes.
|
static Enumeration<URL> |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to
load classes.
|
int |
StringBuilder.indexOf(String str) |
int |
StringBuffer.indexOf(String str) |
int |
String.indexOf(String str)
Returns the index within this string of the first occurrence of the
specified substring.
|
int |
StringBuilder.indexOf(String str,
int fromIndex) |
int |
StringBuffer.indexOf(String str,
int fromIndex) |
int |
String.indexOf(String str,
int fromIndex)
Returns the index within this string of the first occurrence of the
specified substring, starting at the specified index.
|
StringBuilder |
StringBuilder.insert(int offset,
String str) |
StringBuffer |
StringBuffer.insert(int offset,
String str) |
int |
StringBuilder.lastIndexOf(String str) |
int |
StringBuffer.lastIndexOf(String str) |
int |
String.lastIndexOf(String str)
Returns the index within this string of the last occurrence of the
specified substring.
|
int |
StringBuilder.lastIndexOf(String str,
int fromIndex) |
int |
StringBuffer.lastIndexOf(String str,
int fromIndex) |
int |
String.lastIndexOf(String str,
int fromIndex)
Returns the index within this string of the last occurrence of the
specified substring, searching backward starting at the specified index.
|
Class<?> |
ClassLoader.loadClass(String name)
Loads the class with the specified binary name.
|
protected Class<?> |
ClassLoader.loadClass(String name,
boolean resolve)
Loads the class with the specified binary name.
|
boolean |
String.matches(String regex)
Tells whether or not this string matches the given regular expression.
|
static boolean |
Boolean.parseBoolean(String s)
Parses the string argument as a boolean.
|
static byte |
Byte.parseByte(String s)
Parses the string argument as a signed decimal
byte. |
static byte |
Byte.parseByte(String s,
int radix)
Parses the string argument as a signed
byte in the
radix specified by the second argument. |
static double |
Double.parseDouble(String s)
Returns a new
double initialized to the value
represented by the specified String, as performed
by the valueOf method of class
Double. |
static float |
Float.parseFloat(String s)
Returns a new
float initialized to the value
represented by the specified String, as performed
by the valueOf method of class Float. |
static int |
Integer.parseInt(String s)
Parses the string argument as a signed decimal integer.
|
static int |
Integer.parseInt(String s,
int radix)
Parses the string argument as a signed integer in the radix
specified by the second argument.
|
static long |
Long.parseLong(String s)
Parses the string argument as a signed decimal
long. |
static long |
Long.parseLong(String s,
int radix)
Parses the string argument as a signed
long in the
radix specified by the second argument. |
static short |
Short.parseShort(String s)
Parses the string argument as a signed decimal
short. |
static short |
Short.parseShort(String s,
int radix)
Parses the string argument as a signed
short in the
radix specified by the second argument. |
boolean |
String.regionMatches(boolean ignoreCase,
int toffset,
String other,
int ooffset,
int len)
Tests if two string regions are equal.
|
boolean |
String.regionMatches(int toffset,
String other,
int ooffset,
int len)
Tests if two string regions are equal.
|
StringBuilder |
StringBuilder.replace(int start,
int end,
String str) |
StringBuffer |
StringBuffer.replace(int start,
int end,
String str) |
String |
String.replaceAll(String regex,
String replacement)
Replaces each substring of this string that matches the given regular expression with the
given replacement.
|
String |
String.replaceFirst(String regex,
String replacement)
Replaces the first substring of this string that matches the given regular expression with the
given replacement.
|
String[] |
String.split(String regex)
Splits this string around matches of the given regular expression.
|
String[] |
String.split(String regex,
int limit)
Splits this string around matches of the given
regular expression.
|
boolean |
String.startsWith(String prefix)
Tests if this string starts with the specified prefix.
|
boolean |
String.startsWith(String prefix,
int toffset)
Tests if the substring of this string beginning at the
specified index starts with the specified prefix.
|
static <T extends Enum<T>> |
Enum.valueOf(Class<T> enumType,
String name)
Returns the enum constant of the specified enum type with the
specified name.
|
static Short |
Short.valueOf(String s)
Returns a
Short object holding the
value given by the specified String. |
static Long |
Long.valueOf(String s)
Returns a
Long object holding the value
of the specified String. |
static Integer |
Integer.valueOf(String s)
Returns an
Integer object holding the
value of the specified String. |
static Float |
Float.valueOf(String s)
Returns a
Float object holding the
float value represented by the argument string
s. |
static Double |
Double.valueOf(String s)
Returns a
Double object holding the
double value represented by the argument string
s. |
static Byte |
Byte.valueOf(String s)
Returns a
Byte object holding the value
given by the specified String. |
static Boolean |
Boolean.valueOf(String s)
Returns a
Boolean with a value represented by the
specified string. |
static Short |
Short.valueOf(String s,
int radix)
Returns a
Short object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Long |
Long.valueOf(String s,
int radix)
Returns a
Long object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Integer |
Integer.valueOf(String s,
int radix)
Returns an
Integer object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Byte |
Byte.valueOf(String s,
int radix)
Returns a
Byte object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
| Constructor and Description |
|---|
AbstractMethodError(String s)
Constructs an
AbstractMethodError with the specified
detail message. |
ArithmeticException(String s)
Constructs an
ArithmeticException with the specified
detail message. |
ArrayIndexOutOfBoundsException(String s)
Constructs an
ArrayIndexOutOfBoundsException class
with the specified detail message. |
ArrayStoreException(String s)
Constructs an
ArrayStoreException with the specified
detail message. |
AssertionError(String message,
Throwable cause)
Constructs a new
AssertionError with the specified
detail message and cause. |
Boolean(String s)
Allocates a
Boolean object representing the value
true if the string argument is not null
and is equal, ignoring case, to the string "true". |
Byte(String s)
Constructs a newly allocated
Byte object that
represents the byte value indicated by the
String parameter. |
Character.Subset(String name)
Constructs a new
Subset instance. |
ClassCastException(String s)
Constructs a
ClassCastException with the specified
detail message. |
ClassFormatError(String s)
Constructs a
ClassFormatError with the specified
detail message. |
ClassNotFoundException(String s)
Constructs a
ClassNotFoundException with the
specified detail message. |
ClassNotFoundException(String s,
Throwable ex)
Constructs a
ClassNotFoundException with the
specified detail message and optional exception that was
raised while loading the class. |
CloneNotSupportedException(String s)
Constructs a
CloneNotSupportedException with the
specified detail message. |
Double(String s)
Constructs a newly allocated
Double object that
represents the floating-point value of type double
represented by the string. |
Enum(String name,
int ordinal)
Sole constructor.
|
Error(String message)
Constructs a new error with the specified detail message.
|
Error(String message,
Throwable cause)
Constructs a new error with the specified detail message and
cause.
|
Error(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new error with the specified detail message,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
Exception(String message)
Constructs a new exception with the specified detail message.
|
Exception(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
Exception(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new exception with the specified detail message,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
Float(String s)
Constructs a newly allocated
Float object that
represents the floating-point value of type float
represented by the string. |
IllegalAccessError(String s)
Constructs an
IllegalAccessError with the specified
detail message. |
IllegalAccessException(String s)
Constructs an
IllegalAccessException with a detail message. |
IllegalArgumentException(String s)
Constructs an
IllegalArgumentException with the
specified detail message. |
IllegalArgumentException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail
message.
|
IllegalStateException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
IncompatibleClassChangeError(String s)
Constructs an
IncompatibleClassChangeError with the
specified detail message. |
IndexOutOfBoundsException(String s)
Constructs an
IndexOutOfBoundsException with the
specified detail message. |
InstantiationException(String s)
Constructs an
InstantiationException with the
specified detail message. |
Integer(String s)
Constructs a newly allocated
Integer object that
represents the int value indicated by the
String parameter. |
InternalError(String s)
Constructs an
InternalError with the specified
detail message. |
InterruptedException(String s)
Constructs an
InterruptedException with the
specified detail message. |
LinkageError(String s)
Constructs a
LinkageError with the specified detail
message. |
LinkageError(String s,
Throwable cause)
Constructs a
LinkageError with the specified detail
message and cause. |
Long(String s)
Constructs a newly allocated
Long object that
represents the long value indicated by the
String parameter. |
NegativeArraySizeException(String s)
Constructs a
NegativeArraySizeException with the
specified detail message. |
NoSuchFieldError(String s)
Constructs a
NoSuchFieldError with the specified
detail message. |
NoSuchMethodException(String s)
Constructs a
NoSuchMethodException with a detail message. |
NullPointerException(String s)
Constructs a
NullPointerException with the specified
detail message. |
NumberFormatException(String s)
Constructs a
NumberFormatException with the
specified detail message. |
OutOfMemoryError(String s)
Constructs an
OutOfMemoryError with the specified
detail message. |
ReflectiveOperationException(String message)
Constructs a new exception with the specified detail message.
|
ReflectiveOperationException(String message,
Throwable cause)
Constructs a new exception with the specified detail message
and cause.
|
RuntimeException(String message)
Constructs a new runtime exception with the specified detail message.
|
RuntimeException(String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
RuntimeException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
|
SecurityException(String s)
Constructs a
SecurityException with the specified
detail message. |
SecurityException(String message,
Throwable cause)
Creates a
SecurityException with the specified
detail message and cause. |
Short(String s)
Constructs a newly allocated
Short object that
represents the short value indicated by the
String parameter. |
StackTraceElement(String declaringClass,
String methodName,
String fileName,
int lineNumber)
Creates a stack trace element representing the specified execution
point.
|
String(byte[] bytes,
int offset,
int length,
String charsetName)
Constructs a new
String by decoding the specified subarray of
bytes using the specified charset. |
String(byte[] bytes,
String charsetName)
Constructs a new
String by decoding the specified array of bytes
using the specified charset. |
String(String original)
Initializes a newly created
String object so that it represents
the same sequence of characters as the argument; in other words, the
newly created string is a copy of the argument string. |
StringBuffer(String str)
Constructs a string buffer initialized to the contents of the
specified string.
|
StringBuilder(String str)
Constructs a string builder initialized to the contents of the
specified string.
|
StringIndexOutOfBoundsException(String s)
Constructs a
StringIndexOutOfBoundsException with
the specified detail message. |
Throwable(String message)
Constructs a new throwable with the specified detail message.
|
Throwable(String message,
Throwable cause)
Constructs a new throwable with the specified detail message and
cause.
|
Throwable(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new throwable with the specified detail message,
cause, suppression enabled or
disabled, and writable stack trace enabled or disabled.
|
UnsupportedOperationException(String message)
Constructs an UnsupportedOperationException with the specified
detail message.
|
UnsupportedOperationException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
VirtualMachineError(String s)
Constructs a
VirtualMachineError with the specified
detail message. |
| Modifier and Type | Method and Description |
|---|---|
String |
Annotation.toString()
Returns a string representation of this annotation.
|
| Modifier and Type | Method and Description |
|---|---|
static RetentionPolicy |
RetentionPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElementType |
ElementType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
TypeVariable.getName()
Returns the name of this type variable, as it occurs in the source code.
|
String |
Method.getName()
Returns the name of the method represented by this
Method
object, as a String. |
String |
Member.getName()
Returns the simple name of the underlying member or constructor
represented by this Member.
|
String |
Field.getName()
Returns the name of the field represented by this
Field object. |
String |
Constructor.getName()
Returns the name of this constructor, as a string.
|
String |
Method.toGenericString()
Returns a string describing this
Method, including
type parameters. |
String |
Field.toGenericString()
Returns a string describing this
Field, including
its generic type. |
String |
Constructor.toGenericString()
Returns a string describing this
Constructor,
including type parameters. |
String |
Method.toString()
Returns a string describing this
Method. |
String |
Field.toString()
Returns a string describing this
Field. |
String |
Constructor.toString()
Returns a string describing this
Constructor. |
static String |
Modifier.toString(int mod)
Return a string describing the access modifier flags in
the specified modifier.
|
| Constructor and Description |
|---|
InvocationTargetException(Throwable target,
String s)
Constructs a InvocationTargetException with a target exception
and a detail message.
|
UndeclaredThrowableException(Throwable undeclaredThrowable,
String s)
Constructs an
UndeclaredThrowableException with the
specified Throwable and a detail message. |
| Modifier and Type | Method and Description |
|---|---|
String |
URL.getAuthority()
Gets the authority part of this
URL. |
String |
URL.getFile()
Gets the file name of this
URL. |
String |
URL.getHost()
Gets the host name of this
URL, if applicable. |
String |
URL.getPath()
Gets the path part of this
URL. |
String |
URL.getProtocol()
Gets the protocol name of this
URL. |
String |
URL.getQuery()
Gets the query part of this
URL. |
String |
URL.getRef()
Gets the anchor (also known as the "reference") of this
URL. |
String |
URL.getUserInfo()
Gets the userInfo part of this
URL. |
String |
URL.toExternalForm()
Constructs a string representation of this
URL. |
protected String |
URLStreamHandler.toExternalForm(URL u)
Converts a
URL of a specific protocol to a
String. |
String |
URL.toString()
Constructs a string representation of this
URL. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
URLStreamHandler.parseURL(URL u,
String spec,
int start,
int limit)
Parses the string representation of a
URL into a
URL object. |
protected void |
URL.set(String protocol,
String host,
int port,
String file,
String ref)
Sets the fields of the URL.
|
protected void |
URL.set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the specified 8 fields of the URL.
|
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref)
Deprecated.
Use setURL(URL, String, String, int, String, String, String,
String);
|
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the fields of the
URL argument to the indicated values. |
| Constructor and Description |
|---|
MalformedURLException(String msg)
Constructs a
MalformedURLException with the
specified detail message. |
URL(String spec)
Creates a
URL object from the String
representation. |
URL(String protocol,
String host,
int port,
String file)
Creates a
URL object from the specified
protocol, host, port
number, and file. |
URL(String protocol,
String host,
int port,
String file,
URLStreamHandler handler)
Creates a
URL object from the specified
protocol, host, port
number, file, and handler. |
URL(String protocol,
String host,
String file)
Creates a URL from the specified
protocol
name, host name, and file name. |
URL(URL context,
String spec)
Creates a URL by parsing the given spec within a specified context.
|
URL(URL context,
String spec,
URLStreamHandler handler)
Creates a URL by parsing the given spec with the specified handler
within a specified context.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Arrays.deepToString(Object[] a)
Returns a string representation of the "deep contents" of the specified
array.
|
String |
StringTokenizer.nextToken()
Returns the next token from this string tokenizer.
|
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string.
|
String |
Vector.toString()
Returns a string representation of this Vector, containing
the String representation of each element.
|
String |
ServiceLoader.toString()
Returns a string describing this service.
|
String |
Hashtable.toString()
Returns a string representation of this Hashtable object
in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space).
|
String |
EventObject.toString()
Returns a String representation of this EventObject.
|
String |
AbstractMap.toString()
Returns a string representation of this map.
|
String |
AbstractMap.SimpleEntry.toString()
Returns a String representation of this map entry.
|
String |
AbstractMap.SimpleImmutableEntry.toString()
Returns a String representation of this map entry.
|
String |
AbstractCollection.toString()
Returns a string representation of this collection.
|
static String |
Arrays.toString(boolean[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(byte[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(char[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(double[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(float[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(int[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Arrays.toString(long[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Objects.toString(Object o)
Returns the result of calling
toString for a non-null argument and "null" for a null argument. |
static String |
Arrays.toString(Object[] a)
Returns a string representation of the contents of the specified array.
|
static String |
Objects.toString(Object o,
String nullDefault)
Returns the result of calling
toString on the first
argument if the first argument is not null and returns
the second argument otherwise. |
static String |
Arrays.toString(short[] a)
Returns a string representation of the contents of the specified array.
|
| Modifier and Type | Method and Description |
|---|---|
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string.
|
static <T> T |
Objects.requireNonNull(T obj,
String message)
Checks that the specified object reference is not
null and
throws a customized NullPointerException if it is. |
static String |
Objects.toString(Object o,
String nullDefault)
Returns the result of calling
toString on the first
argument if the first argument is not null and returns
the second argument otherwise. |
| Constructor and Description |
|---|
ConcurrentModificationException(String message)
Constructs a
ConcurrentModificationException with the
specified detail message. |
ConcurrentModificationException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
NoSuchElementException(String s)
Constructs a
NoSuchElementException, saving a reference
to the error message string s for later retrieval by the
getMessage method. |
ServiceConfigurationError(String msg)
Constructs a new instance with the specified message.
|
ServiceConfigurationError(String msg,
Throwable cause)
Constructs a new instance with the specified message and cause.
|
StringTokenizer(String str)
Constructs a string tokenizer for the specified string.
|
StringTokenizer(String str,
String delim)
Constructs a string tokenizer for the specified string.
|
StringTokenizer(String str,
String delim,
boolean returnDelims)
Constructs a string tokenizer for the specified string.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ZipEntry.getComment()
Returns the comment string for the entry, or null if none.
|
String |
ZipEntry.getName()
Returns the name of the entry.
|
String |
ZipEntry.toString()
Returns a string representation of the ZIP entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected ZipEntry |
ZipInputStream.createZipEntry(String name)
Creates a new
ZipEntry object for the specified
entry name. |
void |
ZipEntry.setComment(String comment)
Sets the optional comment string for the entry.
|
| Constructor and Description |
|---|
DataFormatException(String s)
Constructs a DataFormatException with the specified detail message.
|
ZipEntry(String name)
Creates a new zip entry with the specified name.
|
ZipException(String s)
Constructs a
ZipException with the specified detail
message. |
Copyright © 2013 API Design. All Rights Reserved.