Use 
PREV   NEXT      All Classes   All Packages
FlexDoc/Javadoc 2.0
Demo Java Doc

Uses of Class
java.lang.String
Packages that use String
Provides for system input and output through data streams, serialization and the file system.
Provides classes that are fundamental to the design of the Java programming language.
Provides library support for the Java programming language annotation facility.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text components.
Provides the class HTMLEditorKit and supporting classes for creating HTML text editors.
Allows developers to provide support for undo/redo in applications such as text editors.
Provides the classes for implementing XML Catalogs OASIS Standard V1.1, 7 October 2005.
The Doclet API provides an environment which, in conjunction with the Language Model API and Compiler Tree API, allows clients to inspect the source-level structures of programs and libraries, including API comments embedded in the source.
Uses of String in java.io
Fields in java.io declared as String
static final String
The system-dependent path-separator character, represented as a string for convenience.
static final String
The system-dependent default name-separator character, represented as a string for convenience.
InvalidClassException.classname
Name of the invalid class.
StreamTokenizer.sval
If the current token is a word token, this field contains a string giving the characters of the word token.
protected String
StringBufferInputStream.buffer
The string from which bytes are read.
Methods in java.io that return String
BufferedReader.readLine()
Reads a line of text.
ByteArrayOutputStream.toString()
Converts the buffer's contents into a string decoding bytes using the platform's default character set.
ByteArrayOutputStream.toString(Charset charset)
Converts the buffer's contents into a string by decoding the bytes using the specified charset.
ByteArrayOutputStream.toString(int hibyte)
Deprecated. This method does not properly convert bytes into characters.
ByteArrayOutputStream.toString(String charsetName)
Converts the buffer's contents into a string by decoding the bytes using the named charset.
CharArrayWriter.toString()
Converts input data to a string.
Console.readLine()
Reads a single line of text from the console.
Console.readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.
DataInput.readLine()
Reads the next line of text from the input stream.
DataInput.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format.
final String
DataInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters.
final String
DataInputStream.readUTF()
See the general contract of the readUTF method of DataInput.
static final 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.
Returns the absolute pathname string of this abstract pathname.
Returns the canonical pathname string of this abstract pathname.
File.getName()
Returns the name of the file or directory denoted by this abstract pathname.
File.getParent()
Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory.
File.getPath()
Converts this abstract pathname into a pathname string.
File.list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname.
File.list(FilenameFilter filter)
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
File.toString()
Returns the pathname string of this abstract pathname.
FilePermission.getActions()
Returns the "canonical string representation" of the actions.
InputStreamReader.getEncoding()
Returns the name of the character encoding being used by this stream.
InvalidClassException.getMessage()
Produce the message and include the classname, if present.
LineNumberReader.readLine()
Read a line of text.
ObjectInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters.
ObjectInputStream.readUTF()
Reads a String in modified UTF-8 format.
ObjectStreamClass.getName()
Returns the name of the class described by this descriptor.
ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass.
ObjectStreamField.getName()
Get the name of this field.
ObjectStreamField.getTypeString()
Return the JVM type signature.
ObjectStreamField.toString()
Return a string that describes this field.
OutputStreamWriter.getEncoding()
Returns the name of the character encoding being used by this stream.
final String
RandomAccessFile.readLine()
Reads the next line of text from this file.
final String
RandomAccessFile.readUTF()
Reads in a string from this file.
StreamTokenizer.toString()
Returns the string representation of the current stream token and the line number it occurs on.
StringWriter.toString()
Return the buffer's current value as a string.
WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one.
Methods in java.io that return types with arguments of type String
BufferedReader.lines()
Returns a Stream, the elements of which are lines read from this BufferedReader.
Methods in java.io with parameters of type String
void
BufferedWriter.write(String s, int off, int len)
Writes a portion of a String.
ByteArrayOutputStream.toString(String charsetName)
Converts the buffer's contents into a string by decoding the bytes using the named charset.
void
CharArrayWriter.write(String str, int off, int len)
Write a portion of a string to the buffer.
Console.format(String fmt, Object... args)
Writes a formatted string to this console's output stream using the specified format string and arguments.
Console.printf(String format, Object... args)
A convenience method to write a formatted string to this console's output stream using the specified format string and arguments.
Console.readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.
char[]
Console.readPassword(String fmt, Object... args)
Provides a formatted prompt, then reads a password or passphrase from the console with echoing disabled.
void
DataOutput.writeBytes(String s)
Writes a string to the output stream.
void
DataOutput.writeChars(String s)
Writes every character in the string s, to the output stream, in order, two bytes per character.
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.
final void
DataOutputStream.writeBytes(String s)
Writes out the string to the underlying output stream as a sequence of bytes.
final void
DataOutputStream.writeChars(String s)
Writes a string to the underlying output stream as a sequence of characters.
final void
DataOutputStream.writeUTF(String str)
Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.
static File
File.createTempFile(String prefix, String suffix)
Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.
static File
File.createTempFile(String prefix, String suffix, File directory)
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
boolean
FilenameFilter.accept(File dir, String name)
Tests if a specified file should be included in a file list.
void
FilterWriter.write(String str, int off, int len)
Writes a portion of a string.
ObjectInputFilter.Config.createFilter(String pattern)
Returns an ObjectInputFilter from a string of patterns.
ObjectInputFilter.Status.valueOf(String name)
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.
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.
void
ObjectOutputStream.writeBytes(String str)
Writes a String as a sequence of bytes.
void
ObjectOutputStream.writeChars(String str)
Writes a String as a sequence of chars.
void
ObjectOutputStream.writeUTF(String str)
Primitive data write of this String in modified UTF-8 format.
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.
ObjectStreamClass.getField(String name)
Get the field of this class by name.
void
OutputStreamWriter.write(String str, int off, int len)
Writes a portion of a string.
PrintStream.format(Locale l, String format, Object... args)
Writes a formatted string to this output stream using the specified format string and arguments.
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.printf(Locale l, String format, Object... args)
A convenience method to write a formatted string to this output stream using the specified format string and arguments.
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.
PrintWriter.format(Locale l, String format, Object... args)
Writes a formatted string to this writer using the specified format string and arguments.
PrintWriter.format(String format, Object... args)
Writes a formatted string to this writer using the specified format string and arguments.
void
PrintWriter.print(String s)
Prints a string.
PrintWriter.printf(Locale l, String format, Object... args)
A convenience method to write a formatted string to this writer using the specified format string and arguments.
PrintWriter.printf(String format, Object... args)
A convenience method to write a formatted string to this writer using the specified format string and arguments.
void
PrintWriter.println(String x)
Prints a String and then terminates the line.
void
PrintWriter.write(String s)
Writes a string.
void
PrintWriter.write(String s, int off, int len)
Writes a portion of a string.
final void
RandomAccessFile.writeBytes(String s)
Writes the string to the file as a sequence of bytes.
final void
RandomAccessFile.writeChars(String s)
Writes a string to the file as a sequence of characters.
final void
RandomAccessFile.writeUTF(String str)
Writes a string to the file using modified UTF-8 encoding in a machine-independent manner.
void
StringWriter.write(String str)
Write a string.
void
StringWriter.write(String str, int off, int len)
Write a portion of a string.
void
Writer.write(String str)
Writes a string.
void
Writer.write(String str, int off, int len)
Writes a portion of a string.
Constructors in java.io with parameters of type String
public
This provides a detailed message.
public
Constructs an EOFException with the specified detail message.
public
File(File parent, String child)
Creates a new File instance from a parent abstract pathname and a child pathname string.
public
File(String parent, String child)
Creates a new File instance from a parent pathname string and a child pathname string.
public
File(String pathname)
Creates a new File instance by converting the given pathname string into an abstract pathname.
public
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.
public
Constructs a FileNotFoundException with the specified detail message.
public
Creates a file output stream to write to the file with the specified name.
public
FileOutputStream(String name, boolean append)
Creates a file output stream to write to the file with the specified name.
public
Creates a new FilePermission object with the specified actions.
public
FileReader(String fileName)
Creates a new FileReader, given the name of the file to read, using the platform's default charset.
public
FileReader(String fileName, Charset charset)
Creates a new FileReader, given the name of the file to read and the charset.
public
FileWriter(String fileName)
Constructs a FileWriter given a file name, using the platform's default charset
public
FileWriter(String fileName, boolean append)
Constructs a FileWriter given a file name and a boolean indicating whether to append the data written, using the platform's default charset.
public
FileWriter(String fileName, Charset charset)
Constructs a FileWriter given a file name and charset.
public
FileWriter(String fileName, Charset charset, boolean append)
Constructs a FileWriter given a file name, charset and a boolean indicating whether to append the data written.
public
Creates an InputStreamReader that uses the named charset.
public
Constructs an InterruptedIOException with the specified detail message.
public
Constructs an InvalidClassException object.
public
Report an InvalidClassException for the reason specified.
public
Constructs an InvalidObjectException.
public
Constructs an IOException with the specified detail message.
public
IOException(String message, Throwable cause)
Constructs an IOException with the specified detail message and cause.
public
Constructor to create a new NotActiveException with the reason given.
public
Constructs a NotSerializableException object with message string.
protected
Create an ObjectStreamException with the specified argument.
public
Create a Serializable field with the specified type.
public
ObjectStreamField(String name, Class<?> type, boolean unshared)
Creates an ObjectStreamField representing a serializable field with the given name and type.
public
Creates an OutputStreamWriter that uses the named charset.
public
Creates a new print stream, without automatic line flushing, with the specified file and charset.
public
PrintStream(OutputStream out, boolean autoFlush, String encoding)
Creates a new print stream, with the specified OutputStream, line flushing, and character encoding.
public
Creates a new print stream, without automatic line flushing, with the specified file name.
public
PrintStream(String fileName, Charset charset)
Creates a new print stream, without automatic line flushing, with the specified file name and charset.
public
PrintStream(String fileName, String csn)
Creates a new print stream, without automatic line flushing, with the specified file name and charset.
public
Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.
public
Creates a new PrintWriter, without automatic line flushing, with the specified file name.
public
PrintWriter(String fileName, Charset charset)
Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.
public
PrintWriter(String fileName, String csn)
Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.
public
Creates a random access file stream to read from, and optionally to write to, the file specified by the File argument.
public
Creates a random access file stream to read from, and optionally to write to, a file with the specified name.
public
Creates a new SerializablePermission with the specified name.
public
Creates a new SerializablePermission object with the specified name.
public
Create a StreamCorruptedException and list a reason why thrown.
public
Creates a string input stream to read data from the specified string.
public
Creates a new string reader.
public
Constructs an SyncFailedException with a detail message.
public
Constructs an instance of this class.
public
Constructs an UnsupportedEncodingException with a detail message.
public
Constructs a UTFDataFormatException with the specified detail message.
public
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.
Uses of String in java.lang
Class declarations in java.lang with type arguments of type String
class
The String class represents character strings.
Fields in java.lang with type arguments of type String
static final Comparator<String>
A Comparator that orders String objects as by compareToIgnoreCase.
Methods in java.lang that return 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.
Byte.toString()
Returns a String object representing this Byte's value.
static String
Byte.toString(byte b)
Returns a new String object representing the specified byte.
static String
Character.getName(int codePoint)
Returns the Unicode name of the specified character codePoint, or null if the code point is unassigned.
Character.toString()
Returns a String object representing this Character's value.
static String
Character.toString(char c)
Returns a String object representing the specified char.
static String
Character.toString(int codePoint)
Returns a String object representing the specified character (Unicode code point).
final String
Character.Subset.toString()
Returns the name of this subset.
CharSequence.toString()
Returns a string containing the characters in this sequence in the same order as this sequence.
Returns the descriptor string of the entity (class, interface, array class, primitive type, or void) represented by this Class object.
Returns the canonical name of the underlying class as defined by The Java Language Specification.
Class.getName()
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object.
Returns the fully qualified package name.
Returns the simple name of the underlying class as given in the source code.
Class.getTypeName()
Return an informative string for the name of this class or interface.
Returns a string describing this Class, including information about modifiers and type parameters.
Class.toString()
Converts the object to a string.
protected String
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library.
ClassLoader.getName()
Returns the name of this class loader or null if this class loader is not named.
static String
Double.toHexString(double d)
Returns a hexadecimal string representation of the double argument.
Double.toString()
Returns a string representation of this Double object.
static String
Double.toString(double d)
Returns a string representation of the double argument.
final String
Enum.name()
Returns the name of this enum constant, exactly as declared in its enum declaration.
Enum.toString()
Returns the name of this enum constant, as contained in the declaration.
Enum.EnumDesc.toString()
Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.
EnumConstantNotPresentException.constantName()
Returns the name of the missing enum constant.
static String
Float.toHexString(float f)
Returns a hexadecimal string representation of the float argument.
Float.toString()
Returns a string representation of this Float object.
static String
Float.toString(float f)
Returns a string representation of the float argument.
static String
Integer.toBinaryString(int i)
Returns a string representation of the integer 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
Integer.toOctalString(int i)
Returns a string representation of the integer argument as an unsigned integer in base 8.
Integer.toString()
Returns a String object representing this Integer's value.
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
Integer.toUnsignedString(int i)
Returns a string representation of the argument as an unsigned decimal value.
static String
Integer.toUnsignedString(int i, int radix)
Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.
static String
Long.toBinaryString(long i)
Returns a string representation of the long argument as an unsigned integer in base 2.
static String
Long.toHexString(long i)
Returns a string representation of the long argument as an unsigned integer in base 16.
static String
Long.toOctalString(long i)
Returns a string representation of the long argument as an unsigned integer in base 8.
Long.toString()
Returns a String object representing this Long's value.
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
Long.toUnsignedString(long i)
Returns a string representation of the argument as an unsigned decimal value.
static String
Long.toUnsignedString(long i, int radix)
Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.
Module.getName()
Returns the module name or null if this module is an unnamed module.
Module.toString()
Returns the string representation of this module.
ModuleLayer.toString()
Returns a string describing this module layer.
NullPointerException.getMessage()
Returns the detail message string of this throwable.
Object.toString()
Returns a string representation of the object.
Return the title of this package.
Returns the vendor that implemented this package, null is returned if it is not known.
Return the version of this implementation.
Package.getName()
Return the name of this package.
Return the title of the specification that this package implements.
Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package.
Returns the version number of the specification that this package implements.
Package.toString()
Returns the string representation of this Package.
abstract String
Record.toString()
Returns a string representation of the record.
Runtime.Version.toString()
Returns a string representation of this version.
Short.toString()
Returns a String object representing this Short's value.
static String
Short.toString(short s)
Returns a new String object representing the specified short.
StackTraceElement.getClassLoaderName()
Returns the name of the class loader of the class containing the execution point represented by this stack trace element.
StackTraceElement.getClassName()
Returns the fully qualified name of the class containing the execution point represented by this stack trace element.
StackTraceElement.getFileName()
Returns the name of the source file containing the execution point represented by this stack trace element.
StackTraceElement.getMethodName()
Returns the name of the method containing the execution point represented by this stack trace element.
StackTraceElement.getModuleName()
Returns the module name of the module containing the execution point represented by this stack trace element.
StackTraceElement.getModuleVersion()
Returns the module version of the module containing the execution point represented by this stack trace element.
StackTraceElement.toString()
Returns a string representation of this stack trace element.
StackWalker.StackFrame.getClassName()
Gets the binary name of the declaring class of the method represented by this stack frame.
default String
StackWalker.StackFrame.getDescriptor()
Returns the descriptor of the method represented by this stack frame as defined by The Java Virtual Machine Specification.
StackWalker.StackFrame.getFileName()
Returns the name of the source file containing the execution point represented by this stack frame.
StackWalker.StackFrame.getMethodName()
Gets the name of the method represented by this stack frame.
String.concat(String str)
Concatenates the specified string to the end of this string.
static String
String.copyValueOf(char[] data)
Equivalent to String.valueOf(char[]).
static String
String.copyValueOf(char[] data, int offset, int count)
static String
String.format(Locale l, String format, Object... args)
Returns a formatted string using the specified locale, format string, and arguments.
static String
String.format(String format, Object... args)
Returns a formatted string using the specified format string and arguments.
String.formatted(Object... args)
Formats using this string as the format string, and the supplied arguments.
String.indent(int n)
Adjusts the indentation of each line of this string based on the value of n, and normalizes line termination characters.
String.intern()
Returns a canonical representation for the string object.
static String
String.join(CharSequence delimiter, CharSequence... elements)
Returns a new String composed of copies of the CharSequence elements joined together with a copy of the specified delimiter.
static String
String.join(CharSequence delimiter, Iterable<? extends CharSequence> elements)
Returns a new String composed of copies of the CharSequence elements joined together with a copy of the specified delimiter.
String.repeat(int count)
Returns a string whose value is the concatenation of this string repeated count times.
String.replace(char oldChar, char newChar)
Returns a string resulting from replacing all occurrences of oldChar in this string with newChar.
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.replaceAll(String regex, String replacement)
Replaces each substring of this string that matches the given regular expression with the given replacement.
String.replaceFirst(String regex, String replacement)
Replaces the first substring of this string that matches the given regular expression with the given replacement.
Resolves this instance as a ConstantDesc, the result of which is the instance itself.
String.split(String regex)
Splits this string around matches of the given regular expression.
String.split(String regex, int limit)
Splits this string around matches of the given regular expression.
String.strip()
Returns a string whose value is this string, with all leading and trailing white space removed.
String.stripIndent()
Returns a string whose value is this string, with incidental white space removed from the beginning and end of every line.
String.stripLeading()
Returns a string whose value is this string, with all leading white space removed.
String.stripTrailing()
Returns a string whose value is this string, with all trailing white space removed.
String.substring(int beginIndex)
Returns a string that is a substring of this string.
String.substring(int beginIndex, int endIndex)
Returns a string that is a substring of this string.
String.toLowerCase()
Converts all of the characters in this String to lower case using the rules of the default locale.
String.toLowerCase(Locale locale)
Converts all of the characters in this String to lower case using the rules of the given Locale.
String.toString()
This object (which is already a string!) is itself returned.
String.toUpperCase()
Converts all of the characters in this String to upper case using the rules of the default locale.
String.toUpperCase(Locale locale)
Converts all of the characters in this String to upper case using the rules of the given Locale.
Returns a string whose value is this string, with escape sequences translated as if in a string literal.
String.trim()
Returns a string whose value is this string, with all leading and trailing space removed, where space is defined as any character whose codepoint is less than or equal to 'U+0020' (the space character).
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.
StringBuffer.substring(int start)
Returns a new String that contains a subsequence of characters currently contained in this character sequence.
StringBuffer.substring(int start, int end)
Returns a new String that contains a subsequence of characters currently contained in this sequence.
StringBuffer.toString()
Returns a string representing the data in this sequence.
StringBuilder.substring(int start)
Returns a new String that contains a subsequence of characters currently contained in this character sequence.
StringBuilder.substring(int start, int end)
Returns a new String that contains a subsequence of characters currently contained in this sequence.
StringBuilder.toString()
Returns a string representing the data in this sequence.
static String
System.clearProperty(String key)
Removes the system property indicated by the specified key.
static String
System.getenv(String name)
Gets the value of the specified environment variable.
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.
static String
System.lineSeparator()
Returns the system-dependent line separator string.
static String
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library.
static String
System.setProperty(String key, String value)
Sets the system property indicated by the specified key.
System.Logger.getName()
Returns the name of this logger.
final String
System.Logger.Level.getName()
Returns the name of this level.
final String
Thread.getName()
Returns this thread's name.
Thread.toString()
Returns a string representation of this thread, including the thread's name, priority, and thread group.
final String
ThreadGroup.getName()
Returns the name of this thread group.
ThreadGroup.toString()
Returns a string representation of this Thread group.
Creates a localized description of this throwable.
Throwable.getMessage()
Returns the detail message string of this throwable.
Throwable.toString()
Returns a short description of this throwable.
TypeNotPresentException.typeName()
Returns the fully qualified name of the unavailable type.
Methods in java.lang that return types with arguments of type String
Module.getPackages()
Returns the set of package names for the packages in this module.
ProcessBuilder.command()
Returns this process builder's operating system program and arguments.
ProcessBuilder.environment()
Returns a string map view of this process builder's environment.
ProcessHandle.Info.arguments()
Returns an array of Strings of the arguments of the process.
ProcessHandle.Info.command()
Returns the executable pathname of the process.
ProcessHandle.Info.commandLine()
Returns the command line of the process.
ProcessHandle.Info.user()
Return the user of the process.
Runtime.Version.optional()
Returns optional additional identifying build information.
Runtime.Version.pre()
Returns the optional pre-release information.
Returns an Optional containing the nominal descriptor for this instance, which is the instance itself.
String.lines()
Returns a stream of lines extracted from this string, separated by line terminators.
static Map<String>
System.getenv()
Returns an unmodifiable string map view of the current system environment.
Methods in java.lang with parameters of type String
static boolean
Boolean.getBoolean(String name)
Returns true if and only if the system property named by the argument exists and is equal to, ignoring case, the string "true".
static boolean
Boolean.parseBoolean(String s)
Parses the string argument as a boolean.
static Boolean
Boolean.valueOf(String s)
Returns a Boolean with a value represented by the specified string.
static Byte
Byte.decode(String nm)
Decodes a String into a Byte.
static byte
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 Byte
Byte.valueOf(String s)
Returns a Byte object holding the value given by the specified String.
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.
static int
Character.codePointOf(String name)
Returns the code point value of the Unicode character specified by the given Unicode character name.
Character.UnicodeBlock.forName(String blockName)
Returns the UnicodeBlock with the given name.
Character.UnicodeScript.forName(String scriptName)
Returns the UnicodeScript constant with the given Unicode script name or the script name alias.
Character.UnicodeScript.valueOf(String name)
static Class<?>
Class.forName(Module module, String name)
Returns the Class with the given binary name in the given module.
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.
Returns a Field object that reflects the specified declared field of the class or interface represented by this Class object.
Class.getDeclaredMethod(String name, Class<?>... parameterTypes)
Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object.
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.
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.
Class.getResource(String name)
Finds a resource with a given name.
Finds a resource with a given name.
protected final Class<?>
ClassLoader.defineClass(String name, byte[] b, int off, int len)
Converts an array of bytes into an instance of class Class.
protected final Class<?>
ClassLoader.defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain)
Converts an array of bytes into an instance of class Class, with a given ProtectionDomain.
protected final Class<?>
ClassLoader.defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain)
Converts a ByteBuffer into an instance of class Class, with the given ProtectionDomain.
protected Package
ClassLoader.definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Defines a package by name in this ClassLoader.
protected Class<?>
ClassLoader.findClass(String moduleName, String name)
Finds the class with the given binary name in a module defined to this class loader.
protected Class<?>
ClassLoader.findClass(String name)
Finds the class with the specified binary name.
protected String
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library.
protected final 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 moduleName, String name)
Returns a URL to a resource in a module defined to this class loader.
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.
protected final Class<?>
ClassLoader.findSystemClass(String name)
Finds a class with the specified binary name, loading it if necessary.
protected Object
ClassLoader.getClassLoadingLock(String className)
Returns the lock object for class loading operations.
final Package
ClassLoader.getDefinedPackage(String name)
Returns a Package of the given name that has been defined by this class loader.
protected Package
ClassLoader.getPackage(String name)
Deprecated. If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior of getPackage to return a Package from a parent loader, then the properties exposed by the Package may not be as expected in the rest of the program.
ClassLoader.getResource(String name)
Finds the resource with the given name.
ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource.
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.
Open for reading, a resource of the specified name from the search path used to load classes.
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to load classes.
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.
ClassLoader.resources(String name)
Returns a stream whose elements are the URLs of all the resources with the given name.
void
ClassLoader.setClassAssertionStatus(String className, boolean enabled)
Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.
void
ClassLoader.setPackageAssertionStatus(String packageName, boolean enabled)
Sets the package default assertion status for the named package.
static boolean
Compiler.compileClasses(String string)
Compiles all classes whose name matches the specified string.
static double
Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
static Double
Double.valueOf(String s)
Returns a Double object holding the double value represented by the argument string s.
static <T extends Enum<T>> T
Enum.valueOf(Class<T> enumClass, String name)
Returns the enum constant of the specified enum class with the specified name.
static <E extends Enum<E>> Enum.EnumDesc<E>
Enum.EnumDesc.of(ClassDesc enumClass, String constantName)
Returns a nominal descriptor for the specified enum class and name
static float
Returns a new float initialized to the value represented by the specified String, as performed by the valueOf method of class Float.
static Float
Float.valueOf(String s)
Returns a Float object holding the float value represented by the argument string s.
static Integer
Integer.decode(String nm)
Decodes a String into an Integer.
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 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 int
Parses the string argument as an unsigned decimal integer.
static int
Integer.parseUnsignedInt(String s, int radix)
Parses the string argument as an unsigned integer in the radix specified by the second argument.
static Integer
Integer.valueOf(String s)
Returns an Integer object holding the value of the specified String.
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 Long
Long.decode(String nm)
Decodes a String into a Long.
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 long
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 long
Parses the string argument as an unsigned decimal long.
static long
Long.parseUnsignedLong(String s, int radix)
Parses the string argument as an unsigned long in the radix specified by the second argument.
static Long
Long.valueOf(String s)
Returns a Long object holding the value of the specified String.
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.
Module.addExports(String pn, Module other)
If the caller's module is this module then update this module to export the given package to the given module.
Module.addOpens(String pn, Module other)
If this module has opened a package to at least the caller module then update this module to open the package to the given module.
Returns an input stream for reading a resource in this module.
boolean
Module.isExported(String pn)
Returns true if this module exports the given package unconditionally.
boolean
Module.isExported(String pn, Module other)
Returns true if this module exports the given package to at least the given module.
boolean
Module.isOpen(String pn)
Returns true if this module has opened a package unconditionally.
boolean
Module.isOpen(String pn, Module other)
Returns true if this module has opened a package to at least the given module.
ModuleLayer.findLoader(String name)
Returns the ClassLoader for the module with the given name.
ModuleLayer.findModule(String name)
Returns the module with the given name in this layer, or if not in this layer, the parent layers.
ModuleLayer.Controller.addExports(Module source, String pn, Module target)
Updates module source in the layer to export a package to module target.
ModuleLayer.Controller.addOpens(Module source, String pn, Module target)
Updates module source in the layer to open a package to module target.
static Package
Package.getPackage(String name)
Deprecated. If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior of getPackage to return a Package from a parent loader, then the properties exposed by the Package may not be as expected in the rest of the program.
boolean
Package.isCompatibleWith(String desired)
Compare this package's specification version with a desired version.
ProcessBuilder.command(String... command)
Sets this process builder's operating system program and arguments.
ProcessBuilder.Redirect.Type.valueOf(String name)
Runtime.exec(String command)
Executes the specified string command in a separate process.
Runtime.exec(String command, String[] envp)
Executes the specified string command in a separate process with the specified environment.
Runtime.exec(String command, String[] envp, File dir)
Executes the specified string command in a separate process with the specified environment and working directory.
Runtime.exec(String[] cmdarray)
Executes the specified command and arguments in a separate process.
Runtime.exec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.
Runtime.exec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
void
Runtime.load(String filename)
Loads the native library specified by the filename argument.
void
Runtime.loadLibrary(String libname)
Loads the native library specified by the libname argument.
Runtime.Version.parse(String s)
Parses the given string as a valid version string containing a version number followed by pre-release and build information.
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.checkConnect(String host, int port, Object context)
Throws a SecurityException if the specified security context 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.checkExec(String cmd)
Throws a SecurityException if the calling thread is not allowed to create a subprocess.
void
SecurityManager.checkLink(String lib)
Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified by the string argument file.
void
SecurityManager.checkPackageAccess(String pkg)
Throws a SecurityException if the calling thread is not allowed to access the specified package.
void
SecurityManager.checkPackageDefinition(String pkg)
Throws a SecurityException if the calling thread is not allowed to define classes in the specified package.
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.checkRead(String file, Object context)
Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument.
void
SecurityManager.checkSecurityAccess(String target)
Determines whether the permission with the specified permission target name should be granted or denied.
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.
static Short
Short.decode(String nm)
Decodes a String into a Short.
static short
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.
static Short
Short.valueOf(String s)
Returns a Short object holding the value given 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.
StackWalker.Option.valueOf(String name)
int
String.compareTo(String anotherString)
Compares two strings lexicographically.
int
Compares two strings lexicographically, ignoring case differences.
String.concat(String str)
Concatenates the specified string to the end of this string.
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(Locale l, String format, Object... args)
Returns a formatted string using the specified locale, format string, and arguments.
static String
String.format(String format, Object... args)
Returns a formatted string using the specified format string and arguments.
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.
int
String.indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
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.
int
String.lastIndexOf(String str)
Returns the index within this string of the last occurrence of the specified substring.
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.
boolean
String.matches(String regex)
Tells whether or not this string matches the given regular expression.
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.
String.replaceAll(String regex, String replacement)
Replaces each substring of this string that matches the given regular expression with the given replacement.
String.replaceFirst(String regex, String replacement)
Replaces the first substring of this string that matches the given regular expression with the given replacement.
String.split(String regex)
Splits this string around matches of the given regular expression.
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.
StringBuffer.append(String str)
Appends the specified string to this character sequence.
int
StringBuffer.indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
int
StringBuffer.indexOf(String str, int fromIndex)
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
StringBuffer.insert(int offset, String str)
Inserts the string into this character sequence.
int
StringBuffer.lastIndexOf(String str)
Returns the index within this string of the last occurrence of the specified substring.
int
StringBuffer.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.
StringBuffer.replace(int start, int end, String str)
Replaces the characters in a substring of this sequence with characters in the specified String.
StringBuilder.append(String str)
Appends the specified string to this character sequence.
int
StringBuilder.indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
int
StringBuilder.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.insert(int offset, String str)
Inserts the string into this character sequence.
int
StringBuilder.lastIndexOf(String str)
Returns the index within this string of the last occurrence of the specified substring.
int
StringBuilder.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.
StringBuilder.replace(int start, int end, String str)
Replaces the characters in a substring of this sequence with characters in the specified String.
static String
System.clearProperty(String key)
Removes the system property indicated by the specified key.
static String
System.getenv(String name)
Gets the value of the specified environment variable.
System.getLogger(String name)
Returns an instance of Logger for the caller's use.
System.getLogger(String name, ResourceBundle bundle)
Returns a localizable instance of Logger for the caller's use.
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.
static void
System.load(String filename)
Loads the native library specified by the filename argument.
static void
System.loadLibrary(String libname)
Loads the native library specified by the libname argument.
static String
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library.
static String
System.setProperty(String key, String value)
Sets the system property indicated by the specified key.
void
System.Logger.log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params)
Logs a message with resource bundle and an optional list of parameters.
void
System.Logger.log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown)
Logs a localized message associated with a given throwable.
default void
System.Logger.log(System.Logger.Level level, String format, Object... params)
Logs a message with an optional list of parameters.
default void
System.Logger.log(System.Logger.Level level, String msg)
Logs a message.
default void
System.Logger.log(System.Logger.Level level, String msg, Throwable thrown)
Logs a message associated with a given throwable.
System.Logger.Level.valueOf(String name)
System.LoggerFinder.getLocalizedLogger(String name, ResourceBundle bundle, Module module)
Returns a localizable instance of Logger for the given module.
abstract System.Logger
System.LoggerFinder.getLogger(String name, Module module)
Returns an instance of Logger for the given module.
final void
Thread.setName(String name)
Changes the name of this thread to be equal to the argument name.
Thread.State.valueOf(String name)
Method parameters in java.lang with type arguments of type String
Creates a new module layer, with this layer as its parent, by defining the modules in the given Configuration to the Java virtual machine.
Creates a new module layer by defining the modules in the given Configuration to the Java virtual machine.
ProcessBuilder.command(List<String> command)
Sets this process builder's operating system program and arguments.
<RR
String.transform(Function<? super String,? extends R> f)
This method allows the application of a function to this string.
default void
System.Logger.log(System.Logger.Level level, Supplier<String> msgSupplier)
Logs a lazily supplied message.
default void
System.Logger.log(System.Logger.Level level, Supplier<String> msgSupplier, Throwable thrown)
Logs a lazily supplied message associated with a given throwable.
Constructors in java.lang with parameters of type String
public
Constructs an AbstractMethodError with the specified detail message.
public
Constructs an ArithmeticException with the specified detail message.
public
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.
public
Constructs an ArrayStoreException with the specified detail message.
public
Constructs a new AssertionError with the specified detail message and cause.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs a BootstrapMethodError with the specified detail message.
public
Constructs a BootstrapMethodError with the specified detail message and cause.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs a ClassCastException with the specified detail message.
public
Constructs a ClassCircularityError with the specified detail message.
public
Constructs a ClassFormatError with the specified detail message.
protected
Creates a new class loader of the specified name and using the specified parent class loader for delegation.
public
Constructs a ClassNotFoundException with the specified detail message.
public
Constructs a ClassNotFoundException with the specified detail message and optional exception that was raised while loading the class.
public
Constructs a CloneNotSupportedException with the specified detail message.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
protected
Enum(String name, int ordinal)
Sole constructor.
public
EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)
Constructs an EnumConstantNotPresentException for the specified constant.
public
Error(String message)
Constructs a new error with the specified detail message.
public
Error(String message, Throwable cause)
Constructs a new error with the specified detail message and cause.
protected
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.
public
Exception(String message)
Constructs a new exception with the specified detail message.
public
Exception(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.
protected
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.
public
Constructs an ExceptionInInitializerError with the specified detail message string.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs an IllegalAccessError with the specified detail message.
public
Constructs an IllegalAccessException with a detail message.
public
Constructs a new exception with the specified detail message and cause.
public
Constructs an IllegalArgumentException with the specified detail message.
public
Constructs a new exception with the specified detail message and cause.
public
Constructs an IllegalCallerException with the specified detail message.
public
Constructs an IllegalMonitorStateException with the specified detail message.
public
Constructs a new exception with the specified detail message and cause.
public
Constructs an IllegalStateException with the specified detail message.
public
Constructs an IllegalThreadStateException with the specified detail message.
public
Constructs an IncompatibleClassChangeError with the specified detail message.
public
Constructs an IndexOutOfBoundsException with the specified detail message.
public
Constructs an InstantiationError with the specified detail message.
public
Constructs an InstantiationException with the specified detail message.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs an InternalError with the specified detail message.
public
Constructs an InternalError with the specified detail message and cause.
public
Constructs an InterruptedException with the specified detail message.
public
Constructs a LayerInstantiationException with the given detail message.
public
Constructs a LayerInstantiationException with the given detail message and cause.
public
Constructs a LinkageError with the specified detail message.
public
Constructs a LinkageError with the specified detail message and cause.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs a NegativeArraySizeException with the specified detail message.
public
Constructs a NoClassDefFoundError with the specified detail message.
public
Constructs a NoSuchFieldError with the specified detail message.
public
Constructor with a detail message.
public
Constructs a NoSuchMethodError with the specified detail message.
public
Constructs a NoSuchMethodException with a detail message.
public
Constructs a NullPointerException with the specified detail message.
public
Constructs a NumberFormatException with the specified detail message.
public
Constructs an OutOfMemoryError with the specified detail message.
public
Constructs a process builder with the specified operating system program and arguments.
public
Constructs a new exception with the specified detail message.
public
Constructs a new exception with the specified detail message and cause.
public
Constructs a new runtime exception with the specified detail message.
public
Constructs a new runtime exception with the specified detail message and cause.
protected
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.
public
Creates a new RuntimePermission with the specified name.
public
Creates a new RuntimePermission object with the specified name.
public
Creates a SecurityException with the specified detail message and cause.
public
Constructs a SecurityException with the specified detail message.
public
Deprecated, for removal. It is rarely appropriate to use this constructor.
public
Constructs a StackOverflowError with the specified detail message.
public
StackTraceElement(String classLoaderName, String moduleName, String moduleVersion, String declaringClass, String methodName, String fileName, int lineNumber)
Creates a stack trace element representing the specified execution point.
public
StackTraceElement(String declaringClass, String methodName, String fileName, int lineNumber)
Creates a stack trace element representing the specified execution point.
public
String(byte[] bytes, int offset, int length, String charsetName)
Constructs a new String by decoding the specified subarray of bytes using the specified charset.
public
String(byte[] bytes, String charsetName)
Constructs a new String by decoding the specified array of bytes using the specified charset.
public
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.
public
Constructs a string buffer initialized to the contents of the specified string.
public
Constructs a string builder initialized to the contents of the specified string.
public
Constructs a StringIndexOutOfBoundsException with the specified detail message.
protected
Constructs a new Subset instance.
public
Thread(Runnable target, String name)
Allocates a new Thread object.
public
Allocates a new Thread object.
public
Thread(ThreadGroup group, Runnable target, String name)
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group.
public
Thread(ThreadGroup group, Runnable target, String name, long stackSize)
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group, and has the specified stack size.
public
Thread(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals)
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, belongs to the thread group referred to by group, has the specified stackSize, and inherits initial values for inheritable thread-local variables if inheritThreadLocals is true.
public
Allocates a new Thread object.
public
Constructs a new thread group.
public
Creates a new thread group.
public
Throwable(String message)
Constructs a new throwable with the specified detail message.
public
Throwable(String message, Throwable cause)
Constructs a new throwable with the specified detail message and cause.
protected
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.
public
Constructs a TypeNotPresentException for the named type with the specified cause.
public
Constructs an UnknownError with the specified detail message.
public
Constructs an UnsatisfiedLinkError with the specified detail message.
public
Constructs a UnsupportedClassVersionError with the specified detail message.
public
Constructs an UnsupportedOperationException with the specified detail message.
public
Constructs a new exception with the specified detail message and cause.
public
Constructs an VerifyError with the specified detail message.
public
Constructs a VirtualMachineError with the specified detail message.
public
Constructs a VirtualMachineError with the specified detail message and cause.
Constructor parameters in java.lang with type arguments of type String
Constructs a process builder with the specified operating system program and arguments.
Annotation elements in java.lang that return String
Deprecated.since
Returns the version in which the annotated element became deprecated.
SuppressWarnings.value
The set of warnings that are to be suppressed by the compiler in the annotated element.
Methods in java.lang.annotation that return String
Annotation.toString()
Returns a string representation of this annotation.
AnnotationTypeMismatchException.foundType()
Returns the type of data found in the incorrectly typed element.
IncompleteAnnotationException.elementName()
Returns the name of the missing element.
Methods in java.lang.annotation with parameters of type String
ElementType.valueOf(String name)
RetentionPolicy.valueOf(String name)
Constructors in java.lang.annotation with parameters of type String
Constructs a new AnnotationFormatError with the specified detail message.
Constructs a new AnnotationFormatError with the specified detail message and cause.
Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.
IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation interface.
Uses of String in java.util
Class declarations in java.util with type arguments of type String
class
Scanner extends Object implements Iterator<String>, Closeable
A simple text scanner which can parse primitive types and strings using regular expressions.
Fields in java.util with type arguments of type String
static final List<String>
ResourceBundle.Control.FORMAT_CLASS
The class-only format List containing "java.class".
static final List<String>
ResourceBundle.Control.FORMAT_DEFAULT
The default format List, which contains the strings "java.class" and "java.properties", in this order.
static final List<String>
ResourceBundle.Control.FORMAT_PROPERTIES
The properties-only format List containing "java.properties".
Methods in java.util that return String
AbstractCollection.toString()
Returns a string representation of this collection.
AbstractMap.toString()
Returns a string representation of this map.
AbstractMap.SimpleEntry.toString()
Returns a String representation of this map entry.
AbstractMap.SimpleImmutableEntry.toString()
Returns a String representation of this map entry.
static String
Arrays.deepToString(Object[] a)
Returns a string representation of the "deep contents" of the specified array.
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
Arrays.toString(Object[] a)
Returns a string representation of the contents of the specified array.
static String
Arrays.toString(short[] a)
Returns a string representation of the contents of the specified array.
Base64.Encoder.encodeToString(byte[] src)
Encodes the specified byte array into a String using the Base64 encoding scheme.
BitSet.toString()
Returns a string representation of this bit set.
Calendar.getCalendarType()
Returns the calendar type of this Calendar.
Calendar.getDisplayName(int field, int style, Locale locale)
Returns the string representation of the calendar field value in the given style and locale.
Calendar.toString()
Return a string representation of this calendar.
Currency.getCurrencyCode()
Gets the ISO 4217 currency code of this currency.
Currency.getDisplayName()
Gets the name that is suitable for displaying this currency for the default DISPLAY locale.
Currency.getDisplayName(Locale locale)
Gets the name that is suitable for displaying this currency for the specified locale.
Returns the 3 digit ISO 4217 numeric code of this currency as a String.
Currency.getSymbol()
Gets the symbol of this currency for the default DISPLAY locale.
Currency.getSymbol(Locale locale)
Gets the symbol of this currency for the specified locale.
Currency.toString()
Returns the ISO 4217 currency code of this currency.
Deprecated. As of JDK version 1.1, replaced by DateFormat.format(Date date), using a GMT TimeZone.
Deprecated. As of JDK version 1.1, replaced by DateFormat.format(Date date).
Date.toString()
Converts this Date object to a String of the form:
DoubleSummaryStatistics.toString()
Returns a non-empty string representation of this object suitable for debugging.
DuplicateFormatFlagsException.getFlags()
Returns the set of flags which contains a duplicate flag.
DuplicateFormatFlagsException.getMessage()
Returns the detail message string of this throwable.
EventObject.toString()
Returns a String representation of this EventObject.
FormatFlagsConversionMismatchException.getFlags()
Returns the incompatible flag.
FormatFlagsConversionMismatchException.getMessage()
Returns the detail message string of this throwable.
Formatter.toString()
Returns the result of invoking toString() on the destination for the output.
GregorianCalendar.getCalendarType()
Returns "gregory" as the calendar type.
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).
HexFormat.delimiter()
Returns the delimiter between hexadecimal values in formatted hexadecimal strings.
HexFormat.formatHex(byte[] bytes)
Returns a hexadecimal string formatted from a byte array.
HexFormat.formatHex(byte[] bytes, int fromIndex, int toIndex)
Returns a hexadecimal string formatted from a byte array range.
HexFormat.prefix()
Returns the prefix used for each hexadecimal value in formatted hexadecimal strings.
HexFormat.suffix()
Returns the suffix used for each hexadecimal value in formatted hexadecimal strings.
HexFormat.toHexDigits(byte value)
Returns the two hexadecimal characters for the byte value.
HexFormat.toHexDigits(char value)
Returns the four hexadecimal characters for the char value.
HexFormat.toHexDigits(int value)
Returns the eight hexadecimal characters for the int value.
HexFormat.toHexDigits(long value)
Returns the sixteen hexadecimal characters for the long value.
HexFormat.toHexDigits(long value, int digits)
Returns up to sixteen hexadecimal characters for the long value.
HexFormat.toHexDigits(short value)
Returns the four hexadecimal characters for the short value.
HexFormat.toString()
Returns a description of the formatter parameters for uppercase, delimiter, prefix, and suffix.
IllegalFormatCodePointException.getMessage()
Returns the detail message string of this throwable.
IllegalFormatConversionException.getMessage()
Returns the detail message string of this throwable.
IllegalFormatFlagsException.getFlags()
Returns the set of flags which contains an illegal combination.
IllegalFormatFlagsException.getMessage()
Returns the detail message string of this throwable.
IllegalFormatPrecisionException.getMessage()
Returns the detail message string of this throwable.
IllegalFormatWidthException.getMessage()
Returns the detail message string of this throwable.
IntSummaryStatistics.toString()
Returns a non-empty string representation of this object suitable for debugging.
Locale.getCountry()
Returns the country/region code for this locale, which should either be the empty string, an uppercase ISO 3166 2-letter code, or a UN M.49 3-digit code.
final String
Returns a name for the locale's country that is appropriate for display to the user.
Locale.getDisplayCountry(Locale inLocale)
Returns a name for the locale's country that is appropriate for display to the user.
final String
Returns a name for the locale's language that is appropriate for display to the user.
Locale.getDisplayLanguage(Locale inLocale)
Returns a name for the locale's language that is appropriate for display to the user.
final String
Returns a name for the locale that is appropriate for display to the user.
Locale.getDisplayName(Locale inLocale)
Returns a name for the locale that is appropriate for display to the user.
Returns a name for the locale's script that is appropriate for display to the user.
Locale.getDisplayScript(Locale inLocale)
Returns a name for the locale's script that is appropriate for display to the user.
final String
Returns a name for the locale's variant code that is appropriate for display to the user.
Locale.getDisplayVariant(Locale inLocale)
Returns a name for the locale's variant code that is appropriate for display to the user.
Locale.getExtension(char key)
Returns the extension (or private use) value associated with the specified key, or null if there is no extension associated with the key.
Returns a three-letter abbreviation for this locale's country.
Returns a three-letter abbreviation of this locale's language.
static String[]
Returns a list of all 2-letter country codes defined in ISO 3166.
static String[]
Returns a list of all 2-letter language codes defined in ISO 639.
Locale.getLanguage()
Returns the language code of this Locale.
Locale.getScript()
Returns the script for this locale, which should either be the empty string or an ISO 15924 4-letter script code.
Returns the Unicode locale type associated with the specified Unicode locale key for this locale.
Locale.getVariant()
Returns the variant code for this locale.
static String
Locale.lookupTag(List<Locale.LanguageRange> priorityList, Collection<String> tags)
Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.
Locale.toLanguageTag()
Returns a well-formed IETF BCP 47 language tag representing this locale.
final String
Locale.toString()
Returns a string representation of this Locale object, consisting of language, country, variant, script, and extensions as below: language + "_" + country + "_" + (variant + "_#" | "#") + script + "_" + extensions Language is always lower case, country is always upper case, script is always title case, and extensions are always lower case.
Locale.LanguageRange.getRange()
Returns the language range of this LanguageRange.
Locale.LanguageRange.toString()
Returns an informative string representation of this LanguageRange object, consisting of language range and weight if the range is weighted and the weight is less than the max weight.
LongSummaryStatistics.toString()
Returns a non-empty string representation of this object suitable for debugging.
MissingFormatArgumentException.getFormatSpecifier()
Returns the unmatched format specifier.
MissingFormatArgumentException.getMessage()
Returns the detail message string of this throwable.
MissingFormatWidthException.getFormatSpecifier()
Returns the format specifier which does not have a width.
MissingFormatWidthException.getMessage()
Returns the detail message string of this throwable.
MissingResourceException.getClassName()
Gets parameter passed by constructor.
MissingResourceException.getKey()
Gets parameter passed by constructor.
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.
Optional.toString()
Returns a non-empty string representation of this Optional suitable for debugging.
OptionalDouble.toString()
Returns a non-empty string representation of this OptionalDouble suitable for debugging.
OptionalInt.toString()
Returns a non-empty string representation of this OptionalInt suitable for debugging.
OptionalLong.toString()
Returns a non-empty string representation of this OptionalLong suitable for debugging.
Properties.getProperty(String key)
Searches for the property with the specified key in this property list.
Properties.getProperty(String key, String defaultValue)
Searches for the property with the specified key in this property list.
Properties.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).
PropertyPermission.getActions()
Returns the "canonical string representation" of the actions.
ResourceBundle.getBaseBundleName()
Returns the base name of this bundle, if known, or null if unknown.
final String
ResourceBundle.getString(String key)
Gets a string for the given key from this resource bundle or one of its parents.
final String[]
ResourceBundle.getStringArray(String key)
Gets a string array for the given key from this resource bundle or one of its parents.
ResourceBundle.Control.toBundleName(String baseName, Locale locale)
Converts the given baseName and locale to the bundle name.
final String
ResourceBundle.Control.toResourceName(String bundleName, String suffix)
Converts the given bundleName to the form required by the ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix.
Scanner.findInLine(Pattern pattern)
Attempts to find the next occurrence of the specified pattern ignoring delimiters.
Scanner.findInLine(String pattern)
Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.
Scanner.findWithinHorizon(Pattern pattern, int horizon)
Attempts to find the next occurrence of the specified pattern.
Scanner.findWithinHorizon(String pattern, int horizon)
Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.
Scanner.next()
Finds and returns the next complete token from this scanner.
Scanner.next(Pattern pattern)
Returns the next token if it matches the specified pattern.
Scanner.next(String pattern)
Returns the next token if it matches the pattern constructed from the specified string.
Scanner.nextLine()
Advances this scanner past the current line and returns the input that was skipped.
Scanner.toString()
Returns the string representation of this Scanner.
ServiceLoader.toString()
Returns a string describing this service.
SimpleTimeZone.toString()
Returns a string representation of this time zone.
StringJoiner.toString()
Returns the current value, consisting of the prefix, the values added so far separated by the delimiter, and the suffix, unless no elements have been added in which case, the prefix + suffix or the emptyValue characters are returned.
StringTokenizer.nextToken()
Returns the next token from this string tokenizer.
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string.
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.
final String
TimeZone.getDisplayName()
Returns a long standard time name of this TimeZone suitable for presentation to the user in the default locale.
final 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.
TimeZone.getDisplayName(boolean daylight, int style, Locale locale)
Returns a name in the specified style of this TimeZone suitable for presentation to the user in the specified locale.
final String
TimeZone.getDisplayName(Locale locale)
Returns a long standard time name of this TimeZone suitable for presentation to the user in the specified locale.
TimeZone.getID()
Gets the ID of this time zone.
UnknownFormatConversionException.getConversion()
Returns the unknown conversion.
UnknownFormatConversionException.getMessage()
Returns the detail message string of this throwable.
UnknownFormatFlagsException.getFlags()
Returns the set of flags which contains an unknown flag.
UnknownFormatFlagsException.getMessage()
Returns the detail message string of this throwable.
UUID.toString()
Returns a String object representing this UUID.
Vector.toString()
Returns a string representation of this Vector, containing the String representation of each element.
Methods in java.util that return types with arguments of type String
static Set<String>
Returns an unmodifiable Set containing all calendar types supported by Calendar in the runtime environment.
Calendar.getDisplayNames(int field, int style, Locale locale)
Returns a Map containing all names of the calendar field in the given style and locale and their corresponding field values.
ListResourceBundle.getKeys()
Returns an Enumeration of the keys contained in this ResourceBundle and its parent bundles.
protected Set<String>
ListResourceBundle.handleKeySet()
Returns a Set of the keys contained only in this ResourceBundle.
static List<String>
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
static List<String>
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
static Set<String>
Returns a Set of ISO3166 country codes for the specified type.
Returns the set of unicode locale attributes associated with this locale, or the empty set if it has no attributes.
Returns the set of Unicode locale keys defined by this locale, or the empty set if this locale has none.
Properties.stringPropertyNames()
Returns an unmodifiable set of keys from 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.
PropertyResourceBundle.getKeys()
Returns an Enumeration of the keys contained in this ResourceBundle and its parent bundles.
protected Set<String>
PropertyResourceBundle.handleKeySet()
Returns a Set of the keys contained only in this ResourceBundle.
ResourceBundle.getKeys()
Returns an enumeration of the keys.
protected Set<String>
ResourceBundle.handleKeySet()
Returns a Set of the keys contained only in this ResourceBundle.
ResourceBundle.keySet()
Returns a Set of all keys contained in this ResourceBundle and its parent bundles.
ResourceBundle.Control.getFormats(String baseName)
Returns a List of Strings containing formats to be used to load resource bundles for the given baseName.
Scanner.tokens()
Returns a stream of delimiter-separated tokens from this scanner.
Methods in java.util with parameters of type String
byte[]
Base64.Decoder.decode(String src)
Decodes a Base64 encoded String into a newly-allocated byte array using the Base64 encoding scheme.
Calendar.Builder.setCalendarType(String type)
Sets the calendar type parameter to the given type.
static Currency
Currency.getInstance(String currencyCode)
Returns the Currency instance for the given currency code.
static long
Date.parse(String s)
Deprecated. As of JDK version 1.1, replaced by DateFormat.parse(String s).
Formatter.format(Locale l, String format, Object... args)
Writes a formatted string to this object's destination using the specified locale, format string, and arguments.
Formatter.format(String format, Object... args)
Writes a formatted string to this object's destination using the specified format string and arguments.
Formatter.BigDecimalLayoutForm.valueOf(String name)
static HexFormat
HexFormat.ofDelimiter(String delimiter)
Returns a hexadecimal formatter with the delimiter and lowercase characters.
HexFormat.withDelimiter(String delimiter)
Returns a copy of this HexFormat with the delimiter.
HexFormat.withPrefix(String prefix)
Returns a copy of this HexFormat with the prefix.
HexFormat.withSuffix(String suffix)
Returns a copy of this HexFormat with the suffix.
final Object
ListResourceBundle.handleGetObject(String key)
Gets an object for the given key from this resource bundle.
static Locale
Locale.forLanguageTag(String languageTag)
Returns a locale for the specified IETF BCP 47 language tag string.
Returns the Unicode locale type associated with the specified Unicode locale key for this locale.
Locale.Builder.addUnicodeLocaleAttribute(String attribute)
Adds a unicode locale attribute, if not already present, otherwise has no effect.
Locale.Builder.removeUnicodeLocaleAttribute(String attribute)
Removes a unicode locale attribute, if present, otherwise has no effect.
Locale.Builder.setExtension(char key, String value)
Sets the extension for the given key.
Locale.Builder.setLanguage(String language)
Sets the language.
Locale.Builder.setLanguageTag(String languageTag)
Resets the Builder to match the provided IETF BCP 47 language tag.
Locale.Builder.setRegion(String region)
Sets the region.
Locale.Builder.setScript(String script)
Sets the script.
Locale.Builder.setUnicodeLocaleKeyword(String key, String type)
Sets the Unicode locale keyword type for the given key.
Locale.Builder.setVariant(String variant)
Sets the variant.
Locale.Category.valueOf(String name)
Locale.FilteringMode.valueOf(String name)
Locale.IsoCountryCode.valueOf(String name)
Locale.LanguageRange.parse(String ranges)
Parses the given ranges to generate a Language Priority List.
Locale.LanguageRange.parse(String ranges, Map<String,List<String>> map)
Parses the given ranges to generate a Language Priority List, and then customizes the list using the given map.
static <TT
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.
Properties.getProperty(String key)
Searches for the property with the specified key in this property list.
Properties.getProperty(String key, String defaultValue)
Searches for the property with the specified key in this property list.
void
Properties.save(OutputStream out, String comments)
Deprecated. This method does not throw an IOException if an I/O error occurs while saving the property list.
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.
void
Properties.storeToXML(OutputStream os, String comment)
Emits an XML document representing all of the properties contained in this table.
void
Properties.storeToXML(OutputStream os, String comment, Charset charset)
Emits an XML document representing all of the properties contained in this table, using the specified encoding.
void
Properties.storeToXML(OutputStream os, String comment, String encoding)
Emits an XML document representing all of the properties contained in this table, using the specified encoding.
PropertyResourceBundle.handleGetObject(String key)
Gets an object for the given key from this resource bundle.
boolean
ResourceBundle.containsKey(String key)
Determines whether the given key is contained in this ResourceBundle or its parent bundles.
static final ResourceBundle
ResourceBundle.getBundle(String baseName)
Gets a resource bundle using the specified base name, the default locale, and the caller module.
static final ResourceBundle
ResourceBundle.getBundle(String baseName, Locale locale)
Gets a resource bundle using the specified base name and locale, and the caller module.
ResourceBundle.getBundle(String baseName, Locale locale, ClassLoader loader)
Gets a resource bundle using the specified base name, locale, and class loader.
ResourceBundle.getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control)
Returns a resource bundle using the specified base name, target locale, class loader and control.
ResourceBundle.getBundle(String baseName, Locale targetLocale, Module module)
Gets a resource bundle using the specified base name and locale on behalf of the specified module.
static final ResourceBundle
ResourceBundle.getBundle(String baseName, Locale targetLocale, ResourceBundle.Control control)
Returns a resource bundle using the specified base name, target locale and control, and the caller's class loader.
ResourceBundle.getBundle(String baseName, Module module)
Gets a resource bundle using the specified base name and the default locale on behalf of the specified module.
static final ResourceBundle
ResourceBundle.getBundle(String baseName, ResourceBundle.Control control)
Returns a resource bundle using the specified base name, the default locale and the specified control.
final Object
ResourceBundle.getObject(String key)
Gets an object for the given key from this resource bundle or one of its parents.
final String
ResourceBundle.getString(String key)
Gets a string for the given key from this resource bundle or one of its parents.
final String[]
ResourceBundle.getStringArray(String key)
Gets a string array for the given key from this resource bundle or one of its parents.
protected abstract Object
ResourceBundle.handleGetObject(String key)
Gets an object for the given key from this resource bundle.
ResourceBundle.Control.getCandidateLocales(String baseName, Locale locale)
Returns a List of Locales as candidate locales for baseName and locale.
ResourceBundle.Control.getFallbackLocale(String baseName, Locale locale)
Returns a Locale to be used as a fallback locale for further resource bundle searches by the ResourceBundle.getBundle factory method.
ResourceBundle.Control.getFormats(String baseName)
Returns a List of Strings containing formats to be used to load resource bundles for the given baseName.
long
ResourceBundle.Control.getTimeToLive(String baseName, Locale locale)
Returns the time-to-live (TTL) value for resource bundles that are loaded under this ResourceBundle.Control.
boolean
ResourceBundle.Control.needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
Determines if the expired bundle in the cache needs to be reloaded based on the loading time given by loadTime or some other criteria.
ResourceBundle.Control.newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)
Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.
ResourceBundle.Control.toBundleName(String baseName, Locale locale)
Converts the given baseName and locale to the bundle name.
final String
ResourceBundle.Control.toResourceName(String bundleName, String suffix)
Converts the given bundleName to the form required by the ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix.
Scanner.findAll(String patString)
Returns a stream of match results that match the provided pattern string.
Scanner.findInLine(String pattern)
Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.
Scanner.findWithinHorizon(String pattern, int horizon)
Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.
boolean
Scanner.hasNext(String pattern)
Returns true if the next token matches the pattern constructed from the specified string.
Scanner.next(String pattern)
Returns the next token if it matches the pattern constructed from the specified string.
Scanner.skip(String pattern)
Skips input that matches a pattern constructed from the specified string.
Scanner.useDelimiter(String pattern)
Sets this scanner's delimiting pattern to a pattern constructed from the specified String.
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string.
static TimeZone
TimeZone.getTimeZone(String ID)
Gets the TimeZone for the given ID.
void
TimeZone.setID(String ID)
Sets the time zone ID.
static UUID
UUID.fromString(String name)
Creates a UUID from the string standard representation as described in the UUID.toString() method.
Method parameters in java.util with type arguments of type String
static List<String>
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
static List<String>
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
static String
Locale.lookupTag(List<Locale.LanguageRange> priorityList, Collection<String> tags)
Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.
Locale.LanguageRange.mapEquivalents(List<Locale.LanguageRange> priorityList, Map<String,List<String>> map)
Generates a new customized Language Priority List using the given priorityList and map.
Locale.LanguageRange.parse(String ranges, Map<String,List<String>> map)
Parses the given ranges to generate a Language Priority List, and then customizes the list using the given map.
static <TT
Objects.requireNonNull(T obj, Supplier<String> messageSupplier)
Checks that the specified object reference is not null and throws a customized NullPointerException if it is.
ResourceBundle.Control.getControl(List<String> formats)
Returns a ResourceBundle.Control in which the getFormats method returns the specified formats.
ResourceBundle.Control.getNoFallbackControl(List<String> formats)
Returns a ResourceBundle.Control in which the getFormats method returns the specified formats and the getFallbackLocale method returns null.
Constructors in java.util with parameters of type String
Constructs a ConcurrentModificationException with the specified detail message.
Constructs a new exception with the specified detail message and cause.
Deprecated. As of JDK version 1.1, replaced by DateFormat.parse(String s).
Constructs an instance of this class with the specified flags.
Constructs an instance of this class with the specified flag and conversion.
Formatter(File file, String csn)
Constructs a new formatter with the specified file and charset.
Formatter(File file, String csn, Locale l)
Constructs a new formatter with the specified file, charset, and locale.
Constructs a new formatter with the specified output stream and charset.
Constructs a new formatter with the specified output stream, charset, and locale.
Formatter(String fileName)
Constructs a new formatter with the specified file name.
Formatter(String fileName, Charset charset, Locale l)
Constructs a new formatter with the specified file name, charset, and locale.
Formatter(String fileName, String csn)
Constructs a new formatter with the specified file name and charset.
Formatter(String fileName, String csn, Locale l)
Constructs a new formatter with the specified file name, charset, and locale.
Constructs an instance of this class with the specified flags.
Constructs a new IllformedLocaleException with the given message and -1 as the error index.
IllformedLocaleException(String message, int errorIndex)
Constructs a new IllformedLocaleException with the given message and the error index.
Constructs an InputMismatchException, saving a reference to the error message string s for later retrieval by the getMessage method.
Constructs an InvalidPropertiesFormatException with the specified detail message.
Constructs a LanguageRange using the given range.
LanguageRange(String range, double weight)
Constructs a LanguageRange using the given range and weight.
Locale(String language)
Construct a locale from a language code.
Locale(String language, String country)
Construct a locale from language and country.
Locale(String language, String country, String variant)
Construct a locale from language, country and variant.
Constructs an instance of this class with the unmatched format specifier.
Constructs an instance of this class with the specified format specifier.
Constructs a MissingResourceException with the specified information.
Constructs a NoSuchElementException, saving a reference to the error message string s for later retrieval by the getMessage method.
Constructs a NoSuchElementException with the specified detail message and cause.
Creates a new PropertyPermission object with the specified name.
Scanner(File source, String charsetName)
Constructs a new Scanner that produces values scanned from the specified file.
Scanner(InputStream source, String charsetName)
Constructs a new Scanner that produces values scanned from the specified input stream.
Scanner(Path source, String charsetName)
Constructs a new Scanner that produces values scanned from the specified file.
Scanner(ReadableByteChannel source, String charsetName)
Constructs a new Scanner that produces values scanned from the specified channel.
Scanner(String source)
Constructs a new Scanner that produces values scanned from the specified string.
Constructs a new instance with the specified message.
Constructs a new instance with the specified message and cause.
SimpleTimeZone(int rawOffset, String ID)
Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.
SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.
SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime, int dstSavings)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.
SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int startTimeMode, int endMonth, int endDay, int endDayOfWeek, int endTime, int endTimeMode, int dstSavings)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.
Constructs a string tokenizer for the specified string.
Constructs a string tokenizer for the specified string.
StringTokenizer(String str, String delim, boolean returnDelims)
Constructs a string tokenizer for the specified string.
Creates a new timer whose associated thread has the specified name.
Timer(String name, boolean isDaemon)
Creates a new timer whose associated thread has the specified name, and may be specified to run as a daemon.
Constructs a TooManyListenersException with the specified detail message.
Constructs an instance of this class with the unknown conversion.
Constructs an instance of this class with the specified flags.
Methods in java.util.concurrent that return String
ArrayBlockingQueue.toString()
Returns a string representation of this collection.
CompletableFuture.toString()
Returns a string identifying this CompletableFuture, as well as its completion state.
ConcurrentHashMap.toString()
Returns a string representation of this map.
final String
ConcurrentHashMap.KeySetView.toString()
Returns a string representation of this collection.
ConcurrentLinkedDeque.toString()
Returns a string representation of this collection.
ConcurrentLinkedQueue.toString()
Returns a string representation of this collection.
CopyOnWriteArrayList.toString()
Returns a string representation of this list.
CountDownLatch.toString()
Returns a string identifying this latch, as well as its state.
ForkJoinPool.toString()
Returns a string identifying this pool, as well as its state, including indications of run state, parallelism level, and worker and task counts.
FutureTask.toString()
Returns a string representation of this FutureTask.
LinkedBlockingDeque.toString()
Returns a string representation of this collection.
LinkedBlockingQueue.toString()
Returns a string representation of this collection.
LinkedTransferQueue.toString()
Returns a string representation of this collection.
Phaser.toString()
Returns a string identifying this phaser, as well as its state.
PriorityBlockingQueue.toString()
Returns a string representation of this collection.
Semaphore.toString()
Returns a string identifying this semaphore, as well as its state.
SynchronousQueue.toString()
Always returns "[]".
ThreadPoolExecutor.toString()
Returns a string identifying this pool, as well as its state, including indications of run state and estimated worker and task counts.
Methods in java.util.concurrent with parameters of type String
static TimeUnit
TimeUnit.valueOf(String name)
Constructors in java.util.concurrent with parameters of type String
public
Constructs a BrokenBarrierException with the specified detail message.
public
Constructs a CancellationException with the specified detail message.
protected
Constructs a CompletionException with the specified detail message.
public
Constructs a CompletionException with the specified detail message and cause.
protected
Constructs an ExecutionException with the specified detail message.
public
Constructs an ExecutionException with the specified detail message and cause.
public
Constructs a RejectedExecutionException with the specified detail message.
public
Constructs a RejectedExecutionException with the specified detail message and cause.
public
Constructs a TimeoutException with the specified detail message.
Uses of String in javax.swing
Fields in javax.swing declared as String
static final String
JOptionPane.ICON_PROPERTY
Bound property name for icon.
static final String
Bound property name for initialSelectionValue.
static final String
Bound property name for initialValue.
static final String
Bound property name for inputValue.
static final String
JOptionPane.MESSAGE_PROPERTY
Bound property name for message.
static final String
Bound property name for type.
static final String
Bound property name for optionType.
static final String
JOptionPane.OPTIONS_PROPERTY
Bound property name for option.
static final String
Bound property name for selectionValues.
static final String
JOptionPane.VALUE_PROPERTY
Bound property name for value.
static final String
Bound property name for wantsInput.
Methods in javax.swing that return String
GroupLayout.toString()
Returns a string representation of this GroupLayout.
JOptionPane.getUIClassID()
Returns the name of the UI class that implements the L&F for this component.
protected String
JOptionPane.paramString()
Returns a string representation of this JOptionPane.
static String
JOptionPane.showInputDialog(Component parentComponent, Object message)
Shows a question-message dialog requesting input from the user parented to parentComponent.
static String
JOptionPane.showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)
Shows a question-message dialog requesting input from the user and parented to parentComponent.
static String
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType)
Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
static String
JOptionPane.showInputDialog(Object message)
Shows a question-message dialog requesting input from the user.
static String
JOptionPane.showInputDialog(Object message, Object initialSelectionValue)
Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue.
static String
JOptionPane.showInternalInputDialog(Component parentComponent, Object message)
Shows an internal question-message dialog requesting input from the user parented to parentComponent.
static String
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)
Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
Methods in javax.swing with parameters of type String
void
GroupLayout.addLayoutComponent(String name, Component component)
Notification that a Component has been added to the parent container.
GroupLayout.Alignment.valueOf(String name)
JOptionPane.createDialog(Component parentComponent, String title)
Creates and returns a new JDialog wrapping this centered on the parentComponent in the parentComponent's frame.
JOptionPane.createDialog(String title)
Creates and returns a new parentless JDialog with the specified title.
JOptionPane.createInternalFrame(Component parentComponent, String title)
Creates and returns an instance of JInternalFrame.
static int
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType)
Brings up a dialog where the number of choices is determined by the optionType parameter.
static int
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
Brings up a dialog where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display.
static int
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
Brings up a dialog with a specified icon, where the number of choices is determined by the optionType parameter.
static String
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType)
Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
static Object
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.
static int
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)
Brings up a internal dialog panel where the number of choices is determined by the optionType parameter.
static int
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display.
static int
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter.
static String
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)
Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
static Object
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.
static void
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)
Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter.
static void
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
Brings up an internal dialog panel displaying a message, specifying all parameters.
static int
JOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
static void
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType)
Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
static void
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
Brings up a dialog displaying a message, specifying all parameters.
static int
JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
Fields in javax.swing.text declared as String
The property name for the description of the stream used to initialize the document.
Document.TitleProperty
The property name for the title of the document, if there is one.
static final String
JTextComponent.DEFAULT_KEYMAP
The default keymap that will be shared by all JTextComponent instances unless they have had a different keymap set.
static final String
JTextComponent.FOCUS_ACCELERATOR_KEY
The bound property name for the focus accelerator.
JTextComponent.KeyBinding.actionName
The name of the action for the key.
Methods in javax.swing.text that return String
Document.getText(int offset, int length)
Fetches the text contained within the given portion of the document.
JTextComponent.getSelectedText()
Returns the selected text contained in this TextComponent.
JTextComponent.getText()
Returns the text contained in this TextComponent.
JTextComponent.getText(int offs, int len)
Fetches a portion of the text represented by the component.
JTextComponent.getToolTipText(MouseEvent event)
Returns the string to be used as the tooltip for event.
protected String
JTextComponent.paramString()
Returns a string representation of this JTextComponent.
JTextComponent.AccessibleJTextComponent.getAccessibleActionDescription(int i)
Returns a description of the specified action of the object.
JTextComponent.AccessibleJTextComponent.getAfterIndex(int part, int index)
Returns the String after a given index.
JTextComponent.AccessibleJTextComponent.getAtIndex(int part, int index)
Returns the String at a given index.
JTextComponent.AccessibleJTextComponent.getBeforeIndex(int part, int index)
Returns the String before a given index.
JTextComponent.AccessibleJTextComponent.getSelectedText()
Returns the portion of the text that is selected.
JTextComponent.AccessibleJTextComponent.getTextRange(int startIndex, int endIndex)
Returns the text string between two indices.
JTextComponent.DropLocation.toString()
Returns a string representation of this drop location.
Methods in javax.swing.text with parameters of type String
void
Document.insertString(int offset, String str, AttributeSet a)
Inserts a string of content.
static Keymap
JTextComponent.addKeymap(String nm, Keymap parent)
Adds a new keymap into the keymap hierarchy.
static Keymap
JTextComponent.getKeymap(String nm)
Fetches a named keymap previously added to the document.
static Keymap
JTextComponent.removeKeymap(String nm)
Removes a named keymap previously added to the document.
void
JTextComponent.replaceSelection(String content)
Replaces the currently selected content with new content represented by the given string.
void
JTextComponent.setText(String t)
Sets the text of this TextComponent to the specified text.
void
JTextComponent.AccessibleJTextComponent.insertTextAtIndex(int index, String s)
Inserts the specified string at the given index
void
JTextComponent.AccessibleJTextComponent.replaceText(int startIndex, int endIndex, String s)
Replaces the text between two indices with the specified string.
void
JTextComponent.AccessibleJTextComponent.setTextContents(String s)
Sets the text contents to the specified string.
Constructors in javax.swing.text with parameters of type String
KeyBinding(KeyStroke key, String actionName)
Creates a new key binding.
Fields in javax.swing.text.html declared as String
static final String
HTMLDocument.AdditionalComments
Document property key value.
Methods in javax.swing.text.html that return String
HTMLDocument.BlockElement.getName()
Gets the name of the element.
HTMLDocument.RunElement.getName()
Gets the name of the element.
Methods in javax.swing.text.html with parameters of type String
HTMLDocument.getElement(String id)
Returns the element that has the given id Attribute.
void
HTMLDocument.insertAfterEnd(Element elem, String htmlText)
Inserts the HTML specified as a string after the end of the given element.
void
HTMLDocument.insertAfterStart(Element elem, String htmlText)
Inserts the HTML specified as a string at the start of the element.
void
HTMLDocument.insertBeforeEnd(Element elem, String htmlText)
Inserts the HTML specified as a string at the end of the element.
void
HTMLDocument.insertBeforeStart(Element elem, String htmlText)
Inserts the HTML specified as a string before the start of the given element.
void
HTMLDocument.setInnerHTML(Element elem, String htmlText)
Replaces the children of the given element with the contents specified as an HTML string.
void
HTMLDocument.setOuterHTML(Element elem, String htmlText)
Replaces the given element in the parent with the contents specified as an HTML string.
void
HTMLDocument.HTMLReader.handleEndOfLineString(String eol)
This is invoked after the stream has been parsed, but before flush.
Fields in javax.swing.undo declared as String
protected static final String
AbstractUndoableEdit.RedoName
String returned by getRedoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.
protected static final String
AbstractUndoableEdit.UndoName
String returned by getUndoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.
protected static final String
StateEdit.RCSID
Obsolete RCS version identity.
protected String
StateEdit.undoRedoName
The undo/redo presentation name
StateEditable.RCSID
Resource ID for this class.
Methods in javax.swing.undo that return String
AbstractUndoableEdit.getPresentationName()
This default implementation returns "".
AbstractUndoableEdit.getRedoPresentationName()
Retreives the value from the defaults table with key AbstractUndoableEdit.redoText and returns that value followed by a space, followed by getPresentationName.
AbstractUndoableEdit.getUndoPresentationName()
Retreives the value from the defaults table with key AbstractUndoableEdit.undoText and returns that value followed by a space, followed by getPresentationName.
AbstractUndoableEdit.toString()
Returns a string that displays and identifies this object's properties.
CompoundEdit.getPresentationName()
Returns getPresentationName from the last UndoableEdit added to edits.
Returns getRedoPresentationName from the last UndoableEdit added to edits.
Returns getUndoPresentationName from the last UndoableEdit added to edits.
CompoundEdit.toString()
Returns a string that displays and identifies this object's properties.
Gets the presentation name for this edit
UndoableEdit.getPresentationName()
Returns a localized, human-readable description of this edit, suitable for use in a change log, for example.
Returns a localized, human-readable description of the redoable form of this edit, suitable for use as a Redo menu item, for example.
Returns a localized, human-readable description of the undoable form of this edit, suitable for use as an Undo menu item, for example.
UndoableEditSupport.toString()
Returns a string that displays and identifies this object's properties.
Returns a description of the redoable form of this edit.
Convenience method that returns either getUndoPresentationName or getRedoPresentationName.
Returns a description of the undoable form of this edit.
UndoManager.toString()
Returns a string that displays and identifies this object's properties.
Methods in javax.swing.undo with parameters of type String
protected void
StateEdit.init(StateEditable anObject, String name)
Initialize the state edit.
Constructors in javax.swing.undo with parameters of type String
Create and return a new StateEdit with a presentation name.
Methods in javax.xml.catalog that return String
Catalog.matchPublic(String publicId)
Attempts to find a matching entry in the catalog by publicId.
Catalog.matchSystem(String systemId)
Attempts to find a matching entry in the catalog by systemId.
Catalog.matchURI(String uri)
Attempts to find a matching entry in the catalog by the uri element.
CatalogFeatures.get(CatalogFeatures.Feature cf)
Returns the value of the specified feature.
CatalogFeatures.Feature.defaultValue()
Returns the default value of the property.
CatalogFeatures.Feature.getPropertyName()
Returns the name of the corresponding System Property.
Methods in javax.xml.catalog with parameters of type String
Catalog.matchPublic(String publicId)
Attempts to find a matching entry in the catalog by publicId.
Catalog.matchSystem(String systemId)
Attempts to find a matching entry in the catalog by systemId.
Catalog.matchURI(String uri)
Attempts to find a matching entry in the catalog by the uri element.
CatalogFeatures.Builder.with(CatalogFeatures.Feature feature, String value)
Sets the value to a specified Feature.
CatalogFeatures.Feature.valueOf(String name)
CatalogResolver.resolve(String href, String base)
Implements URIResolver.
CatalogResolver.resolveEntity(String publicId, String systemId)
Implements EntityResolver.
CatalogResolver.resolveEntity(String publicId, String systemId, String baseUri, String namespace)
Implements XMLResolver.
CatalogResolver.resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri)
Implements LSResourceResolver.
Constructors in javax.xml.catalog with parameters of type String
Constructs a new CatalogException with the specified detail message.
Constructs a new CatalogException with the specified detail message and cause.
Methods in jdk.javadoc.doclet that return String
Doclet.getName()
Returns a name identifying the doclet.
Doclet.Option.getDescription()
Returns the description of the option.
Doclet.Option.getParameters()
Returns the parameters of the option.
StandardDoclet.getName()
Returns a name identifying the doclet.
Taglet.getName()
Returns the name of the tag supported by this taglet.
Taglet.toString(List<? extends DocTree> tags, Element element)
Returns the string representation of a series of instances of this tag to be included in the generated output.
Methods in jdk.javadoc.doclet that return types with arguments of type String
Doclet.Option.getNames()
Returns the list of names that may be used to identify the option.
Methods in jdk.javadoc.doclet with parameters of type String
boolean
Doclet.Option.process(String option, List<String> arguments)
Processes the option and arguments as needed.
Doclet.Option.Kind.valueOf(String name)
DocletEnvironment.ModuleMode.valueOf(String name)
void
Reporter.print(Diagnostic.Kind kind, DocTreePath path, String message)
Prints a diagnostic message related to a tree node in a documentation comment.
void
Reporter.print(Diagnostic.Kind kind, Element element, String message)
Prints a diagnostic message related to an element.
default void
Reporter.print(Diagnostic.Kind kind, FileObject file, int start, int pos, int end, String message)
Prints a diagnostic message related to a position within a range of characters in a file.
void
Reporter.print(Diagnostic.Kind kind, String message)
Prints a diagnostic message.
Taglet.Location.valueOf(String name)
Method parameters in jdk.javadoc.doclet with type arguments of type String
boolean
Doclet.Option.process(String option, List<String> arguments)
Processes the option and arguments as needed.

 Use 
PREV   NEXT      All Classes   All Packages
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz