Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.annotation |
Provides library support for the Java programming language annotation facility.
|
java.net |
Provides exceptions related to socket connections.
|
java.nio |
Defines buffers, which are containers for data.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
java.security |
Provides the classes and interfaces for the security framework.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
java.util.logging |
Provides the classes and interfaces of the CLDC platform's core logging facilities.
|
Modifier and Type | Method and Description |
---|---|
String |
FilePermission.getActions()
Returns the "canonical string representation" of the actions.
|
String |
OutputStreamWriter.getEncoding()
Returns the name of the character encoding being used by this stream.
|
String |
InputStreamReader.getEncoding()
Returns the name of the character encoding being used by this stream.
|
String |
BufferedReader.readLine()
Reads a line of text.
|
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 |
ByteArrayOutputStream.toString()
Converts the buffer's contents into a string decoding bytes using the
platform's default character set.
|
Modifier and Type | Method and Description |
---|---|
PrintStream |
PrintStream.format(String format,
Object... args)
Writes a formatted string to this output stream using the specified
format string and arguments.
|
void |
PrintStream.print(String s)
Prints a string.
|
PrintStream |
PrintStream.printf(String format,
Object... args)
A convenience method to write a formatted string to this output stream
using the specified format string and arguments.
|
void |
PrintStream.println(String x)
Prints a String and then terminate the line.
|
void |
Writer.write(String str)
Writes a string.
|
void |
Writer.write(String str,
int off,
int len)
Writes a portion of a string.
|
void |
OutputStreamWriter.write(String str,
int off,
int len)
Writes a portion of a string.
|
void |
BufferedWriter.write(String s,
int off,
int len)
Writes a portion of a String.
|
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 |
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 |
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. |
FilePermission(String path,
String actions)
Creates a new FilePermission object with the specified actions.
|
InputStreamReader(InputStream in,
String charsetName)
Creates an InputStreamReader that uses the named charset.
|
InterruptedIOException(String s)
Constructs an
InterruptedIOException with the
specified detail message. |
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. |
OutputStreamWriter(OutputStream out,
String charsetName)
Creates an OutputStreamWriter that uses the named charset.
|
PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Creates a new print stream.
|
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message.
|
UTFDataFormatException(String s)
Constructs a
UTFDataFormatException with the
specified detail message. |
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 |
Throwable.getLocalizedMessage()
Creates a localized description of this throwable.
|
String |
Throwable.getMessage()
Returns the detail message string of this throwable.
|
String |
Thread.getName()
Returns this thread's name.
|
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 . |
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key.
|
static String |
System.getProperty(String key,
String def)
Gets the system property indicated by the specified key.
|
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 |
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 |
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 |
Thread.toString()
Returns a string representation of this thread, including the
thread's name and priority.
|
String |
StringBuilder.toString() |
String |
StringBuffer.toString() |
String |
String.toString()
This object (which is already a string!) is itself returned.
|
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 |
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) |
void |
SecurityManager.checkAccept(String host,
int port)
Throws a
SecurityException if the
calling thread is not permitted to accept a socket connection from
the specified host and port number. |
void |
SecurityManager.checkConnect(String host,
int port)
Throws a
SecurityException if the
calling thread is not allowed to open a socket connection to the
specified host and port number. |
void |
SecurityManager.checkDelete(String file)
Throws a
SecurityException if the
calling thread is not allowed to delete the specified file. |
void |
SecurityManager.checkPropertyAccess(String key)
Throws a
SecurityException if the
calling thread is not allowed to access the system property with
the specified key name. |
void |
SecurityManager.checkRead(String file)
Throws a
SecurityException if the
calling thread is not allowed to read the file specified by the
string argument. |
void |
SecurityManager.checkWrite(String file)
Throws a
SecurityException if the
calling thread is not allowed to write to the file specified by
the string argument. |
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 . |
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. |
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 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. |
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. |
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key.
|
static String |
System.getProperty(String key,
String def)
Gets the system property indicated by the specified key.
|
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name in the application's
JAR file.
|
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.
|
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) |
void |
Thread.setName(String name)
Changes the name of this thread to be equal to the argument
name . |
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 |
---|
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. |
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. |
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.
|
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.
|
Float(String s)
Constructs a newly allocated
Float object that
represents the floating-point value of type float
represented by the string. |
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.
|
IllegalMonitorStateException(String s)
Constructs an
IllegalMonitorStateException with the
specified detail message. |
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.
|
IllegalThreadStateException(String s)
Constructs an
IllegalThreadStateException with the
specified detail message. |
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. |
InterruptedException(String s)
Constructs an
InterruptedException with the
specified detail message. |
LinkageError(String s)
Constructs a
LinkageError with the specified detail
message. |
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. |
NoClassDefFoundError(String s)
Constructs a
NoClassDefFoundError with the specified
detail message. |
NoSuchFieldError(String s)
Constructs a
NoSuchFieldError with the specified
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. |
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.
|
RuntimePermission(String name)
Creates a new RuntimePermission with the specified name.
|
RuntimePermission(String name,
String actions)
Creates a new RuntimePermission object with the specified name.
|
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. |
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 subarray 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. |
Thread(Runnable target,
String name)
Allocates a new
Thread object so that it has target
as its run object and has the specified name as its name. |
Thread(String name)
Allocates a new
Thread object. |
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.
|
UnsupportedClassVersionError(String s)
Constructs a
UnsupportedClassVersionError with
the specified detail message. |
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 message)
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.
|
Constructor and Description |
---|
BindException(String msg)
Constructs a new BindException with the specified detail
message as to why the bind error occurred.
|
ConnectException(String msg)
Constructs a new ConnectException with the specified detail
message as to why the connect error occurred.
|
NoRouteToHostException(String msg)
Constructs a new NoRouteToHostException with the specified detail
message as to why the remote host cannot be reached.
|
PortUnreachableException(String msg)
Constructs a new
PortUnreachableException with a
detail message. |
SocketException(String msg)
Constructs a new
SocketException with the
specified detail message. |
UnknownHostException(String host)
Constructs a new
UnknownHostException with the
specified detail message. |
Modifier and Type | Method and Description |
---|---|
String |
ShortBuffer.toString()
Returns a string summarizing the state of this buffer.
|
String |
IntBuffer.toString()
Returns a string summarizing the state of this buffer.
|
String |
FloatBuffer.toString()
Returns a string summarizing the state of this buffer.
|
String |
ByteOrder.toString()
Constructs a string describing this object.
|
String |
ByteBuffer.toString()
Returns a string summarizing the state of this buffer.
|
Modifier and Type | Method and Description |
---|---|
String |
FileSystemException.getFile()
Returns the file used to create this exception.
|
String |
InvalidPathException.getInput()
Returns the input string.
|
String |
InvalidPathException.getMessage()
Returns a string describing the error.
|
String |
FileSystemException.getMessage()
Returns the detail message string.
|
String |
FileSystemException.getOtherFile()
Returns the other file used to create this exception.
|
String |
InvalidPathException.getReason()
Returns a string explaining why the input string was rejected.
|
String |
FileSystemException.getReason()
Returns the string explaining why the file system operation failed.
|
abstract String |
FileSystem.getSeparator()
Returns the name separator, represented as a string.
|
abstract String |
FileStore.name()
Returns the name of this file store.
|
String |
Path.toString()
Returns the string representation of this path.
|
abstract String |
FileStore.type()
Returns the type of this file store.
|
Modifier and Type | Method and Description |
---|---|
abstract Set<String> |
FileSystem.supportedFileAttributeViews()
Returns the set of the file attribute view names of the file
attribute views supported by this
FileSystem . |
Modifier and Type | Method and Description |
---|---|
static Path |
Files.createTempDirectory(Path dir,
String prefix,
FileAttribute<?>... attrs)
Creates a new directory in the specified directory, using the given
prefix to generate its name.
|
static Path |
Files.createTempDirectory(String prefix,
FileAttribute<?>... attrs)
Creates a new directory in the default temporary-file directory, using
the given prefix to generate its name.
|
static Path |
Files.createTempFile(Path dir,
String prefix,
String suffix,
FileAttribute<?>... attrs)
Creates a new empty file in the specified directory, using the given
prefix and suffix strings to generate its name.
|
static Path |
Files.createTempFile(String prefix,
String suffix,
FileAttribute<?>... attrs)
Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.
|
boolean |
Path.endsWith(String other)
Tests if this path ends with a
Path , constructed by converting
the given path string, in exactly the manner specified by the endsWith(Path) method. |
static Path |
Paths.get(String first,
String... more)
Converts a path string, or a sequence of strings that when joined form
a path string, to a
Path . |
static Path |
Paths.get(String first,
String... more)
Converts a path string, or a sequence of strings that when joined form
a path string, to a
Path . |
static Object |
Files.getAttribute(Path path,
String attribute,
LinkOption... options)
Reads the value of a file attribute.
|
abstract Object |
FileStore.getAttribute(String attribute)
Reads the value of a file store attribute.
|
abstract Path |
FileSystem.getPath(String first,
String... more)
Converts a path string, or a sequence of strings that when joined form
a path string, to a
Path . |
abstract Path |
FileSystem.getPath(String first,
String... more)
Converts a path string, or a sequence of strings that when joined form
a path string, to a
Path . |
Path |
Path.resolve(String other)
Converts a given path string to a
Path and resolves it against
this Path in exactly the manner specified by the resolve method. |
Path |
Path.resolveSibling(String other)
Converts a given path string to a
Path and resolves it against
this path's parent path in exactly the manner
specified by the resolveSibling method. |
static Path |
Files.setAttribute(Path path,
String attribute,
Object value,
LinkOption... options)
Sets the value of a file attribute.
|
boolean |
Path.startsWith(String other)
Tests if this path starts with a
Path , constructed by converting
the given path string, in exactly the manner specified by the startsWith(Path) method. |
abstract boolean |
FileStore.supportsFileAttributeView(String name)
Tells whether or not this file store supports the file attributes
identified by the given file attribute view.
|
static StandardOpenOption |
StandardOpenOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardCopyOption |
StandardCopyOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkOption |
LinkOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
Constructor and Description |
---|
AtomicMoveNotSupportedException(String source,
String target,
String reason)
Constructs an instance of this class.
|
DirectoryNotEmptyException(String dir)
Constructs an instance of this class.
|
FileAlreadyExistsException(String file)
Constructs an instance of this class.
|
FileAlreadyExistsException(String file,
String other,
String reason)
Constructs an instance of this class.
|
FileSystemException(String file)
Constructs an instance of this class.
|
FileSystemException(String file,
String other,
String reason)
Constructs an instance of this class.
|
InvalidPathException(String input,
String reason)
Constructs an instance from the given input string and reason.
|
InvalidPathException(String input,
String reason,
int index)
Constructs an instance from the given input string, reason, and error
index.
|
NoSuchFileException(String file)
Constructs an instance of this class.
|
NoSuchFileException(String file,
String other,
String reason)
Constructs an instance of this class.
|
NotDirectoryException(String file)
Constructs an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
FileAttribute.name()
Returns the attribute name.
|
String |
FileTime.toString()
Returns the string representation of this
FileTime . |
Modifier and Type | Method and Description |
---|---|
abstract String |
Permission.getActions()
Returns the actions as a String.
|
String |
BasicPermission.getActions()
Returns the canonical string representation of the actions,
which currently is the empty string "", since there are no actions for
a BasicPermission.
|
String |
Permission.getName()
Returns the name of this Permission.
|
String |
PermissionCollection.toString()
Returns a string describing this PermissionCollection object,
providing information about all the permissions it contains.
|
String |
Permission.toString()
Returns a string describing this Permission.
|
Constructor and Description |
---|
AccessControlException(String s)
Constructs an
AccessControlException with the
specified, detailed message. |
AccessControlException(String s,
Permission p)
Constructs an
AccessControlException with the
specified, detailed message, and the requested permission that caused
the exception. |
BasicPermission(String name)
Creates a new BasicPermission with the specified name.
|
BasicPermission(String name,
String actions)
Creates a new BasicPermission object with the specified name.
|
Permission(String name)
Constructs a permission with the specified name.
|
Modifier and Type | Method and Description |
---|---|
String |
PropertyPermission.getActions()
Returns the "canonical string representation" of the actions.
|
static String[] |
TimeZone.getAvailableIDs()
Gets all the available IDs supported.
|
static String[] |
TimeZone.getAvailableIDs(int rawOffset)
Gets the available IDs according to the given time zone offset in milliseconds.
|
String |
TimeZone.getDisplayName()
Returns a long standard time name of this
TimeZone suitable for
presentation to the user in the default locale. |
String |
TimeZone.getDisplayName(boolean daylight,
int style)
Returns a name in the specified
style of this TimeZone
suitable for presentation to the user in the default locale. |
String |
TimeZone.getID()
Gets the ID of this time zone.
|
String |
Properties.getProperty(String key)
Searches for the property with the specified key in this property list.
|
String |
Properties.getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list.
|
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 |
Formatter.toString()
Returns the result of invoking
toString() on the destination
for the output. |
String |
EventObject.toString()
Returns a String representation of this EventObject.
|
String |
Date.toString()
Converts this
Date object to a String
of the form:
|
String |
Calendar.toString()
Return a string representation of this calendar.
|
String |
AbstractMap.toString()
Returns a string representation of this map.
|
String |
AbstractCollection.toString()
Returns a string representation of this collection.
|
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 |
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. |
Modifier and Type | Method and Description |
---|---|
Set<String> |
Properties.stringPropertyNames()
Returns a set of keys in this property list where
the key and its corresponding value are strings,
including distinct keys in the default property list if a key
of the same name has not already been found from the main
properties list.
|
Modifier and Type | Method and Description |
---|---|
Formatter |
Formatter.format(String format,
Object... args)
Writes a formatted string to this object's destination using the
specified format string and arguments.
|
String |
Properties.getProperty(String key)
Searches for the property with the specified key in this property list.
|
String |
Properties.getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list.
|
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the
TimeZone for the given ID. |
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. |
void |
TimeZone.setID(String ID)
Sets the time zone ID.
|
Object |
Properties.setProperty(String key,
String value)
Calls the Hashtable method
put . |
void |
Properties.store(OutputStream out,
String comments)
Writes this property list (key and element pairs) in this
Properties table to the output stream in a format suitable
for loading into a Properties table using the
load(InputStream) method. |
void |
Properties.store(Writer writer,
String comments)
Writes this property list (key and element pairs) in this
Properties table to the output character stream in a
format suitable for using the load(Reader)
method. |
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. |
NoSuchElementException(String s)
Constructs a
NoSuchElementException , saving a reference
to the error message string s for later retrieval by the
getMessage method. |
PropertyPermission(String name,
String actions)
Creates a new PropertyPermission object with the specified name.
|
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.
|
Timer(String name)
Creates a new timer whose associated thread has the specified name.
|
Modifier and Type | Field and Description |
---|---|
static String |
Logger.GLOBAL_LOGGER_NAME
GLOBAL_LOGGER_NAME is a name for the global logger.
|
Modifier and Type | Method and Description |
---|---|
String |
SimpleFormatter.format(LogRecord record)
Format the given LogRecord.
|
abstract String |
Formatter.format(LogRecord record)
Format the given log record and return the formatted string.
|
String |
Formatter.formatMessage(LogRecord record)
Localize and format the message string from a log record.
|
String |
Handler.getEncoding()
Return the character encoding for this Handler.
|
String |
Formatter.getHead(Handler h)
Return the header string for a set of formatted records.
|
String |
LogRecord.getLoggerName()
Get the source Logger's name.
|
String |
LogRecord.getMessage()
Get the "raw" log message, before localization or formatting.
|
String |
Logger.getName()
Get the name for this logger.
|
String |
Level.getName()
Return the non-localized string name of the Level.
|
String |
LogRecord.getSourceClassName()
Get the name of the class that (allegedly) issued the logging request.
|
String |
LogRecord.getSourceMethodName()
Get the name of the method that (allegedly) issued the logging request.
|
String |
Formatter.getTail(Handler h)
Return the tail string for a set of formatted records.
|
String |
Level.toString()
Returns a string representation of this Level.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
LogManager.getLoggerNames()
Get an enumeration of known logger names.
|
Modifier and Type | Method and Description |
---|---|
static Logger |
Logger.getLogger(String name)
Find or create a logger for a named subsystem.
|
Logger |
LogManager.getLogger(String name)
Method to find a named logger.
|
void |
Logger.log(Level level,
String msg)
Log a message, with no arguments.
|
void |
Logger.log(Level level,
String msg,
Object param1)
Log a message, with one object parameter.
|
void |
Logger.log(Level level,
String msg,
Object[] params)
Log a message, with an array of object arguments.
|
void |
Logger.log(Level level,
String msg,
Throwable thrown)
Log a message, with associated Throwable information.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg)
Log a message, specifying source class and method,
with no arguments.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1)
Log a message, specifying source class and method,
with a single object parameter to the log message.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params)
Log a message, specifying source class and method,
with an array of object arguments.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Throwable thrown)
Log a message, specifying source class and method,
with associated Throwable information.
|
static Level |
Level.parse(String name)
Parse a level name string into a Level.
|
protected void |
Handler.reportError(String msg,
Exception ex,
int code)
Protected convenience method to report an error.
|
void |
StreamHandler.setEncoding(String encoding)
Set (or change) the character encoding used by this Handler.
|
void |
Handler.setEncoding(String encoding)
Set the character encoding used by this Handler.
|
void |
LogRecord.setLoggerName(String name)
Set the source Logger's name.
|
void |
LogRecord.setMessage(String message)
Set the "raw" log message, before localization or formatting.
|
void |
LogRecord.setSourceClassName(String sourceClassName)
Set the name of the class that (allegedly) issued the logging request.
|
void |
LogRecord.setSourceMethodName(String sourceMethodName)
Set the name of the method that (allegedly) issued the logging request.
|
Constructor and Description |
---|
Level(String name,
int value)
Create a named Level with a given integer value.
|
LoggingPermission(String name,
String actions)
Creates a new LoggingPermission object.
|
LogRecord(Level level,
String msg)
Construct a LogRecord with the given level and message values.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.