Uses of Class
java.lang.String
Package
Description
This package comprises the interfaces and classes used to define the
signing mechanism used by the
jarsigner
tool.Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
This is the core package of the Java Debug
Interface (JDI), it defines mirrors for values, types, and the target
VirtualMachine itself - as well bootstrapping facilities.
This package defines connections between the virtual machine
using the JDI and the target virtual machine.
This package comprises the interfaces and classes used to
develop new
TransportService
implementations.This package defines JDI events and event processing.
This package is used to request that a JDI
event be sent under specified conditions.
This package contains the JDK's extension to
the standard implementation of the
java.lang.management
API and also defines the management
interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
A Java API for Stream Control Transport Protocol.
Provides implementations of
Principal
.Provides an implementation of
Configuration
.Provides implementations of
LoginModule
.This package defines classes and interfaces for the JDK extensions
to the GSS-API.
Provides interfaces to represent documentation comments as abstract syntax
trees (AST).
Provides interfaces to represent source code as abstract syntax
trees (AST).
Provides utilities for operations on abstract syntax trees (AST).
Provides the API to attach to a Java virtual machine.
Only developers who are defining new attach providers should need to make
direct use of this package.
This package provides a legacy entry point for the javac tool.
This package contains the JConsole API.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for color spaces.
Provides interfaces and classes for transferring data between and within
applications.
Provides interfaces and classes for interaction with various desktop
capabilities.
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes and interface relating to fonts.
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides interfaces that enable the development of input methods that can be
used with any Java runtime environment.
Provides classes for creating and modifying images.
Provides classes and interfaces for producing rendering-independent images.
Provides classes and interfaces for a general printing API.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
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.
Classes and interfaces to represent nominal descriptors for run-time
entities such as classes or method handles, and classfile entities such as
constant pool entries or
invokedynamic
call sites.Provides services that allow Java programming language agents to instrument
programs running on the JVM.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
Provides classes and interfaces for obtaining reflective information about
classes and objects.
The
java.lang.runtime
package provides low-level runtime support
for the Java language.Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger
) and arbitrary-precision decimal
arithmetic (BigDecimal
).Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
Service-provider classes for the
java.nio.charset
package.Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Service-provider classes for the
java.nio.file
package.Provides the RMI package.
Provides classes and interface for RMI distributed
garbage-collection (DGC).
Provides a class and two interfaces for the RMI registry.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
Support for time-zones and their rules.
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.
A small toolkit of classes that support lock-free thread-safe
programming on single variables.
Interfaces and classes providing a framework for locking and waiting
for conditions that is distinct from built-in synchronization and
monitors.
Provides classes for reading and writing the JAR (Java ARchive)
file format, which is based on the standard ZIP file format with an
optional manifest file.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
This package allows applications to store and retrieve user and system
preference and configuration data.
This package contains classes and interfaces that support a generic API
for random number generation.
Classes for matching character sequences against patterns specified
by regular expressions.
Service provider classes for the classes in the java.util package.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
Provides the classes and interfaces for cryptographic
operations.
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with synchronous notification of
events during the reading and writing of images.
A package of the Java Image I/O API dealing with reading and writing
metadata.
Classes supporting the built-in JPEG plug-in.
Public classes used by the built-in TIFF plug-ins.
A package of the Java Image I/O API containing the plug-in interfaces for
readers, writers, transcoders, and streams, and a runtime registry.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java
programming language.
Interfaces used to model elements of the Java programming language.
Interfaces used to model Java programming language types.
Utilities to assist in the processing of
program elements and
types.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamic
loading.
Provides the definition of the ModelMBean classes.
Provides the definition of the monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access to
JMX MBean servers.
The RMI connector is a connector for the JMX Remote API that
uses RMI to transmit client requests to a remote MBean server.
Provides the definition of the Timer MBean.
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming
package to provide functionality
for accessing directory services.Provides support for event notification when accessing naming and
directory services.
Provides support for LDAPv3 extended operations and controls.
Provides the means for dynamically plugging in support for accessing
naming and directory services through the
javax.naming
and related packages.Provides classes for networking applications.
Provides classes for the secure socket package.
Provides the principal classes and interfaces for the Java Print
Service API.
Provides classes and interfaces that describe the types of Java Print
Service attributes and how they can be collected into attribute sets.
Package
javax.print.attribute.standard
contains classes for specific
printing attributes.Package
javax.print.event
contains event classes and listener
interfaces.Provides implementations of
RMIClientSocketFactory
and RMIServerSocketFactory
over
the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.The scripting API consists of interfaces and classes that define
Java Scripting Engines and provides
a framework for their use in Java applications.
This package provides a framework for authentication and
authorization.
This package provides the classes necessary for services
to interact with applications in order to retrieve
information (authentication data including usernames
or passwords, for example) or to display information
(error and warning messages, for example).
This package contains utility classes related to the Kerberos network
authentication protocol.
This package provides a pluggable authentication framework.
This package provides the interface to be used for
implementing pluggable authentication modules.
This package contains the classes that should be used to store
X500 Principal and X500 Private Credentials in a
Subject.
Provides classes for public key certificates.
Contains class and interfaces for supporting SASL.
Java™ Smart Card I/O API.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Provides the API for server side data source access and processing from
the Java programming language.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Contains classes and interfaces used by the
JColorChooser
component.Provides for events fired by Swing components.
Contains classes and interfaces used by the
JFileChooser
component.Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides the default HTML parser, along with support classes.
Provides a class (
RTFEditorKit
) for creating Rich-Text-Format text
editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.Allows developers to provide support for undo/redo in applications such as
text editors.
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
Provides the API that defines the contract between the transaction manager
and the resource manager, which allows the transaction manager to enlist
and delist resource objects (supplied by the resource manager driver) in
JTA transactions.
Defines constants for XML processing.
Provides the classes for implementing
XML Catalogs OASIS Standard V1.1, 7 October 2005.
Common classes for XML cryptography.
DOM-specific classes for the
javax.xml.crypto
package.Classes for generating and validating XML digital
signatures.
Classes for parsing and processing
KeyInfo
elements and structures.Parameter classes for XML digital signatures.
Defines XML/Java Type Mappings.
Defines XML Namespace processing.
Provides the classes for processing XML documents with a SAX (Simple API for XML)
parser or a DOM (Document Object Model) Document builder.
Defines interfaces and classes for the Streaming API for XML (StAX).
Defines event interfaces for the Streaming API for XML (StAX).
Provides utility classes for the Streaming API for XML (StAX).
Defines the generic APIs for processing transformation instructions,
and performing a transformation from source to result.
Provides DOM specific transformation classes.
Provides SAX specific transformation classes.
Provides StAX specific transformation classes.
Provides stream and URI specific transformation classes.
Provides an API for validation of XML documents.
Provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment.
Contains interfaces and classes that are used to link an
invokedynamic
call site.Contains the linker for ordinary Java objects.
Contains interfaces and classes needed by language runtimes to implement
their own language-specific object models and type conversions.
Contains classes that make it more convenient for language runtimes to
implement their own language-specific object models and type conversions
by providing basic implementations of some classes as well as various
utilities.
Classes to support low-level and efficient foreign memory/function access, directly from Java.
Incubating Feature. Will be removed in a future release.
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.
This package provides classes to create events and control Flight Recorder.
This package contains classes for consuming Flight Recorder data.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
Provides implementation support for building JShell execution engines.
Defines the Service Provider Interface for pluggable JShell execution engines.
Provides a mechanism to launch an instance of a Java shell tool.
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.This package defines APIs for signing jar files.
Provides Java code the ability to access the JavaScript engine and the
HTML DOM in the web browser.
This package presents a framework that allows application developers to
make use of security services like authentication, data integrity and
data confidentiality from a variety of underlying security mechanisms
like Kerberos, using a unified API.
Provides the interfaces for the Document Object Model (DOM).
Provides a factory for obtaining instances of
DOMImplementation
.Provides interfaces for DOM Level 2 Style Specification.
Provides interfaces for DOM Level 2 Events.
Provides interfaces for DOM Level 2 HTML Specification.
Provides interfaces for DOM Level 3 Load and Save.
Provides interfaces for DOM Level 2 Range.
Provides interfaces for DOM Level 2 Style Specification.
Provides interfaces for DOM Level 3 XPath Specification.
Provides the interfaces for the Simple API for XML (SAX).
Provides interfaces to SAX2 facilities that
conformant SAX drivers won't necessarily support.
Provides helper classes, including
support for bootstrapping SAX-based applications.
-
Uses of String in com.sun.jarsigner
Modifier and TypeMethodDescriptionString[]
ContentSignerParameters.getCommandLine()
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the command-line arguments passed to the jarsigner tool.ContentSignerParameters.getSignatureAlgorithm()
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the name of the signature algorithm.default String
ContentSignerParameters.getTSADigestAlg()
Deprecated, for removal: This API element is subject to removal in a future version.Retreives the message digest algorithm that is used to generate the message imprint to be sent to the TSA server.default String
ContentSignerParameters.getTSAPolicyID()
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the TSAPolicyID for a Timestamping Authority (TSA). -
Uses of String in com.sun.java.accessibility.util
Modifier and TypeMethodDescriptionTranslator.getAccessibleDescription()
Get the accessible description of this object.Translator.getAccessibleName()
Get the accessible name of this object.AccessibilityListenerList.toString()
Return a string representation of theAccessibilityListenerList
.Modifier and TypeMethodDescriptionvoid
Translator.setAccessibleDescription
(String s) Set the accessible description of this object.void
Translator.setAccessibleName
(String s) Set the name of this object. -
Uses of String in com.sun.jdi
Modifier and TypeMethodDescriptionPathSearchingVirtualMachine.baseDirectory()
Get the base directory used for path searching.ClassNotLoadedException.className()
ArrayType.componentSignature()
Gets the JNI signature of the components of this array class.ArrayType.componentTypeName()
Returns a text representation of the component type of this array.ReferenceType.defaultStratum()
Returns the default stratum for this reference type.VirtualMachine.description()
Returns text information on the target VM and the debugger support that mirrors it.LocalVariable.genericSignature()
Gets the generic signature for this variable if there is one.ReferenceType.genericSignature()
Gets the generic signature for this type if there is one.TypeComponent.genericSignature()
Gets the generic signature for this TypeComponent if there is one.VirtualMachine.getDefaultStratum()
Return this VM's default stratum.LocalVariable.name()
Gets the name of the local variable.ModuleReference.name()
Returns the module name.ReferenceType.name()
Returns the name of thisReferenceType
object.ThreadGroupReference.name()
Returns the name of this thread group.ThreadReference.name()
Returns the name of this thread.Type.name()
Returns the name of this type.TypeComponent.name()
Gets the name of this type component.VirtualMachine.name()
Returns the name of the target VM as reported by the propertyjava.vm.name
.Method.returnTypeName()
Returns a text representation of the return type, as specified in the declaration of this method.LocalVariable.signature()
Gets the type signature of the local variable.Type.signature()
Returns the type signature for this type.TypeComponent.signature()
Gets the type signature for this type component.ReferenceType.sourceDebugExtension()
Get the source debug extension of this type.Location.sourceName()
Gets an identifing name for the source corresponding to this location.Location.sourceName
(String stratum) Gets an identifing name for the source corresponding to this location.ReferenceType.sourceName()
Gets an identifying name for the source corresponding to the declaration of this type.Location.sourcePath()
Gets the path to the source corresponding to this location.Location.sourcePath
(String stratum) Gets the path to the source corresponding to this location.Mirror.toString()
Returns a String describing this mirrorField.typeName()
Returns a text representation of the type of this field.LocalVariable.typeName()
Returns a text representation of the type of this variable.StringReference.value()
Returns the StringReference as a String.VirtualMachine.version()
Returns the version of the Java Runtime Environment in the target VM as reported by the propertyjava.version
.Modifier and TypeMethodDescriptionMethod.argumentTypeNames()
Returns a list containing a text representation of the type of each formal parameter of this method.ReferenceType.availableStrata()
Return the available strata for this reference type.PathSearchingVirtualMachine.bootClassPath()
Get the boot class path for this virtual machine.PathSearchingVirtualMachine.classPath()
Get the class path for this virtual machine.ReferenceType.sourceNames
(String stratum) Gets the identifying names for all the source corresponding to the declaration of this type.ReferenceType.sourcePaths
(String stratum) Gets the paths to the source corresponding to the declaration of this type.Modifier and TypeMethodDescriptionMethod.allLineLocations
(String stratum, String sourceName) Returns a list containing aLocation
object for each executable source line in this method.ReferenceType.allLineLocations
(String stratum, String sourceName) Returns a list containing aLocation
object for each executable source line in this reference type.VirtualMachine.classesByName
(String className) Returns the loaded reference types that match a given name.ClassType.concreteMethodByName
(String name, String signature) Returns a the single non-abstractMethod
visible from this class that has the given name and signature.ReferenceType.fieldByName
(String fieldName) Finds the visibleField
with the given non-ambiguous name.int
Location.lineNumber
(String stratum) The line number of this Location.Method.locationsOfLine
(String stratum, String sourceName, int lineNumber) Returns a List containing allLocation
objects that map to the given line number and source name.ReferenceType.locationsOfLine
(String stratum, String sourceName, int lineNumber) Returns a List containing allLocation
objects that map to the given line number.ReferenceType.methodsByName
(String name) Returns a List containing each visibleMethod
that has the given name.ReferenceType.methodsByName
(String name, String signature) Returns a List containing each visibleMethod
that has the given name and signature.Creates a string in this virtual machine.void
VirtualMachine.setDefaultStratum
(String stratum) Set this VM's default stratum (seeLocation
for a discussion of strata).Location.sourceName
(String stratum) Gets an identifing name for the source corresponding to this location.ReferenceType.sourceNames
(String stratum) Gets the identifying names for all the source corresponding to the declaration of this type.Location.sourcePath
(String stratum) Gets the path to the source corresponding to this location.ReferenceType.sourcePaths
(String stratum) Gets the paths to the source corresponding to the declaration of this type.Method.variablesByName
(String name) Returns a list containing eachLocalVariable
of a given name in this method.StackFrame.visibleVariableByName
(String name) Finds aLocalVariable
that matches the given name and is visible at the current frame location.ModifierConstructorDescriptionClassNotLoadedException
(String className) ClassNotLoadedException
(String className, String message) InternalException
(String s, int errorCode) Deprecated.Deprecated.Constructs anInvalidModuleException
with the given detail message.JDIPermission
(String name) TheJDIPermission
class represents access rights to theVirtualMachineManager
JDIPermission
(String name, String actions) Constructs a new JDIPermission object.NativeMethodException
(String message) VMDisconnectedException
(String message) -
Uses of String in com.sun.jdi.connect
Modifier and TypeMethodDescriptionConnector.Argument.description()
Returns a human-readable description of this argument and its purpose.Connector.description()
Returns a human-readable description of this connector and its purpose.Connector.Argument.label()
Returns a short human-readable label for this argument.Connector.Argument.name()
Returns a short, unique identifier for the argument.Connector.name()
Returns a short identifier for the connector.Transport.name()
Returns a short identifier for the transport.ListeningConnector.startListening
(Map<String, ? extends Connector.Argument> arguments) Listens for one or more connections initiated by target VMs.Connector.BooleanArgument.stringValueOf
(boolean value) Return the string representation of thevalue
parameter.Connector.IntegerArgument.stringValueOf
(int value) Return the string representation of thevalue
parameter.Connector.Argument.value()
Returns the current value of the argument.Modifier and TypeMethodDescriptionIllegalConnectorArgumentsException.argumentNames()
Return aList
containing the names of the invalid or inconsistent arguments.Connector.SelectedArgument.choices()
Return the possible values for the argumentConnector.defaultArguments()
Returns the arguments accepted by this Connector and their default values.Modifier and TypeMethodDescriptionboolean
Performs basic sanity check of argument.boolean
Performs basic sanity check of argument.boolean
Performs basic sanity check of argument.boolean
Performs basic sanity check of argument.boolean
Performs basic sanity check of argument.void
Sets the value of the argument.Modifier and TypeMethodDescriptionListeningConnector.accept
(Map<String, ? extends Connector.Argument> arguments) Waits for a target VM to attach to this connector.AttachingConnector.attach
(Map<String, ? extends Connector.Argument> arguments) Attaches to a running application and returns a mirror of its VM.LaunchingConnector.launch
(Map<String, ? extends Connector.Argument> arguments) Launches an application and connects to its VM.ListeningConnector.startListening
(Map<String, ? extends Connector.Argument> arguments) Listens for one or more connections initiated by target VMs.void
ListeningConnector.stopListening
(Map<String, ? extends Connector.Argument> arguments) Cancels listening for connections.ModifierConstructorDescriptionConstruct anIllegalConnectorArgumentsException
with the specified detail message and the name of the argument which is invalid or inconsistent.IllegalConnectorArgumentsException
(String s, List<String> names) Construct anIllegalConnectorArgumentsException
with the specified detail message and aList
of names of arguments which are invalid or inconsistent.TransportTimeoutException
(String message) Constructs aTransportTimeoutException
with the specified detail message.VMStartException
(String message, Process process) ModifierConstructorDescriptionIllegalConnectorArgumentsException
(String s, List<String> names) Construct anIllegalConnectorArgumentsException
with the specified detail message and aList
of names of arguments which are invalid or inconsistent. -
Uses of String in com.sun.jdi.connect.spi
Modifier and TypeMethodDescriptionabstract String
TransportService.ListenKey.address()
Returns a string representation of the listen key.abstract String
TransportService.description()
Returns a description of the transport service.abstract String
TransportService.name()
Returns a name to identify the transport service.Modifier and TypeMethodDescriptionabstract Connection
Attaches to the specified address.abstract TransportService.ListenKey
TransportService.startListening
(String address) Listens on the specified address for inbound connections.ModifierConstructorDescriptionClosedConnectionException
(String message) Constructs aClosedConnectionException
with the specified detail message. -
Uses of String in com.sun.jdi.event
Modifier and TypeMethodDescriptionClassUnloadEvent.className()
Returns the name of the class that has been unloaded.ClassUnloadEvent.classSignature()
Returns the type signature of the class that has been unloaded. -
Uses of String in com.sun.jdi.request
Modifier and TypeMethodDescriptionvoid
ClassPrepareRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to the preparation of reference types whose name does not match this restricted regular expression.void
ClassUnloadRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to the unloading of reference types whose name does not match a restricted regular expression.void
ExceptionRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name does not match a restricted regular expression.void
MethodEntryRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name does not match this restricted regular expression, e.g.void
MethodExitRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name does not match this restricted regular expression.void
MonitorContendedEnteredRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name does not match this restricted regular expression, e.g.void
MonitorContendedEnterRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name does not match this restricted regular expression, e.g.void
MonitorWaitedRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those in which the name of the class of the monitor object does notmatch this restricted regular expression, e.g.void
MonitorWaitRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those in which the name of the class of the monitor object does notmatch this restricted regular expression, e.g.void
StepRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name does not match a restricted regular expression.void
WatchpointRequest.addClassExclusionFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name does not match this restricted regular expression.void
ClassPrepareRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to the preparation of reference types whose name matches this restricted regular expression.void
ClassUnloadRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to the unloading of reference types whose name matches a restricted regular expression.void
ExceptionRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name matches a restricted regular expression.void
MethodEntryRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name matches this restricted regular expression.void
MethodExitRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name matches a restricted regular expression.void
MonitorContendedEnteredRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name matches this restricted regular expression.void
MonitorContendedEnterRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose method is in a class whose name matches this restricted regular expression.void
MonitorWaitedRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those in which the name of the class of the monitor object matches this restricted regular expression.void
MonitorWaitRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those in which the name of the class of the monitor object matches this restricted regular expression.void
StepRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name matches a restricted regular expression.void
WatchpointRequest.addClassFilter
(String classPattern) Restricts the events generated by this request to those whose location is in a class whose name matches a restricted regular expression.void
ClassPrepareRequest.addSourceNameFilter
(String sourceNamePattern) Restricts the events generated by this request to the preparation of reference types for which the restricted regular expression 'sourceNamePattern' matches one of the 'sourceNames' for the reference type being prepared.ModifierConstructorDescription -
Uses of String in com.sun.management
Modifier and TypeFieldDescriptionstatic final String
GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION
Notification type denoting that the Java virtual machine has completed a garbage collection cycle.Modifier and TypeMethodDescriptionGarbageCollectionNotificationInfo.getGcAction()
Returns the action performed by the garbage collectorGarbageCollectionNotificationInfo.getGcCause()
Returns the cause of the garbage collectionGarbageCollectionNotificationInfo.getGcName()
Returns the name of the garbage collector used to perform the collectionVMOption.getName()
Returns the name of this VM option.VMOption.getValue()
Returns the value of this VM option at the time when thisVMOption
was created.GcInfo.toString()
Modifier and TypeMethodDescriptionGcInfo.getMemoryUsageAfterGc()
Returns the memory usage of all memory pools at the end of this GC.GcInfo.getMemoryUsageBeforeGc()
Returns the memory usage of all memory pools at the beginning of this GC.Modifier and TypeMethodDescriptionboolean
GcInfo.containsKey
(String key) void
Dumps the heap to theoutputFile
file in the same format as the hprof heap dump.Object[]
HotSpotDiagnosticMXBean.getVMOption
(String name) Returns aVMOption
object for a VM option of the given name.void
HotSpotDiagnosticMXBean.setVMOption
(String name, String value) Sets a VM option of the given name to the specified value.static VMOption.Origin
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionGarbageCollectionNotificationInfo
(String gcName, String gcAction, String gcCause, GcInfo gcInfo) Constructs aGarbageCollectionNotificationInfo
object.VMOption
(String name, String value, boolean writeable, VMOption.Origin origin) Constructs aVMOption
. -
Uses of String in com.sun.net.httpserver
Modifier and TypeFieldDescriptionprotected final String
BasicAuthenticator.realm
The HTTP Basic authentication realm.Modifier and TypeMethodDescriptionabstract String
Filter.description()
Returns a short description of thisFilter
.String[]
HttpsParameters.getCipherSuites()
Returns a copy of the array of ciphersuites ornull
if none have been set.Returns the first value from theList
ofString
values for the given key (if at least one exists).HttpPrincipal.getName()
Returns the contents of this principal in the form realm:username.abstract String
HttpContext.getPath()
Returns the path this context was created with.abstract String
HttpExchange.getProtocol()
Returns the protocol string from the request in the form protocol/majorVersion.minorVersion.String[]
HttpsParameters.getProtocols()
Returns a copy of the array of protocols ornull
if none have been set.BasicAuthenticator.getRealm()
Returns the realm thisBasicAuthenticator
was created with.HttpPrincipal.getRealm()
Returns therealm
this object was created with.abstract String
HttpExchange.getRequestMethod()
Get the request method.HttpPrincipal.getUsername()
Returns theusername
this object was created with.HttpPrincipal.toString()
Returns the same string asHttpPrincipal.getName()
.Modifier and TypeMethodDescriptionHeaders.entrySet()
Headers.entrySet()
HttpContext.getAttributes()
Headers.keySet()
Headers.values()
Modifier and TypeMethodDescriptionvoid
Adds the given value to the list of headers for the given key.static Filter
Filter.afterHandler
(String description, Consumer<HttpExchange> operation) Returns a post-processingFilter
with the given description and operation.static Filter
Filter.beforeHandler
(String description, Consumer<HttpExchange> operation) Returns a pre-processingFilter
with the given description and operation.abstract boolean
BasicAuthenticator.checkCredentials
(String username, String password) Called for each incoming request to verify the given name and password in the context of this authenticator's realm.abstract HttpContext
HttpServer.createContext
(String path) Creates a HttpContext without initially specifying a handler.abstract HttpContext
HttpServer.createContext
(String path, HttpHandler handler) Creates aHttpContext
.abstract Object
HttpExchange.getAttribute
(String name) Filter
modules may store arbitrary objects withHttpExchange
instances as an out-of-band communication mechanism.Returns the first value from theList
ofString
values for the given key (if at least one exists).abstract void
HttpServer.removeContext
(String path) Removes the context identified by the given path from the server.void
Sets the given value as the sole header value for the given key.abstract void
HttpExchange.setAttribute
(String name, Object value) Filter
modules may store arbitrary objects withHttpExchange
instances as an out-of-band communication mechanism.void
HttpsParameters.setCipherSuites
(String[] cipherSuites) Sets the array of ciphersuites.void
HttpsParameters.setProtocols
(String[] protocols) Sets the array of protocols.Modifier and TypeMethodDescriptionvoid
void
ModifierConstructorDescriptionBasicAuthenticator
(String realm) Creates aBasicAuthenticator
for the given HTTP realm.BasicAuthenticator
(String realm, Charset charset) Creates aBasicAuthenticator
for the given HTTP realm and using the givenCharset
to decode the Basic authentication credentials (username and password).HttpPrincipal
(String username, String realm) Creates aHttpPrincipal
from the givenusername
andrealm
. -
Uses of String in com.sun.nio.sctp
Modifier and TypeMethodDescriptionSctpStandardSocketOptions.InitMaxStreams.toString()
Returns a string representation of this init max streams, including the maximum in and out bound streams.Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HandlerResult
Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionConstructs an instance of this class with the specified message.Constructs an instance of this class with the specified detailed message.Constructs an instance of this class with the specified detailed message. -
Uses of String in com.sun.security.auth
Modifier and TypeMethodDescriptionLdapPrincipal.getName()
Returns the name originally used to create this principal.NTDomainPrincipal.getName()
Return the Windows NT domain name for thisNTDomainPrincipal
.NTSid.getName()
Return a string version of thisNTSid
.NTUserPrincipal.getName()
Return the Windows NT username for thisNTPrincipal
.UnixNumericGroupPrincipal.getName()
Return the user's group identification number (GID) for thisUnixNumericGroupPrincipal
.UnixNumericUserPrincipal.getName()
Return the user identification number (UID) for thisUnixNumericUserPrincipal
.UnixPrincipal.getName()
Return the Unix username for thisUnixPrincipal
.UserPrincipal.getName()
Returns the name of this principal.LdapPrincipal.toString()
Creates a string representation of this principal's name in the format defined by RFC 2253.NTDomainPrincipal.toString()
Return a string representation of thisNTDomainPrincipal
.NTNumericCredential.toString()
Return a string representation of thisNTNumericCredential
.NTSid.toString()
Return a string representation of thisNTSid
.NTSidDomainPrincipal.toString()
Return a string representation of thisNTSidDomainPrincipal
.NTSidGroupPrincipal.toString()
Return a string representation of thisNTSidGroupPrincipal
.NTSidPrimaryGroupPrincipal.toString()
Return a string representation of thisNTSidPrimaryGroupPrincipal
.NTSidUserPrincipal.toString()
Return a string representation of thisNTSidUserPrincipal
.NTUserPrincipal.toString()
Return a string representation of thisNTPrincipal
.UnixNumericGroupPrincipal.toString()
Return a string representation of thisUnixNumericGroupPrincipal
.UnixNumericUserPrincipal.toString()
Return a string representation of thisUnixNumericUserPrincipal
.UnixPrincipal.toString()
Return a string representation of thisUnixPrincipal
.UserPrincipal.toString()
Returns a string representation of this principal.ModifierConstructorDescriptionLdapPrincipal
(String name) Creates an LDAP principal.NTDomainPrincipal
(String name) Create anNTDomainPrincipal
with a Windows NT domain name.Create anNTSid
with a Windows NT SID.NTSidDomainPrincipal
(String name) Create anNTSidDomainPrincipal
with a Windows NT SID.NTSidGroupPrincipal
(String name) Create anNTSidGroupPrincipal
with a Windows NT group name.Create anNTSidPrimaryGroupPrincipal
with a Windows NT group SID.NTSidUserPrincipal
(String name) Create anNTSidUserPrincipal
with a Windows NT SID.NTUserPrincipal
(String name) Create anNTUserPrincipal
with a Windows NT username.UnixNumericGroupPrincipal
(String name, boolean primaryGroup) Create aUnixNumericGroupPrincipal
using aString
representation of the user's group identification number (GID).Create aUnixNumericUserPrincipal
using aString
representation of the user's identification number (UID).UnixPrincipal
(String name) Create a UnixPrincipal with a Unix username.UserPrincipal
(String name) Creates a principal. -
Uses of String in com.sun.security.auth.login
Modifier and TypeMethodDescriptionConfigFile.getAppConfigurationEntry
(String applicationName) Retrieve an entry from theConfiguration
using an application name as an index. -
Uses of String in com.sun.security.auth.module
Modifier and TypeFieldDescriptionfinal String
JndiLoginModule.GROUP_PROVIDER
Directory service/path where this module can access the relevent group information.final String
JndiLoginModule.USER_PROVIDER
Directory service/path where this module can access the relevent user information.protected String
UnixSystem.username
The current username.Modifier and TypeMethodDescriptionNTSystem.getDomain()
Get the domain for the current NT user.NTSystem.getDomainSID()
Get a printable SID for the current NT user's domain.String[]
NTSystem.getGroupIDs()
Get the printable group SIDs for the current NT user.NTSystem.getName()
Get the username for the current NT user.NTSystem.getPrimaryGroupID()
Get a printable primary group SID for the current NT user.UnixSystem.getUsername()
Get the username for the current Unix user.NTSystem.getUserSID()
Get a printable SID for the current NT user.Modifier and TypeMethodDescriptionvoid
JndiLoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
.void
KeyStoreLoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
.void
Krb5LoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
.void
LdapLoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
.void
NTLoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
.void
UnixLoginModule.initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule
. -
Uses of String in com.sun.security.jgss
Modifier and TypeMethodDescriptionstatic InquireType
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionConstructs a newInquireSecContextPermission
object with the specified name. -
Uses of String in com.sun.source.doctree
Modifier and TypeFieldDescriptionfinal String
DocTree.Kind.tagName
The name of the tag, if any, associated with this kind of node.Modifier and TypeMethodDescriptionCommentTree.getBody()
Returns the text of the comment.TextTree.getBody()
Returns the text.ReferenceTree.getSignature()
Returns the signature of the Java language element being referenced, as found in@see
and similar nodes.BlockTagTree.getTagName()
Returns the name of the tag.InlineTagTree.getTagName()
Returns the name of the tag.DocTypeTree.getText()
Returns the text of the doctype declaration.Modifier and TypeMethodDescriptionstatic AttributeTree.ValueKind
Returns the enum constant of this class with the specified name.static DocTree.Kind
Returns the enum constant of this class with the specified name. -
Uses of String in com.sun.source.tree
Modifier and TypeMethodDescriptionstatic CaseTree.CaseKind
Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static ModuleTree.ModuleKind
Returns the enum constant of this class with the specified name.static Tree.Kind
Returns the enum constant of this class with the specified name. -
Uses of String in com.sun.source.util
Modifier and TypeMethodDescriptionabstract String
DocTrees.getCharacters
(EntityTree tree) Returns a string containing the characters for the entity in a given entity tree, ornull
if the tree does not represent a valid series of characters.abstract String
Trees.getDocComment
(TreePath path) Returns the doc comment, if any, for the Tree node identified by a given TreePath.Plugin.getName()
Returns the user-friendly name of this plug-in.Modifier and TypeMethodDescriptionabstract DocCommentTree
DocTrees.getDocCommentTree
(Element e, String relativePath) Returns the doc comment tree of the given file whose path is specified relative to the given element.void
Initializes the plug-in for a given compilation task.DocTreeFactory.newCommentTree
(String text) Creates a newCommentTree
, to represent an HTML comment.DocTreeFactory.newDocTypeTree
(String text) Creates a newDocTypeTree
, to represent aDOCTYPE
HTML declaration.DocTreeFactory.newErroneousTree
(String text, Diagnostic<JavaFileObject> diag) Creates a newErroneousTree
object, to represent some unparseable input.DocTreeFactory.newReferenceTree
(String signature) Creates a newReferenceTree
object, to represent a reference to an API element.DocTreeFactory.newTextTree
(String text) Creates a newTextTree
object, to represent some plain text.static TaskEvent.Kind
Returns the enum constant of this class with the specified name. -
Uses of String in com.sun.tools.attach
Modifier and TypeMethodDescriptionVirtualMachineDescriptor.displayName()
Return the display name component of this descriptor.final String
VirtualMachine.id()
Returns the identifier for this Java virtual machine.VirtualMachineDescriptor.id()
Return the identifier component of this descriptor.abstract String
VirtualMachine.startLocalManagementAgent()
Starts the local JMX management agent in the target virtual machine.VirtualMachine.toString()
Returns the string representation of theVirtualMachine
.VirtualMachineDescriptor.toString()
Returns the string representation of theVirtualMachineDescriptor
.Modifier and TypeMethodDescriptionstatic VirtualMachine
Attaches to a Java virtual machine.void
Loads an agent.abstract void
Loads an agent.void
VirtualMachine.loadAgentLibrary
(String agentLibrary) Loads an agent library.abstract void
VirtualMachine.loadAgentLibrary
(String agentLibrary, String options) Loads an agent library.void
VirtualMachine.loadAgentPath
(String agentPath) Load a native agent library by full pathname.abstract void
VirtualMachine.loadAgentPath
(String agentPath, String options) Load a native agent library by full pathname.ModifierConstructorDescriptionConstructs anAgentInitializationException
with the specified detail message.AgentInitializationException
(String s, int returnValue) Constructs anAgentInitializationException
with the specified detail message and the return value from the execution of the agent'sAgent_OnAttach
function.Constructs anAgentLoadException
with the specified detail message.Constructs anAttachNotSupportedException
with the specified detail message.AttachOperationFailedException
(String message) Constructs anAttachOperationFailedException
with the specified detail message.AttachPermission
(String name) Constructs a new AttachPermission object.AttachPermission
(String name, String actions) Constructs a new AttachPermission object.protected
VirtualMachine
(AttachProvider provider, String id) Initializes a new instance of this class.VirtualMachineDescriptor
(AttachProvider provider, String id) Creates a virtual machine descriptor from the given components.VirtualMachineDescriptor
(AttachProvider provider, String id, String displayName) Creates a virtual machine descriptor from the given components. -
Uses of String in com.sun.tools.attach.spi
Modifier and TypeMethodDescriptionabstract String
AttachProvider.name()
Return this provider's name.abstract String
AttachProvider.type()
Return this provider's type.Modifier and TypeMethodDescriptionabstract VirtualMachine
AttachProvider.attachVirtualMachine
(String id) Attaches to a Java virtual machine. -
Uses of String in com.sun.tools.javac
Modifier and TypeMethodDescriptionstatic int
Programmatic interface to the Java Programming Language compiler, javac.static int
Main.compile
(String[] args, PrintWriter out) Programmatic interface to the Java Programming Language compiler, javac.static void
Main entry point for the launcher. -
Uses of String in com.sun.tools.jconsole
Modifier and TypeFieldDescriptionstatic final String
JConsoleContext.CONNECTION_STATE_PROPERTY
TheConnectionState
bound property name.Modifier and TypeMethodDescriptionJConsolePlugin.getTabs()
Returns the tabs to be added in JConsole window.Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name. -
Uses of String in java.applet
Modifier and TypeMethodDescriptionApplet.getAppletInfo()
Deprecated, for removal: This API element is subject to removal in a future version.Returns information about this applet.Applet.getParameter
(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of the named parameter in the HTML tag.AppletStub.getParameter
(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of the named parameter in the HTML tag.String[][]
Applet.getParameterInfo()
Deprecated, for removal: This API element is subject to removal in a future version.Returns information about the parameters that are understood by this applet.Modifier and TypeMethodDescriptionAppletContext.getStreamKeys()
Deprecated, for removal: This API element is subject to removal in a future version.Finds all the keys of the streams in this applet context.Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Finds and returns the applet in the document represented by this applet context with the given name.Applet.getAudioClip
(URL url, String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns theAudioClip
object specified by theURL
andname
arguments.Deprecated, for removal: This API element is subject to removal in a future version.Returns anImage
object that can then be painted on the screen.Applet.getParameter
(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of the named parameter in the HTML tag.AppletStub.getParameter
(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of the named parameter in the HTML tag.Deprecated, for removal: This API element is subject to removal in a future version.Returns the stream to which specified key is associated within this applet context.void
Deprecated, for removal: This API element is subject to removal in a future version.Plays the audio clip given theURL
and a specifier that is relative to it.void
AppletContext.setStream
(String key, InputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Associates the specified stream with the specified key in this applet context.void
AppletContext.showDocument
(URL url, String target) Deprecated, for removal: This API element is subject to removal in a future version.Requests that the browser or applet viewer show the Web page indicated by theurl
argument.void
Applet.showStatus
(String msg) Deprecated, for removal: This API element is subject to removal in a future version.Requests that the argument string be displayed in the "status window".void
AppletContext.showStatus
(String status) Deprecated, for removal: This API element is subject to removal in a future version.Requests that the argument string be displayed in the "status window". -
Uses of String in java.awt
Modifier and TypeFieldDescriptionstatic final String
BorderLayout.AFTER_LAST_LINE
Synonym for PAGE_END.static final String
BorderLayout.AFTER_LINE_ENDS
Synonym for LINE_END.static final String
BorderLayout.BEFORE_FIRST_LINE
Synonym for PAGE_START.static final String
BorderLayout.BEFORE_LINE_BEGINS
Synonym for LINE_START.static final String
BorderLayout.CENTER
The center layout constraint (middle of container).static final String
Font.DIALOG
A String constant for the canonical family name of the logical font "Dialog".static final String
Font.DIALOG_INPUT
A String constant for the canonical family name of the logical font "DialogInput".static final String
BorderLayout.EAST
The east layout constraint (right side of container).static final String
BorderLayout.LINE_END
The component goes at the end of the line direction for the layout.static final String
BorderLayout.LINE_START
The component goes at the beginning of the line direction for the layout.static final String
Font.MONOSPACED
A String constant for the canonical family name of the logical font "Monospaced".protected String
Cursor.name
The user-visible name of the cursor.protected String
Font.name
The logical name of thisFont
, as passed to the constructor.static final String
BorderLayout.NORTH
The north layout constraint (top of container).static final String
BorderLayout.PAGE_END
The component comes after the last line of the layout's content.static final String
BorderLayout.PAGE_START
The component comes before the first line of the layout's content.static final String
Font.SANS_SERIF
A String constant for the canonical family name of the logical font "SansSerif".static final String
Font.SERIF
A String constant for the canonical family name of the logical font "Serif".static final String
BorderLayout.SOUTH
The south layout constraint (bottom of container).static final String
BorderLayout.WEST
The west layout constraint (left side of container).Modifier and TypeMethodDescriptionButton.AccessibleAWTButton.getAccessibleActionDescription
(int i) Return a description of the specified action of the object.Checkbox.AccessibleAWTCheckbox.getAccessibleActionDescription
(int i) Return a description of the specified action of the object.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.getAccessibleActionDescription
(int i) Return a description of the specified action of the object.Choice.AccessibleAWTChoice.getAccessibleActionDescription
(int i) Returns a description of the specified action of the object.MenuItem.AccessibleAWTMenuItem.getAccessibleActionDescription
(int i) Return a description of the specified action of the object.Component.AccessibleAWTComponent.getAccessibleDescription()
Gets the accessible description of this object.MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription()
Gets the accessible description of this object.Button.AccessibleAWTButton.getAccessibleName()
Get the accessible name of this object.Component.AccessibleAWTComponent.getAccessibleName()
Gets the accessible name of this object.Label.AccessibleAWTLabel.getAccessibleName()
Get the accessible name of this object.MenuComponent.AccessibleAWTMenuComponent.getAccessibleName()
Gets the accessible name of this object.MenuItem.AccessibleAWTMenuItem.getAccessibleName()
Get the accessible name of this object.Button.getActionCommand()
Returns the command name of the action event fired by this button.MenuItem.getActionCommand()
Gets the command name of the action event that is fired by this menu item.TrayIcon.getActionCommand()
Returns the command name of the action event fired by this tray icon.TextComponent.AccessibleAWTTextComponent.getAfterIndex
(int part, int index) Returns the String after a given index.TextComponent.AccessibleAWTTextComponent.getAtIndex
(int part, int index) Returns the String at a given index.abstract String[]
GraphicsEnvironment.getAvailableFontFamilyNames()
Returns an array containing the names of all font families in thisGraphicsEnvironment
localized for the default locale, as returned byLocale.getDefault()
.abstract String[]
GraphicsEnvironment.getAvailableFontFamilyNames
(Locale l) Returns an array containing the names of all font families in thisGraphicsEnvironment
localized for the specified locale.TextComponent.AccessibleAWTTextComponent.getBeforeIndex
(int part, int index) Returns the String before a given index.FileDialog.getDirectory()
Gets the directory of this file dialog.Font.getFamily()
Returns the family name of thisFont
.Returns the family name of thisFont
, localized for the specified locale.FileDialog.getFile()
Gets the selected file of this file dialog.JobAttributes.getFileName()
Specifies the file name for the output file for jobs using these attributes.abstract String[]
Toolkit.getFontList()
Deprecated.Font.getFontName()
Returns the font face name of thisFont
.Font.getFontName
(Locale l) Returns the font face name of theFont
, localized for the specified locale.abstract String
GraphicsDevice.getIDstring()
Returns the identification string associated with thisGraphicsDevice
.Choice.getItem
(int index) Gets the string at the specified index in thisChoice
menu.List.getItem
(int index) Gets the item associated with the specified index.String[]
List.getItems()
Gets the items in the list.Button.getLabel()
Gets the label of this button.Checkbox.getLabel()
Gets the label of this check box.MenuItem.getLabel()
Gets the label for this menu item.HeadlessException.getMessage()
Returns the detail message string of thisHeadlessException
.Component.getName()
Gets the name of the component.Cursor.getName()
Returns the name of this cursor.Font.getName()
Returns the logical name of thisFont
.MenuComponent.getName()
Gets the name of the menu component.JobAttributes.getPrinter()
Returns the destination printer for jobs using these attributes.static String
Toolkit.getProperty
(String key, String defaultValue) Gets a property with the specified key and default.Font.getPSName()
Returns the postscript name of thisFont
.Choice.getSelectedItem()
Gets a representation of the current choice as a string.List.getSelectedItem()
Gets the selected item on this scrolling list.String[]
List.getSelectedItems()
Gets the selected items on this scrolling list.TextComponent.AccessibleAWTTextComponent.getSelectedText()
Returns the portion of the text that is selected.TextComponent.getSelectedText()
Returns the selected text from the text that is presented by this text component.Label.getText()
Gets the text of this label.TextComponent.getText()
Returns the text that is presented by this text component.Dialog.getTitle()
Gets the title of the dialog.Frame.getTitle()
Gets the title of the frame.TrayIcon.getToolTip()
Returns the tooltip string associated with thisTrayIcon
.final String
Window.getWarningString()
Gets the warning string that is displayed with this window.AWTEvent.paramString()
Returns a string representing the state of thisEvent
.protected String
Button.paramString()
Returns a string representing the state of thisButton
.protected String
Checkbox.paramString()
Returns a string representing the state of thisCheckbox
.CheckboxMenuItem.paramString()
Returns a string representing the state of thisCheckBoxMenuItem
.protected String
Choice.paramString()
Returns a string representing the state of thisChoice
menu.protected String
Component.paramString()
Returns a string representing the state of this component.protected String
Container.paramString()
Returns a string representing the state of thisContainer
.protected String
Dialog.paramString()
Returns a string representing the state of this dialog.protected String
Event.paramString()
Deprecated.NOTE: TheEvent
class is obsolete and is available only for backwards compatibility.protected String
FileDialog.paramString()
Returns a string representing the state of thisFileDialog
window.protected String
Frame.paramString()
Returns a string representing the state of thisFrame
.protected String
Label.paramString()
Returns a string representing the state of thisLabel
.protected String
List.paramString()
Returns the parameter string representing the state of this scrolling list.Menu.paramString()
Returns a string representing the state of thisMenu
.protected String
MenuComponent.paramString()
Returns a string representing the state of thisMenuComponent
.MenuItem.paramString()
Returns a string representing the state of thisMenuItem
.protected String
MenuShortcut.paramString()
Returns the parameter string representing the state of this MenuShortcut.protected String
Scrollbar.paramString()
Returns a string representing the state of thisScrollbar
.ScrollPane.paramString()
Returns a string representing the state of thisScrollPane
.ScrollPaneAdjustable.paramString()
Returns a string representing the state of this scrollbar.protected String
TextArea.paramString()
Returns a string representing the state of thisTextArea
.protected String
TextComponent.paramString()
Returns a string representing the state of thisTextComponent
.protected String
TextField.paramString()
Returns a string representing the state of thisTextField
.AWTEvent.toString()
Returns a String representation of this object.AWTKeyStroke.toString()
Returns a string that displays and identifies this object's properties.BorderLayout.toString()
Returns a string representation of the state of this border layout.CardLayout.toString()
Returns a string representation of the state of this card layout.CheckboxGroup.toString()
Returns a string representation of this check box group, including the value of its current selection.Color.toString()
Returns a string representation of thisColor
.Component.toString()
Returns a string representation of this component and its values.Cursor.toString()
Returns a string representation of this cursor.Dimension.toString()
Returns a string representation of the values of thisDimension
object'sheight
andwidth
fields.Event.toString()
Deprecated.NOTE: TheEvent
class is obsolete and is available only for backwards compatibility.FlowLayout.toString()
Returns a string representation of thisFlowLayout
object and its values.Font.toString()
Converts thisFont
object to aString
representation.FontMetrics.toString()
Returns a representation of thisFontMetrics
object's values as aString
.Graphics.toString()
Returns aString
object representing thisGraphics
object's value.GridBagLayout.toString()
Returns a string representation of this grid bag layout's values.GridLayout.toString()
Returns the string representation of this grid layout's values.Insets.toString()
Returns a string representation of thisInsets
object.JobAttributes.toString()
Returns a string representation of this JobAttributes.MenuComponent.toString()
Returns a representation of this menu component as a string.MenuShortcut.toString()
Returns an internationalized description of the MenuShortcut.PageAttributes.toString()
Returns a string representation of this PageAttributes.Point.toString()
Returns a string representation of this point and its location in the(x,y)
coordinate space.Rectangle.toString()
Returns aString
representing thisRectangle
and its values.RenderingHints.toString()
Returns a rather long string representation of the hashmap which contains the mappings of keys to values for thisRenderingHints
object.Robot.toString()
Returns a string representation of this Robot.ScrollPaneAdjustable.toString()
Returns a string representation of this scrollbar and its values.SystemColor.toString()
Returns a string representation of thisColor
's values.Modifier and TypeMethodDescriptionvoid
Adds an item to thisChoice
menu.Adds the specified component to this container.void
Adds the specified item to the end of scrolling list.void
Adds the specified item to the scrolling list at the position indicated by the index.void
Adds an item with the specified label to this menu.void
Obsolete as of Java 2 platform v1.1.void
Deprecated.replaced byadd(String)
.void
Deprecated.replaced byadd(String, int)
.void
BorderLayout.addLayoutComponent
(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
CardLayout.addLayoutComponent
(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
FlowLayout.addLayoutComponent
(String name, Component comp) Adds the specified component to the layout.void
GridBagLayout.addLayoutComponent
(String name, Component comp) Has no effect, since this layout manager does not use a per-component string.void
GridLayout.addLayoutComponent
(String name, Component comp) Adds the specified component with the specified name to the layout.void
LayoutManager.addLayoutComponent
(String name, Component comp) If the layout manager uses a per-component string, adds the componentcomp
to the layout, associating it with the string specified byname
.void
Component.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.void
Container.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.void
KeyboardFocusManager.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.void
SystemTray.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Adds aPropertyChangeListener
to the list of listeners for the specific property.void
Toolkit.addPropertyChangeListener
(String name, PropertyChangeListener pcl) Adds the specified property change listener for the named desktop property.void
Window.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.void
KeyboardFocusManager.addVetoableChangeListener
(String propertyName, VetoableChangeListener listener) Adds a VetoableChangeListener to the listener list for a specific property.void
Appends the given text to the text area's current text.void
TextArea.appendText
(String str) Deprecated.As of JDK version 1.1, replaced byappend(String)
.void
Window.applyResourceBundle
(String rbName) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.int
Font.canDisplayUpTo
(String str) Indicates whether or not thisFont
can display a specifiedString
.Toolkit.createCustomCursor
(Image cursor, Point hotSpot, String name) Creates a new custom cursor object.Font.createGlyphVector
(FontRenderContext frc, String str) Creates aGlyphVector
by mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont
.abstract Image
Toolkit.createImage
(String filename) Returns an image which gets pixel data from the specified file.static Color
Converts aString
to an integer and returns the specified opaqueColor
.static Font
Returns theFont
that thestr
argument describes.void
TrayIcon.displayMessage
(String caption, String text, TrayIcon.MessageType messageType) Displays a popup message near the tray icon.abstract void
Graphics.drawString
(String str, int x, int y) Draws the text given by the specified string, using this graphics context's current font and color.abstract void
Graphics2D.drawString
(String str, float x, float y) Renders the text specified by the specifiedString
, using the current text attribute state in theGraphics2D
context.abstract void
Graphics2D.drawString
(String str, int x, int y) Renders the text of the specifiedString
, using the current text attribute state in theGraphics2D
context.protected void
Component.firePropertyChange
(String propertyName, boolean oldValue, boolean newValue) Support for reporting bound property changes for boolean properties.void
Component.firePropertyChange
(String propertyName, byte oldValue, byte newValue) Reports a bound property change.void
Component.firePropertyChange
(String propertyName, char oldValue, char newValue) Reports a bound property change.void
Component.firePropertyChange
(String propertyName, double oldValue, double newValue) Reports a bound property change.void
Component.firePropertyChange
(String propertyName, float oldValue, float newValue) Reports a bound property change.protected void
Component.firePropertyChange
(String propertyName, int oldValue, int newValue) Support for reporting bound property changes for integer properties.void
Component.firePropertyChange
(String propertyName, long oldValue, long newValue) Reports a bound property change.void
Component.firePropertyChange
(String propertyName, short oldValue, short newValue) Reports a bound property change.protected void
Component.firePropertyChange
(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.protected void
KeyboardFocusManager.firePropertyChange
(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent in response to a change in a bound property.protected void
KeyboardFocusManager.fireVetoableChange
(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent in response to a change in a vetoable property.static AWTKeyStroke
AWTKeyStroke.getAWTKeyStroke
(String s) Parses a string and returns anAWTKeyStroke
.static Color
Finds a color in the system properties.static Color
Finds a color in the system properties.static Color
Finds a color in the system properties.final Object
Toolkit.getDesktopProperty
(String propertyName) Obtains a value for the specified desktop property.static Font
Returns aFont
object from the system properties list.static Font
Gets the specifiedFont
from the system properties list.abstract Image
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.Font.getLineMetrics
(String str, int beginIndex, int limit, FontRenderContext frc) Returns aLineMetrics
object created with the specified arguments.Font.getLineMetrics
(String str, FontRenderContext frc) FontMetrics.getLineMetrics
(String str, int beginIndex, int limit, Graphics context) FontMetrics.getLineMetrics
(String str, Graphics context) Toolkit.getPrintJob
(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes) Gets aPrintJob
object which is the result of initiating a print operation on the toolkit's platform.abstract PrintJob
Toolkit.getPrintJob
(Frame frame, String jobtitle, Properties props) Gets aPrintJob
object which is the result of initiating a print operation on the toolkit's platform.abstract Object
Image.getProperty
(String name, ImageObserver observer) Gets a property of this image by name.static String
Toolkit.getProperty
(String key, String defaultValue) Gets a property with the specified key and default.Component.getPropertyChangeListeners
(String propertyName) Returns an array of all the listeners which have been associated with the named property.KeyboardFocusManager.getPropertyChangeListeners
(String propertyName) Returns an array of all thePropertyChangeListener
s associated with the named property.SystemTray.getPropertyChangeListeners
(String propertyName) Returns an array of all the listeners that have been associated with the named property.Toolkit.getPropertyChangeListeners
(String propertyName) Returns an array of all property change listeners associated with the specified name of a desktop property.Font.getStringBounds
(String str, int beginIndex, int limit, FontRenderContext frc) Returns the logical bounds of the specifiedString
in the specifiedFontRenderContext
.Font.getStringBounds
(String str, FontRenderContext frc) Returns the logical bounds of the specifiedString
in the specifiedFontRenderContext
.FontMetrics.getStringBounds
(String str, int beginIndex, int limit, Graphics context) Returns the bounds of the specifiedString
in the specifiedGraphics
context.FontMetrics.getStringBounds
(String str, Graphics context) Returns the bounds of the specifiedString
in the specifiedGraphics
context.static Cursor
Cursor.getSystemCustomCursor
(String name) Returns a system-specific custom cursor object matching the specified name.KeyboardFocusManager.getVetoableChangeListeners
(String propertyName) Returns an array of all theVetoableChangeListener
s associated with the named property.void
Inserts the item into this choice at the specified position.void
Inserts a menu item with the specified label into this menu at the specified position.void
Inserts the specified text at the specified position in this text area.void
TextArea.insertText
(String str, int pos) Deprecated.As of JDK version 1.1, replaced byinsert(String, int)
.protected Object
Toolkit.lazilyLoadDesktopProperty
(String name) An opportunity to lazily evaluate desktop property values.void
Removes the first occurrence ofitem
from theChoice
menu.void
Removes the first occurrence of an item from the list.void
Component.removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) Removes aPropertyChangeListener
from the listener list for a specific property.void
KeyboardFocusManager.removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) Removes a PropertyChangeListener from the listener list for a specific property.void
SystemTray.removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) Removes aPropertyChangeListener
from the listener list for a specific property.void
Toolkit.removePropertyChangeListener
(String name, PropertyChangeListener pcl) Removes the specified property change listener for the named desktop property.void
KeyboardFocusManager.removeVetoableChangeListener
(String propertyName, VetoableChangeListener listener) Removes a VetoableChangeListener from the listener list for a specific property.void
List.replaceItem
(String newValue, int index) Replaces the item at the specified index in the scrolling list with the new string.void
TextArea.replaceRange
(String str, int start, int end) Replaces text between the indicated start and end positions with the specified replacement text.void
TextArea.replaceText
(String str, int start, int end) Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int)
.protected static void
AWTEventMulticaster.save
(ObjectOutputStream s, String k, EventListener l) Saves a Serializable listener chain to a serialization stream.protected void
AWTEventMulticaster.saveInternal
(ObjectOutputStream s, String k) Serialization support.void
Sets the selected item in thisChoice
menu to be the item whose name is equal to the specified string.void
Button.setActionCommand
(String command) Sets the command name for the action event fired by this button.void
MenuItem.setActionCommand
(String command) Sets the command name of the action event that is fired by this menu item.void
TrayIcon.setActionCommand
(String command) Sets the command name for the action event fired by this tray icon.protected final void
Toolkit.setDesktopProperty
(String name, Object newValue) Sets the named desktop property to the specified value and fires a property change event to notify any listeners that the value has changed.void
FileDialog.setDirectory
(String dir) Sets the directory of this file dialog window to be the specified directory.void
Sets the selected file for this file dialog window to be the specified file.void
JobAttributes.setFileName
(String fileName) Specifies the file name for the output file for jobs using these attributes.void
Taskbar.setIconBadge
(String badge) Affixes a small system-provided badge to this application's icon.void
Sets the button's label to be the specified string.void
Sets this check box's label to be the string argument.void
Sets the label for this menu item to the specified label.void
Sets the name of the component to the specified string.void
Sets the name of the component to the specified string.void
JobAttributes.setPrinter
(String printer) Specifies the destination printer for jobs using these attributes.void
Sets the text for this label to the specified text.void
Sets the text that is presented by this text component to be the specified text.void
Sets the text that is presented by this text component to be the specified text.void
Sets the title of the Dialog.void
Sets the title of the Dialog.void
Sets the title for this frame to the specified string.void
TrayIcon.setToolTip
(String tooltip) Sets the tooltip string for thisTrayIcon
.void
Flips to the component that was added to this layout with the specifiedname
, usingaddLayoutComponent
.int
FontMetrics.stringWidth
(String str) Returns the total advance width for showing the specifiedString
in thisFont
.Returns the enum constant of this class with the specified name.static Desktop.Action
Returns the enum constant of this class with the specified name.static Dialog.ModalExclusionType
Returns the enum constant of this class with the specified name.static Dialog.ModalityType
Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static Taskbar.Feature
Returns the enum constant of this class with the specified name.static Taskbar.State
Returns the enum constant of this class with the specified name.static TrayIcon.MessageType
Returns the enum constant of this class with the specified name.static Window.Type
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionConstructs an instance ofAWTError
with the specified detail message.AWTException
(String msg) Constructs an instance ofAWTException
with the specified detail message.AWTPermission
(String name) Creates a newAWTPermission
with the specified name.AWTPermission
(String name, String actions) Creates a newAWTPermission
object with the specified name.Constructs a button with the specified label.Creates a check box with the specified label.Creates a check box with the specified label and sets the specified state.Checkbox
(String label, boolean state, CheckboxGroup group) Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group.Checkbox
(String label, CheckboxGroup group, boolean state) Creates a check box with the specified label, in the specified check box group, and set to the specified state.CheckboxMenuItem
(String label) Create a check box menu item with the specified label.CheckboxMenuItem
(String label, boolean state) Create a check box menu item with the specified label and state.protected
Creates a new custom cursor object with the specified name.Constructs an initially invisible, modelessDialog
with the specified ownerDialog
and title.Constructs an initially invisibleDialog
with the specified ownerDialog
, title, and modality.Dialog
(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) Constructs an initially invisibleDialog
with the specified ownerDialog
, title, modality andGraphicsConfiguration
.Constructs an initially invisible, modelessDialog
with the specified ownerFrame
and title.Constructs an initially invisibleDialog
with the specified ownerFrame
, title and modality.Dialog
(Frame owner, String title, boolean modal, GraphicsConfiguration gc) Constructs an initially invisibleDialog
with the specified ownerFrame
, title, modality, andGraphicsConfiguration
.Constructs an initially invisible, modelessDialog
with the specified ownerWindow
and title.Dialog
(Window owner, String title, Dialog.ModalityType modalityType) Constructs an initially invisibleDialog
with the specified ownerWindow
, title and modality.Dialog
(Window owner, String title, Dialog.ModalityType modalityType, GraphicsConfiguration gc) Constructs an initially invisibleDialog
with the specified ownerWindow
, title, modality andGraphicsConfiguration
.FileDialog
(Dialog parent, String title) Creates a file dialog window with the specified title for loading a file.FileDialog
(Dialog parent, String title, int mode) Creates a file dialog window with the specified title for loading or saving a file.FileDialog
(Frame parent, String title) Creates a file dialog window with the specified title for loading a file.FileDialog
(Frame parent, String title, int mode) Creates a file dialog window with the specified title for loading or saving a file.Creates a newFont
from the specified name, style and point size.FontFormatException
(String reason) Report a FontFormatException for the reason specified.Constructs a new, initially invisibleFrame
object with the specified title.Frame
(String title, GraphicsConfiguration gc) Constructs a new, initially invisibleFrame
object with the specified title and aGraphicsConfiguration
.HeadlessException
(String msg) Create a new instance with the specified detailed error message.Constructs an IllegalComponentStateException with the specified detail message.JobAttributes
(int copies, JobAttributes.DefaultSelectionType defaultSelection, JobAttributes.DestinationType destination, JobAttributes.DialogType dialog, String fileName, int maxPage, int minPage, JobAttributes.MultipleDocumentHandlingType multipleDocumentHandling, int[][] pageRanges, String printer, JobAttributes.SidesType sides) Constructs aJobAttributes
instance with the specified values for every attribute.Constructs a new label with the specified string of text, left justified.Constructs a new label that presents the specified string of text with the specified alignment.Constructs a new menu with the specified label.Constructs a new menu with the specified label, indicating whether the menu can be torn off.Constructs a new MenuItem with the specified label and no keyboard shortcut.MenuItem
(String label, MenuShortcut s) Create a menu item with an associated keyboard shortcut.Creates a new popup menu with the specified name.Constructs a new text area with the specified text.Constructs a new text area with the specified text, and with the specified number of rows and columns.Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.Constructs a new text field initialized with the specified text.Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns.Creates aTrayIcon
with the specified image and tooltip text.Creates aTrayIcon
with the specified image, tooltip and popup menu. -
Uses of String in java.awt.color
Modifier and TypeMethodDescriptionColorSpace.getName
(int component) Returns the name of the component given the component index.Modifier and TypeMethodDescriptionstatic ICC_Profile
ICC_Profile.getInstance
(String fileName) Constructs anICC_Profile
corresponding to the data in a file.void
Write thisICC_Profile
to a file.ModifierConstructorDescriptionConstructs aCMMException
with the specified detail message.Constructs aProfileDataException
with the specified detail message. -
Uses of String in java.awt.datatransfer
Modifier and TypeFieldDescriptionstatic final String
DataFlavor.javaJVMLocalObjectMimeType
To transfer a reference to an arbitrary Java object reference that has no associated MIME Content-type, across aTransferable
interface WITHIN THE SAME JVM, aDataFlavor
with this type/subtype is used, with arepresentationClass
equal to the type of the class/interface being passed across theTransferable
.static final String
DataFlavor.javaRemoteObjectMimeType
In order to pass a live link to a Remote object via a Drag and DropACTION_LINK
operation a Mime Content Type of application/x-java-remote-object should be used, where the representation class of theDataFlavor
represents the type of theRemote
interface to be transferred.static final String
DataFlavor.javaSerializedObjectMimeType
A MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent.Modifier and TypeMethodDescriptionstatic String
SystemFlavorMap.decodeJavaMIMEType
(String nat) Decodes aString
native for use as a Java MIME type.static String
SystemFlavorMap.encodeDataFlavor
(DataFlavor flav) Encodes aDataFlavor
for use as aString
native.static String
SystemFlavorMap.encodeJavaMIMEType
(String mimeType) Encodes a MIME type for use as aString
native.final String
DataFlavor.getDefaultRepresentationClassAsString()
Returns the name of the default representation class.DataFlavor.getHumanPresentableName()
Returns the human presentable name for the data format that thisDataFlavor
represents.DataFlavor.getMimeType()
Returns the MIME type string for thisDataFlavor
.Clipboard.getName()
Returns the name of this clipboard object.DataFlavor.getParameter
(String paramName) Returns the human presentable name for thisDataFlavor
ifparamName
equals "humanPresentableName".DataFlavor.getPrimaryType()
Returns the primary MIME type for thisDataFlavor
.DataFlavor.getSubType()
Returns the sub MIME type of thisDataFlavor
.protected String
DataFlavor.normalizeMimeType
(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected String
DataFlavor.normalizeMimeTypeParameter
(String parameterName, String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwardsDataFlavor.toString()
String representation of thisDataFlavor
and its parameters.Modifier and TypeMethodDescriptionFlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their correspondingDataFlavor
.SystemFlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their most preferredDataFlavor
.FlavorTable.getNativesForFlavor
(DataFlavor flav) Returns aList
ofString
natives to which the specifiedDataFlavor
corresponds.SystemFlavorMap.getNativesForFlavor
(DataFlavor flav) Returns aList
ofString
natives to which the specifiedDataFlavor
can be translated by the data transfer subsystem.FlavorMap.getNativesForFlavors
(DataFlavor[] flavors) Returns aMap
of the specifiedDataFlavor
s to their correspondingString
native.SystemFlavorMap.getNativesForFlavors
(DataFlavor[] flavors) Returns aMap
of the specifiedDataFlavor
s to their most preferredString
native.Modifier and TypeMethodDescriptionvoid
SystemFlavorMap.addFlavorForUnencodedNative
(String nat, DataFlavor flav) Adds a mapping from a singleString
native to a singleDataFlavor
.void
SystemFlavorMap.addUnencodedNativeForFlavor
(DataFlavor flav, String nat) Adds a mapping from the specifiedDataFlavor
(and allDataFlavor
s equal to the specifiedDataFlavor
) to the specifiedString
native.static DataFlavor
SystemFlavorMap.decodeDataFlavor
(String nat) Decodes aString
native for use as aDataFlavor
.static String
SystemFlavorMap.decodeJavaMIMEType
(String nat) Decodes aString
native for use as a Java MIME type.static String
SystemFlavorMap.encodeJavaMIMEType
(String mimeType) Encodes a MIME type for use as aString
native.boolean
Deprecated.As inconsistent withhashCode()
contract, useDataFlavor.isMimeTypeEqual(String)
instead.FlavorTable.getFlavorsForNative
(String nat) Returns aList
ofDataFlavor
s to which the specifiedString
corresponds.SystemFlavorMap.getFlavorsForNative
(String nat) Returns aList
ofDataFlavor
s to which the specifiedString
native can be translated by the data transfer subsystem.FlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their correspondingDataFlavor
.SystemFlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their most preferredDataFlavor
.DataFlavor.getParameter
(String paramName) Returns the human presentable name for thisDataFlavor
ifparamName
equals "humanPresentableName".static boolean
SystemFlavorMap.isJavaMIMEType
(String str) Returns whether the specifiedString
is an encoded Java MIME type.boolean
DataFlavor.isMimeTypeEqual
(String mimeType) Returns whether the string representation of the MIME type passed in is equivalent to the MIME type of thisDataFlavor
.protected String
DataFlavor.normalizeMimeType
(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected String
DataFlavor.normalizeMimeTypeParameter
(String parameterName, String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwardsvoid
SystemFlavorMap.setFlavorsForNative
(String nat, DataFlavor[] flavors) Discards the current mappings for the specifiedString
native, and creates new mappings to the specifiedDataFlavor
s.void
DataFlavor.setHumanPresentableName
(String humanPresentableName) Sets the human presentable name for the data format that thisDataFlavor
represents.void
SystemFlavorMap.setNativesForFlavor
(DataFlavor flav, String[] natives) Discards the current mappings for the specifiedDataFlavor
and allDataFlavor
s equal to the specifiedDataFlavor
, and creates new mappings to the specifiedString
natives.protected static final Class<?>
DataFlavor.tryToLoadClass
(String className, ClassLoader fallback) Tries to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified.ModifierConstructorDescriptionCreates a clipboard object.DataFlavor
(Class<?> representationClass, String humanPresentableName) Constructs aDataFlavor
that represents a Java class.DataFlavor
(String mimeType) Constructs aDataFlavor
from amimeType
string.DataFlavor
(String mimeType, String humanPresentableName) Constructs aDataFlavor
that represents aMimeType
.DataFlavor
(String mimeType, String humanPresentableName, ClassLoader classLoader) Constructs aDataFlavor
that represents aMimeType
.Constructs a MimeTypeParseException with the specified detail message.StringSelection
(String data) Creates aTransferable
capable of transferring the specifiedString
. -
Uses of String in java.awt.desktop
Modifier and TypeMethodDescriptionstatic QuitStrategy
Returns the enum constant of this class with the specified name.static UserSessionEvent.Reason
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionOpenFilesEvent
(List<File> files, String searchTerm) Constructs anOpenFilesEvent
. -
Uses of String in java.awt.dnd
ModifierConstructorDescriptionCreate an Exception with its own descriptive message -
Uses of String in java.awt.event
Modifier and TypeMethodDescriptionActionEvent.getActionCommand()
Returns the command string associated with this action.static String
KeyEvent.getKeyModifiersText
(int modifiers) Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)
be used insteadstatic String
KeyEvent.getKeyText
(int keyCode) Returns a String describing the keyCode, such as "HOME", "F1" or "A".static String
InputEvent.getModifiersExText
(int modifiers) Returns a String describing the extended modifier keys and mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift".static String
MouseEvent.getMouseModifiersText
(int modifiers) Returns aString
instance describing the modifier keys and mouse buttons that were down during the event, such as "Shift", or "Ctrl+Shift".ActionEvent.paramString()
Returns a parameter string identifying this action event.ComponentEvent.paramString()
Returns a parameter string identifying this event.ContainerEvent.paramString()
Returns a parameter string identifying this event.FocusEvent.paramString()
Returns a parameter string identifying this event.HierarchyEvent.paramString()
Returns a parameter string identifying this event.InputMethodEvent.paramString()
Returns a parameter string identifying this event.InvocationEvent.paramString()
Returns a parameter string identifying this event.ItemEvent.paramString()
Returns a parameter string identifying this item event.KeyEvent.paramString()
Returns a parameter string identifying this event.MouseEvent.paramString()
Returns a parameter string identifying this event.MouseWheelEvent.paramString()
Returns a parameter string identifying this event.TextEvent.paramString()
Returns a parameter string identifying this text event.WindowEvent.paramString()
Returns a parameter string identifying this event.Modifier and TypeMethodDescriptionstatic FocusEvent.Cause
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionActionEvent
(Object source, int id, String command) Constructs anActionEvent
object.ActionEvent
(Object source, int id, String command, int modifiers) Constructs anActionEvent
object with modifier keys.ActionEvent
(Object source, int id, String command, long when, int modifiers) Constructs anActionEvent
object with the specified modifier keys and timestamp. -
Uses of String in java.awt.font
Modifier and TypeMethodDescriptionString[]
MultipleMaster.getDesignAxisNames()
Returns the name for each design axis.NumericShaper.toString()
Returns aString
that describes this shaper.TextHitInfo.toString()
Returns aString
representing the hit for debugging use only.TextLayout.toString()
Returns debugging information for thisTextLayout
.Modifier and TypeMethodDescriptionbyte[]
OpenType.getFontTable
(String strSfntTag) Returns the table as an array of bytes for a specified tag.byte[]
OpenType.getFontTable
(String strSfntTag, int offset, int count) Returns a subset of the table as an array of bytes for a specified tag.int
OpenType.getFontTableSize
(String strSfntTag) Returns the size of the table for a specified tag.static NumericShaper.Range
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionprotected
TextAttribute
(String name) Constructs aTextAttribute
with the specified name.TextLayout
(String string, Font font, FontRenderContext frc) TextLayout
(String string, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, FontRenderContext frc) Constructs aTextLayout
from aString
and an attribute set. -
Uses of String in java.awt.geom
Modifier and TypeMethodDescriptionAffineTransform.toString()
Returns aString
that represents the value of thisObject
.Point2D.Double.toString()
Returns aString
that represents the value of thisPoint2D
.Point2D.Float.toString()
Returns aString
that represents the value of thisPoint2D
.Rectangle2D.Double.toString()
Returns theString
representation of thisRectangle2D
.Rectangle2D.Float.toString()
Returns theString
representation of thisRectangle2D
.ModifierConstructorDescriptionConstructs anIllegalPathStateException
with the specified detail message.Constructs an instance ofNoninvertibleTransformException
with the specified detail message. -
Uses of String in java.awt.im.spi
Modifier and TypeMethodDescriptionInputMethodDescriptor.getInputMethodDisplayName
(Locale inputLocale, Locale displayLanguage) Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed.Modifier and TypeMethodDescriptionInputMethodContext.createInputMethodJFrame
(String title, boolean attachToInputContext) Creates a top-level Swing JFrame for use by the input method.InputMethodContext.createInputMethodWindow
(String title, boolean attachToInputContext) Creates a top-level window for use by the input method. -
Uses of String in java.awt.image
Modifier and TypeMethodDescriptionString[]
BufferedImage.getPropertyNames()
Returns an array of names recognized bygetProperty(String)
ornull
, if no property names are recognized.String[]
RenderedImage.getPropertyNames()
Returns an array of names recognized bygetProperty(String)
ornull
, if no property names are recognized.BufferedImage.toString()
Returns aString
representation of thisBufferedImage
object and its values.ColorModel.toString()
Returns theString
representation of the contents of thisColorModel
object.DirectColorModel.toString()
Returns aString
that represents thisDirectColorModel
.IndexColorModel.toString()
Returns theString
representation of the contents of thisColorModel
object.Modifier and TypeMethodDescriptionAbstractMultiResolutionImage.getProperty
(String name, ImageObserver observer) This method simply delegates to the same method on the base image and it is equivalent to:getBaseImage().getProperty(name, observer)
.BufferedImage.getProperty
(String name) Returns a property of the image by name.BufferedImage.getProperty
(String name, ImageObserver observer) Returns a property of the image by name.RenderedImage.getProperty
(String name) Gets a property from the property set of this image.ModifierConstructorDescriptionConstructs anImagingOpException
object with the specified message.Constructs a newRasterFormatException
with the specified message. -
Uses of String in java.awt.image.renderable
Modifier and TypeFieldDescriptionstatic final String
RenderableImage.HINTS_OBSERVED
String constant that can be used to identify a property on a RenderedImage obtained via the createRendering or createScaledRendering methods.Modifier and TypeMethodDescriptionString[]
ContextualRenderedImageFactory.getPropertyNames()
Returns a list of names recognized by getProperty.String[]
RenderableImage.getPropertyNames()
Returns a list of names recognized by getProperty.String[]
RenderableImageOp.getPropertyNames()
Return a list of names recognized by getProperty.Modifier and TypeMethodDescriptionContextualRenderedImageFactory.getProperty
(ParameterBlock paramBlock, String name) Gets the appropriate instance of the property specified by the name parameter.RenderableImage.getProperty
(String name) Gets a property from the property set of this image.RenderableImageOp.getProperty
(String name) Gets a property from the property set of this image. -
Uses of String in java.awt.print
Modifier and TypeMethodDescriptionabstract String
PrinterJob.getJobName()
Gets the name of the document to be printed.abstract String
PrinterJob.getUserName()
Gets the name of the printing user.Modifier and TypeMethodDescriptionstatic StreamPrintServiceFactory[]
PrinterJob.lookupStreamPrintServices
(String mimeType) A convenience method which locates factories for stream print services which can image 2D graphics.abstract void
PrinterJob.setJobName
(String jobName) Sets the name of the document to be printed.ModifierConstructorDescriptionConstructs a newPrinterAbortException
with the specified detail message.PrinterException
(String msg) Constructs a newPrinterException
object with the specified detail message. -
Uses of String in java.beans
Modifier and TypeFieldDescriptionstatic final String
DesignMode.PROPERTYNAME
The standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.Modifier and TypeMethodDescriptionstatic String
Introspector.decapitalize
(String name) Utility method to take a string and convert it to normal Java variable name capitalization.EventHandler.getAction()
Returns the name of the target's writable property that this event handler will set, or the name of the method that this event handler will invoke on the target.PropertyEditor.getAsText()
Gets the property value as text.PropertyEditorSupport.getAsText()
Gets the property value as a string suitable for presentation to a human to edit.static String[]
Introspector.getBeanInfoSearchPath()
Gets the list of package names that will be used for finding BeanInfo classes.FeatureDescriptor.getDisplayName()
Gets the localized display name of this feature.static String[]
PropertyEditorManager.getEditorSearchPath()
Gets the package names that will be searched for property editors.EventHandler.getEventPropertyName()
Returns the property of the event that should be used in the action applied to the target.PropertyEditor.getJavaInitializationString()
Returns a fragment of Java code that can be used to set a property to match the editors current state.PropertyEditorSupport.getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.EventHandler.getListenerMethodName()
Returns the name of the method that will trigger the action.Statement.getMethodName()
Returns the name of the method to invoke.FeatureDescriptor.getName()
Gets the programmatic name of this feature.PropertyChangeEvent.getPropertyName()
Gets the programmatic name of the property that was changed.PropertyChangeListenerProxy.getPropertyName()
Returns the name of the named property associated with the listener.VetoableChangeListenerProxy.getPropertyName()
Returns the name of the named property associated with the listener.FeatureDescriptor.getShortDescription()
Gets the short description of this feature.String[]
PropertyEditor.getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags.String[]
PropertyEditorSupport.getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values.Expression.toString()
Prints the value of this expression using a Java-style syntax.FeatureDescriptor.toString()
Returns a string representation of the object.PropertyChangeEvent.toString()
Returns a string representation of the object.Statement.toString()
Prints the value of this statement using a Java-style syntax.Modifier and TypeMethodDescriptionFeatureDescriptor.attributeNames()
Gets an enumeration of the locale-independent names of this feature.Modifier and TypeMethodDescriptionvoid
PropertyChangeSupport.addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.void
VetoableChangeSupport.addVetoableChangeListener
(String propertyName, VetoableChangeListener listener) Add a VetoableChangeListener for a specific property.static <T> T
Creates an implementation oflistenerInterface
in which all of the methods in the listener interface apply the handler'saction
to thetarget
.static <T> T
EventHandler.create
(Class<T> listenerInterface, Object target, String action, String eventPropertyName) /** Creates an implementation oflistenerInterface
in which all of the methods pass the value of the event expression,eventPropertyName
, to the final method in the statement,action
, which is applied to thetarget
.static <T> T
EventHandler.create
(Class<T> listenerInterface, Object target, String action, String eventPropertyName, String listenerMethodName) Creates an implementation oflistenerInterface
in which the method namedlistenerMethodName
passes the value of the event expression,eventPropertyName
, to the final method in the statement,action
, which is applied to thetarget
.static String
Introspector.decapitalize
(String name) Utility method to take a string and convert it to normal Java variable name capitalization.void
PropertyChangeSupport.fireIndexedPropertyChange
(String propertyName, int index, boolean oldValue, boolean newValue) Reports a boolean bound indexed property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
PropertyChangeSupport.fireIndexedPropertyChange
(String propertyName, int index, int oldValue, int newValue) Reports an integer bound indexed property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
PropertyChangeSupport.fireIndexedPropertyChange
(String propertyName, int index, Object oldValue, Object newValue) Reports a bound indexed property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
PropertyChangeSupport.firePropertyChange
(String propertyName, boolean oldValue, boolean newValue) Reports a boolean bound property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
PropertyChangeSupport.firePropertyChange
(String propertyName, int oldValue, int newValue) Reports an integer bound property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
PropertyChangeSupport.firePropertyChange
(String propertyName, Object oldValue, Object newValue) Reports a bound property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
VetoableChangeSupport.fireVetoableChange
(String propertyName, boolean oldValue, boolean newValue) Reports a boolean constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
VetoableChangeSupport.fireVetoableChange
(String propertyName, int oldValue, int newValue) Reports an integer constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.void
VetoableChangeSupport.fireVetoableChange
(String propertyName, Object oldValue, Object newValue) Reports a constrained property update to listeners that have been registered to track updates of all properties or a property with the specified name.PropertyChangeSupport.getPropertyChangeListeners
(String propertyName) Returns an array of all the listeners which have been associated with the named property.Retrieve a named attribute with this feature.VetoableChangeSupport.getVetoableChangeListeners
(String propertyName) Returns an array of all the listeners which have been associated with the named property.boolean
PropertyChangeSupport.hasListeners
(String propertyName) Check if there are any listeners for a specific property, including those registered on all properties.boolean
VetoableChangeSupport.hasListeners
(String propertyName) Check if there are any listeners for a specific property, including those registered on all properties.static Object
Beans.instantiate
(ClassLoader cls, String beanName) Instantiate a JavaBean.static Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext) Instantiate a JavaBean.static Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated.This is a utility method to help in loading icon images.void
PropertyChangeSupport.removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.void
VetoableChangeSupport.removeVetoableChangeListener
(String propertyName, VetoableChangeListener listener) Remove a VetoableChangeListener for a specific property.void
Set the property value by parsing a given String.void
Sets the property value by parsing a given String.static void
Introspector.setBeanInfoSearchPath
(String[] path) Change the list of package names that will be used for finding BeanInfo classes.void
FeatureDescriptor.setDisplayName
(String displayName) Sets the localized display name of this feature.static void
PropertyEditorManager.setEditorSearchPath
(String[] path) Change the list of package names that will be used for finding property editors.void
Sets the programmatic name of this feature.void
FeatureDescriptor.setShortDescription
(String text) You can associate a short descriptive string with a feature.void
Associate a named attribute with this feature.ModifierConstructorDescriptionDefaultPersistenceDelegate
(String[] constructorPropertyNames) Creates a default persistence delegate for a class with a constructor whose arguments are the values of the property names as specified byconstructorPropertyNames
.EventHandler
(Object target, String action, String eventPropertyName, String listenerMethodName) Creates a newEventHandler
object; you generally use one of thecreate
methods instead of invoking this constructor directly.EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName) Creates anEventSetDescriptor
assuming that you are following the most simple standard design pattern where a named event "fred" is (1) delivered as a call on the single method of interface FredListener, (2) has a single argument of type FredEvent, and (3) where the FredListener may be registered with a call on an addFredListener method of the source component and removed with a call on a removeFredListener method.EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) Creates anEventSetDescriptor
from scratch using string names.EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName) This constructor creates an EventSetDescriptor from scratch using string names.EventSetDescriptor
(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod) Creates anEventSetDescriptor
from scratch usingjava.lang.reflect.MethodDescriptor
andjava.lang.Class
objects.EventSetDescriptor
(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod) Creates anEventSetDescriptor
from scratch usingjava.lang.reflect.Method
andjava.lang.Class
objects.EventSetDescriptor
(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod) This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects.Expression
(Object value, Object target, String methodName, Object[] arguments) Creates a newExpression
object with the specified value for the specified target object to invoke the method specified by the name and by the array of arguments.Expression
(Object target, String methodName, Object[] arguments) Creates a newExpression
object for the specified target object to invoke the method specified by the name and by the array of arguments.IndexedPropertyChangeEvent
(Object source, String propertyName, Object oldValue, Object newValue, int index) Constructs a newIndexedPropertyChangeEvent
object.IndexedPropertyDescriptor
(String propertyName, Class<?> beanClass) This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access.IndexedPropertyDescriptor
(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName) This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.IndexedPropertyDescriptor
(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod) This constructor takes the name of a simple property, and Method objects for reading and writing the property.IntrospectionException
(String mess) Constructs anIntrospectionException
with a detailed message.PropertyChangeEvent
(Object source, String propertyName, Object oldValue, Object newValue) Constructs a newPropertyChangeEvent
.PropertyChangeListenerProxy
(String propertyName, PropertyChangeListener listener) Constructor which binds thePropertyChangeListener
to a specific property.PropertyDescriptor
(String propertyName, Class<?> beanClass) Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods.PropertyDescriptor
(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) This constructor takes the name of a simple property, and method names for reading and writing the property.PropertyDescriptor
(String propertyName, Method readMethod, Method writeMethod) This constructor takes the name of a simple property, and Method objects for reading and writing the property.PropertyVetoException
(String mess, PropertyChangeEvent evt) Constructs aPropertyVetoException
with a detailed message.Creates a newStatement
object for the specified target object to invoke the method specified by the name and by the array of arguments.VetoableChangeListenerProxy
(String propertyName, VetoableChangeListener listener) Constructor which binds theVetoableChangeListener
to a specific property.XMLEncoder
(OutputStream out, String charset, boolean declaration, int indentation) Creates a new XML encoder to write out JavaBeans to the streamout
using the givencharset
starting from the givenindentation
. -
Uses of String in java.beans.beancontext
Modifier and TypeMethodDescriptionvoid
BeanContextChild.addPropertyChangeListener
(String name, PropertyChangeListener pcl) Adds aPropertyChangeListener
to thisBeanContextChild
in order to receive aPropertyChangeEvent
whenever the specified property has changed.void
BeanContextChildSupport.addPropertyChangeListener
(String name, PropertyChangeListener pcl) Add a PropertyChangeListener for a specific property.void
BeanContextChild.addVetoableChangeListener
(String name, VetoableChangeListener vcl) Adds aVetoableChangeListener
to thisBeanContextChild
to receive events whenever the specified property changes.void
BeanContextChildSupport.addVetoableChangeListener
(String name, VetoableChangeListener vcl) Add a VetoableChangeListener for a specific property.void
BeanContextChildSupport.firePropertyChange
(String name, Object oldValue, Object newValue) Report a bound property update to any registered listeners.void
BeanContextChildSupport.fireVetoableChange
(String name, Object oldValue, Object newValue) Report a vetoable property update to any registered listeners.BeanContext.getResource
(String name, BeanContextChild bcc) Analagous tojava.lang.ClassLoader.getResource()
, this method allows aBeanContext
implementation to interpose behavior between the childComponent
and underlyingClassLoader
.BeanContextSupport.getResource
(String name, BeanContextChild bcc) BeanContext.getResourceAsStream
(String name, BeanContextChild bcc) Analagous tojava.lang.ClassLoader.getResourceAsStream()
, this method allows aBeanContext
implementation to interpose behavior between the childComponent
and underlyingClassLoader
.BeanContextSupport.getResourceAsStream
(String name, BeanContextChild bcc) BeanContext.instantiateChild
(String beanName) Instantiate the javaBean named as a child of thisBeanContext
.BeanContextSupport.instantiateChild
(String beanName) The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into aBeanContext
.void
BeanContextChild.removePropertyChangeListener
(String name, PropertyChangeListener pcl) Removes aPropertyChangeListener
from thisBeanContextChild
so that it no longer receivesPropertyChangeEvents
when the specified property is changed.void
BeanContextChildSupport.removePropertyChangeListener
(String name, PropertyChangeListener pcl) Remove a PropertyChangeListener for a specific property.void
BeanContextChild.removeVetoableChangeListener
(String name, VetoableChangeListener vcl) Removes aVetoableChangeListener
from thisBeanContextChild
so that it no longer receives events when the specified property changes.void
BeanContextChildSupport.removeVetoableChangeListener
(String name, VetoableChangeListener vcl) Removes aVetoableChangeListener
. -
Uses of String in java.io
Modifier and TypeFieldDescriptionprotected String
StringBufferInputStream.buffer
Deprecated.The string from which bytes are read.InvalidClassException.classname
Name of the invalid class.static final String
File.pathSeparator
The system-dependent path-separator character, represented as a string for convenience.static final String
File.separator
The system-dependent default name-separator character, represented as a string for convenience.StreamTokenizer.sval
If the current token is a word token, this field contains a string giving the characters of the word token.Modifier and TypeMethodDescriptionFile.getAbsolutePath()
Returns the absolute pathname string of this abstract pathname.FilePermission.getActions()
Returns the "canonical string representation" of the actions.File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname.InputStreamReader.getEncoding()
Returns the name of the character encoding being used by this stream.OutputStreamWriter.getEncoding()
Returns the name of the character encoding being used by this stream.InvalidClassException.getMessage()
Produce the message and include the classname, if present.WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one.File.getName()
Returns the name of the file or directory denoted by this abstract pathname.ObjectStreamClass.getName()
Returns the name of the class described by this descriptor.ObjectStreamField.getName()
Get the name of this field.File.getParent()
Returns the pathname string of this abstract pathname's parent, ornull
if this pathname does not name a parent directory.File.getPath()
Converts this abstract pathname into a pathname string.ObjectStreamField.getTypeString()
Return the JVM type signature.String[]
File.list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname.String[]
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.BufferedReader.readLine()
Reads a line of text.Console.readLine()
Reads a single line of text from the console.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.final String
DataInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.LineNumberReader.readLine()
Read a line of text.ObjectInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.final String
RandomAccessFile.readLine()
Reads the next line of text from this file.DataInput.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format.final String
DataInputStream.readUTF()
See the general contract of thereadUTF
method ofDataInput
.static final String
Reads from the streamin
a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as aString
.ObjectInputStream.readUTF()
Reads a String in modified UTF-8 format.final String
RandomAccessFile.readUTF()
Reads in a string from this file.ByteArrayOutputStream.toString()
Converts the buffer's contents into a string decoding bytes using the platform's default character set.ByteArrayOutputStream.toString
(int hibyte) Deprecated.This method does not properly convert bytes into characters.Converts the buffer's contents into a string by decoding the bytes using the namedcharset
.Converts the buffer's contents into a string by decoding the bytes using the specifiedcharset
.CharArrayWriter.toString()
Converts input data to a string.File.toString()
Returns the pathname string of this abstract pathname.ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass.ObjectStreamField.toString()
Return a string that describes this field.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.Modifier and TypeMethodDescriptionBufferedReader.lines()
Returns aStream
, the elements of which are lines read from thisBufferedReader
.Modifier and TypeMethodDescriptionboolean
Tests if a specified file should be included in a file list.static ObjectInputFilter
ObjectInputFilter.Config.createFilter
(String pattern) Returns an ObjectInputFilter from a string of patterns.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.abstract boolean
Return true if the named field is defaulted and has no value in this stream.Writes a formatted string to this console's output stream using the specified format string and arguments.Writes a formatted string to this output stream using the specified format string and arguments.Writes a formatted string to this output stream using the specified format string and arguments.Writes a formatted string to this writer using the specified format string and arguments.Writes a formatted string to this writer using the specified format string and arguments.abstract boolean
Get the value of the named boolean field from the persistent field.abstract byte
Get the value of the named byte field from the persistent field.abstract char
Get the value of the named char field from the persistent field.abstract double
Get the value of the named double field from the persistent field.abstract float
Get the value of the named float field from the persistent field.abstract int
Get the value of the named int field from the persistent field.abstract long
Get the value of the named long field from the persistent field.abstract short
Get the value of the named short field from the persistent field.abstract Object
Get the value of the named Object field from the persistent field.Get the field of this class by name.void
Prints a string.void
Prints a string.A convenience method to write a formatted string to this console's output stream using the specified format string and arguments.A convenience method to write a formatted string to this output stream using the specified format string and arguments.A convenience method to write a formatted string to this output stream using the specified format string and arguments.A convenience method to write a formatted string to this writer using the specified format string and arguments.A convenience method to write a formatted string to this writer using the specified format string and arguments.void
Prints a String and then terminate the line.void
Prints a String and then terminates the line.abstract void
Put the value of the named boolean field into the persistent field.abstract void
Put the value of the named byte field into the persistent field.abstract void
Put the value of the named char field into the persistent field.abstract void
Put the value of the named double field into the persistent field.abstract void
Put the value of the named float field into the persistent field.abstract void
Put the value of the named int field into the persistent field.abstract void
Put the value of the named long field into the persistent field.abstract void
Put the value of the named short field into the persistent field.abstract void
Put the value of the named Object field into the persistent field.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.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.Converts the buffer's contents into a string by decoding the bytes using the namedcharset
.static ObjectInputFilter.Status
Returns the enum constant of this class with the specified name.void
Writes a portion of a String.void
Write a portion of a string to the buffer.void
Writes a portion of a string.void
Writes a portion of a string.void
Writes a string.void
Writes a portion of a string.void
Write a string.void
Write a portion of a string.void
Writes a string.void
Writes a portion of a string.void
DataOutput.writeBytes
(String s) Writes a string to the output stream.final void
DataOutputStream.writeBytes
(String s) Writes out the string to the underlying output stream as a sequence of bytes.void
ObjectOutputStream.writeBytes
(String str) Writes a String as a sequence of bytes.final void
RandomAccessFile.writeBytes
(String s) Writes the string to the file as a sequence of bytes.void
DataOutput.writeChars
(String s) Writes every character in the strings
, to the output stream, in order, two bytes per character.final void
DataOutputStream.writeChars
(String s) Writes a string to the underlying output stream as a sequence of characters.void
ObjectOutputStream.writeChars
(String str) Writes a String as a sequence of chars.final void
RandomAccessFile.writeChars
(String s) Writes a string to the file as a sequence of characters.void
Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the strings
.final void
Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.void
Primitive data write of this String in modified UTF-8 format.final void
Writes a string to the file using modified UTF-8 encoding in a machine-independent manner.ModifierConstructorDescriptionThis provides a detailed message.Constructs anEOFException
with the specified detail message.Creates a newFile
instance from a parent abstract pathname and a child pathname string.Creates a newFile
instance by converting the given pathname string into an abstract pathname.Creates a newFile
instance from a parent pathname string and a child pathname string.FileInputStream
(String name) Creates aFileInputStream
by opening a connection to an actual file, the file named by the path namename
in the file system.Constructs aFileNotFoundException
with the specified detail message.FileOutputStream
(String name) Creates a file output stream to write to the file with the specified name.FileOutputStream
(String name, boolean append) Creates a file output stream to write to the file with the specified name.FilePermission
(String path, String actions) Creates a new FilePermission object with the specified actions.FileReader
(String fileName) Creates a newFileReader
, given the name of the file to read, using the platform's default charset.FileReader
(String fileName, Charset charset) Creates a newFileReader
, given the name of the file to read and the charset.FileWriter
(String fileName) Constructs aFileWriter
given a file name, using the platform's default charsetFileWriter
(String fileName, boolean append) Constructs aFileWriter
given a file name and a boolean indicating whether to append the data written, using the platform's default charset.FileWriter
(String fileName, Charset charset) Constructs aFileWriter
given a file name and charset.FileWriter
(String fileName, Charset charset, boolean append) Constructs aFileWriter
given a file name, charset and a boolean indicating whether to append the data written.InputStreamReader
(InputStream in, String charsetName) Creates an InputStreamReader that uses the named charset.Constructs anInterruptedIOException
with the specified detail message.InvalidClassException
(String reason) Report an InvalidClassException for the reason specified.InvalidClassException
(String cname, String reason) Constructs an InvalidClassException object.InvalidObjectException
(String reason) Constructs anInvalidObjectException
.IOException
(String message) Constructs anIOException
with the specified detail message.IOException
(String message, Throwable cause) Constructs anIOException
with the specified detail message and cause.NotActiveException
(String reason) Constructor to create a new NotActiveException with the reason given.NotSerializableException
(String classname) Constructs a NotSerializableException object with message string.protected
ObjectStreamException
(String message) Create an ObjectStreamException with the specified argument.ObjectStreamField
(String name, Class<?> type) Create a Serializable field with the specified type.ObjectStreamField
(String name, Class<?> type, boolean unshared) Creates an ObjectStreamField representing a serializable field with the given name and type.OutputStreamWriter
(OutputStream out, String charsetName) Creates an OutputStreamWriter that uses the named charset.PrintStream
(File file, String csn) Creates a new print stream, without automatic line flushing, with the specified file and charset.PrintStream
(OutputStream out, boolean autoFlush, String encoding) Creates a new print stream, with the specified OutputStream, line flushing, and character encoding.PrintStream
(String fileName) Creates a new print stream, without automatic line flushing, with the specified file name.PrintStream
(String fileName, String csn) Creates a new print stream, without automatic line flushing, with the specified file name and charset.PrintStream
(String fileName, Charset charset) Creates a new print stream, without automatic line flushing, with the specified file name and charset.PrintWriter
(File file, String csn) Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.PrintWriter
(String fileName) Creates a new PrintWriter, without automatic line flushing, with the specified file name.PrintWriter
(String fileName, String csn) Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.PrintWriter
(String fileName, Charset charset) Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.RandomAccessFile
(File file, String mode) Creates a random access file stream to read from, and optionally to write to, the file specified by theFile
argument.RandomAccessFile
(String name, String mode) Creates a random access file stream to read from, and optionally to write to, a file with the specified name.SerializablePermission
(String name) Creates a new SerializablePermission with the specified name.SerializablePermission
(String name, String actions) Creates a new SerializablePermission object with the specified name.StreamCorruptedException
(String reason) Create a StreamCorruptedException and list a reason why thrown.Deprecated.Creates a string input stream to read data from the specified string.Creates a new string reader.SyncFailedException
(String desc) Constructs an SyncFailedException with a detail message.UncheckedIOException
(String message, IOException cause) Constructs an instance of this class.Constructs an UnsupportedEncodingException with a detail message.Constructs aUTFDataFormatException
with the specified detail message.WriteAbortedException
(String s, Exception ex) Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort. -
Uses of String in java.lang
Modifier and TypeFieldDescriptionstatic final Comparator<String>
String.CASE_INSENSITIVE_ORDER
A Comparator that ordersString
objects as bycompareToIgnoreCase
.Modifier and TypeMethodDescriptionstatic String
System.clearProperty
(String key) Removes the system property indicated by the specified key.Concatenates the specified string to the end of this string.EnumConstantNotPresentException.constantName()
Returns the name of the missing enum constant.static String
String.copyValueOf
(char[] data) Equivalent tovalueOf(char[])
.static String
String.copyValueOf
(char[] data, int offset, int count) Equivalent tovalueOf(char[], int, int)
.Class.descriptorString()
Returns the descriptor string of the entity (class, interface, array class, primitive type, orvoid
) represented by thisClass
object.protected String
ClassLoader.findLibrary
(String libname) Returns the absolute path name of a native library.static String
Returns a formatted string using the specified format string and arguments.static String
Returns a formatted string using the specified locale, format string, and arguments.Formats using this string as the format string, and the supplied arguments.Class.getCanonicalName()
Returns the canonical name of the underlying class as defined by The Java Language Specification.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.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.static String
Gets the value of the specified environment variable.StackTraceElement.getFileName()
Returns the name of the source file containing the execution point represented by this stack trace element.StackWalker.StackFrame.getFileName()
Returns the name of the source file containing the execution point represented by this stack frame.Package.getImplementationTitle()
Return the title of this package.Package.getImplementationVendor()
Returns the vendor that implemented this package,null
is returned if it is not known.Package.getImplementationVersion()
Return the version of this implementation.Throwable.getLocalizedMessage()
Creates a localized description of this throwable.NullPointerException.getMessage()
Returns the detail message string of this throwable.Throwable.getMessage()
Returns the detail message string of this throwable.StackTraceElement.getMethodName()
Returns the name of the method containing the execution point represented by this stack trace element.StackWalker.StackFrame.getMethodName()
Gets the name of the method represented by this stack frame.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.static String
Character.getName
(int codePoint) Returns the Unicode name of the specified charactercodePoint
, or null if the code point isunassigned
.Class.getName()
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by thisClass
object.ClassLoader.getName()
Returns the name of this class loader ornull
if this class loader is not named.Module.getName()
Returns the module name ornull
if this module is an unnamed module.Package.getName()
Return the name of this package.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.final String
ThreadGroup.getName()
Returns the name of this thread group.Class.getPackageName()
Returns the fully qualified package name.static String
System.getProperty
(String key) Gets the system property indicated by the specified key.static String
System.getProperty
(String key, String def) Gets the system property indicated by the specified key.Class.getSimpleName()
Returns the simple name of the underlying class as given in the source code.Package.getSpecificationTitle()
Return the title of the specification that this package implements.Package.getSpecificationVendor()
Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package.Package.getSpecificationVersion()
Returns the version number of the specification that this package implements.Class.getTypeName()
Return an informative string for the name of this class or interface.String.indent
(int n) Adjusts the indentation of each line of this string based on the value ofn
, 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 theCharSequence elements
joined together with a copy of the specifieddelimiter
.static String
String.join
(CharSequence delimiter, Iterable<? extends CharSequence> elements) Returns a newString
composed of copies of theCharSequence elements
joined together with a copy of the specifieddelimiter
.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.final String
Enum.name()
Returns the name of this enum constant, exactly as declared in its enum declaration.String.repeat
(int count) Returns a string whose value is the concatenation of this string repeatedcount
times.String.replace
(char oldChar, char newChar) Returns a string resulting from replacing all occurrences ofoldChar
in this string withnewChar
.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.String.resolveConstantDesc
(MethodHandles.Lookup lookup) Resolves this instance as aConstantDesc
, the result of which is the instance itself.static String
System.setProperty
(String key, String value) Sets the system property indicated by the specified key.String[]
Splits this string around matches of the given regular expression.String[]
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.StringBuffer.substring
(int start) StringBuffer.substring
(int start, int end) static String
Integer.toBinaryString
(int i) Returns a string representation of the integer argument as an unsigned integer in base 2.static String
Long.toBinaryString
(long i) Returns a string representation of thelong
argument as an unsigned integer in base 2.Class.toGenericString()
Returns a string describing thisClass
, including information about modifiers and type parameters.static String
Double.toHexString
(double d) Returns a hexadecimal string representation of thedouble
argument.static String
Float.toHexString
(float f) Returns a hexadecimal string representation of thefloat
argument.static String
Integer.toHexString
(int i) Returns a string representation of the integer argument as an unsigned integer in base 16.static String
Long.toHexString
(long i) Returns a string representation of thelong
argument as an unsigned integer in base 16.String.toLowerCase()
Converts all of the characters in thisString
to lower case using the rules of the default locale.String.toLowerCase
(Locale locale) Converts all of the characters in thisString
to lower case using the rules of the givenLocale
.static String
Integer.toOctalString
(int i) Returns a string representation of the integer argument as an unsigned integer in base 8.static String
Long.toOctalString
(long i) Returns a string representation of thelong
argument as an unsigned integer in base 8.Boolean.toString()
Returns aString
object representing this Boolean's value.static String
Boolean.toString
(boolean b) Returns aString
object representing the specified boolean.Byte.toString()
Returns aString
object representing thisByte
's value.static String
Byte.toString
(byte b) Returns a newString
object representing the specifiedbyte
.final String
Character.Subset.toString()
Returns the name of this subset.Character.toString()
Returns aString
object representing thisCharacter
's value.static String
Character.toString
(char c) Returns aString
object representing the specifiedchar
.static String
Character.toString
(int codePoint) Returns aString
object representing the specified character (Unicode code point).CharSequence.toString()
Returns a string containing the characters in this sequence in the same order as this sequence.Class.toString()
Converts the object to a string.Double.toString()
Returns a string representation of thisDouble
object.static String
Double.toString
(double d) Returns a string representation of thedouble
argument.Enum.toString()
Returns the name of this enum constant, as contained in the declaration.Float.toString()
Returns a string representation of thisFloat
object.static String
Float.toString
(float f) Returns a string representation of thefloat
argument.Integer.toString()
Returns aString
object representing thisInteger
's value.static String
Integer.toString
(int i) Returns aString
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.Long.toString()
Returns aString
object representing thisLong
's value.static String
Long.toString
(long i) Returns aString
object representing the specifiedlong
.static String
Long.toString
(long i, int radix) Returns a string representation of the first argument in the radix specified by the second argument.Module.toString()
Returns the string representation of this module.ModuleLayer.toString()
Returns a string describing this module layer.Object.toString()
Returns a string representation of the object.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 aString
object representing thisShort
's value.static String
Short.toString
(short s) Returns a newString
object representing the specifiedshort
.StackTraceElement.toString()
Returns a string representation of this stack trace element.String.toString()
This object (which is already a string!)StringBuffer.toString()
StringBuilder.toString()
Thread.toString()
Returns a string representation of this thread, including the thread's name, priority, and thread group.ThreadGroup.toString()
Returns a string representation of this Thread group.Throwable.toString()
Returns a short description of this throwable.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.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.String.toUpperCase()
Converts all of the characters in thisString
to upper case using the rules of the default locale.String.toUpperCase
(Locale locale) Converts all of the characters in thisString
to upper case using the rules of the givenLocale
.String.translateEscapes()
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).TypeNotPresentException.typeName()
Returns the fully qualified name of the unavailable type.static String
String.valueOf
(boolean b) Returns the string representation of theboolean
argument.static String
String.valueOf
(char c) Returns the string representation of thechar
argument.static String
String.valueOf
(char[] data) Returns the string representation of thechar
array argument.static String
String.valueOf
(char[] data, int offset, int count) Returns the string representation of a specific subarray of thechar
array argument.static String
String.valueOf
(double d) Returns the string representation of thedouble
argument.static String
String.valueOf
(float f) Returns the string representation of thefloat
argument.static String
String.valueOf
(int i) Returns the string representation of theint
argument.static String
String.valueOf
(long l) Returns the string representation of thelong
argument.static String
Returns the string representation of theObject
argument.Modifier and TypeMethodDescriptionProcessBuilder.command()
Returns this process builder's operating system program and arguments.ProcessHandle.Info.command()
Returns the executable pathname of the process.ProcessHandle.Info.commandLine()
Returns the command line of the process.String.describeConstable()
Returns anOptional
containing the nominal descriptor for this instance, which is the instance itself.ProcessBuilder.environment()
Returns a string map view of this process builder's environment.ProcessBuilder.environment()
Returns a string map view of this process builder's environment.System.getenv()
Returns an unmodifiable string map view of the current system environment.System.getenv()
Returns an unmodifiable string map view of the current system environment.Module.getPackages()
Returns the set of package names for the packages in this module.String.lines()
Returns a stream of lines extracted from this string, separated by line terminators.Runtime.Version.optional()
Returns optional additional identifying build information.Runtime.Version.pre()
Returns the optional pre-release information.ProcessHandle.Info.user()
Return the user of the process.Modifier and TypeMethodDescriptionModule.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.ModuleLayer.Controller.addExports
(Module source, String pn, Module target) Updates modulesource
in the layer to export a package to moduletarget
.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.Updates modulesource
in the layer to open a package to moduletarget
.void
SecurityManager.checkAccept
(String host, int port) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
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) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
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) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
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) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to delete the specified file.void
Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to create a subprocess.void
Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to dynamic link the library code specified by the string argument file.void
SecurityManager.checkPackageAccess
(String pkg) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to access the specified package.void
SecurityManager.checkPackageDefinition
(String pkg) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to define classes in the specified package.void
SecurityManager.checkPropertyAccess
(String key) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to access the system property with the specifiedkey
name.void
Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to read the file specified by the string argument.void
Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the specified security context is not allowed to read the file specified by the string argument.void
SecurityManager.checkSecurityAccess
(String target) Deprecated, for removal: This API element is subject to removal in a future version.Determines whether the permission with the specified permission target name should be granted or denied.void
SecurityManager.checkWrite
(String file) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to write to the file specified by the string argument.static String
System.clearProperty
(String key) Removes the system property indicated by the specified key.static int
Character.codePointOf
(String name) Returns the code point value of the Unicode character specified by the given Unicode character name.Sets this process builder's operating system program and arguments.int
Compares two strings lexicographically.int
String.compareToIgnoreCase
(String str) Compares two strings lexicographically, ignoring case differences.static boolean
Compiler.compileClasses
(String string) Deprecated, for removal: This API element is subject to removal in a future version.Compiles all classes whose name matches the specified string.Concatenates the specified string to the end of this string.static Byte
Decodes aString
into aByte
.static Integer
Decodes aString
into anInteger
.static Long
Decodes aString
into aLong
.static Short
Decodes aString
into aShort
.protected final Class<?>
ClassLoader.defineClass
(String name, byte[] b, int off, int len) Converts an array of bytes into an instance of classClass
.protected final Class<?>
ClassLoader.defineClass
(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) Converts an array of bytes into an instance of classClass
, with a givenProtectionDomain
.protected final Class<?>
ClassLoader.defineClass
(String name, ByteBuffer b, ProtectionDomain 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 thisClassLoader
.boolean
Tests if this string ends with the specified suffix.boolean
String.equalsIgnoreCase
(String anotherString) Compares thisString
to anotherString
, ignoring case considerations.Executes the specified string command in a separate process.Executes the specified command and arguments in a separate process.Executes the specified command and arguments in a separate process with the specified environment.Executes the specified command and arguments in a separate process with the specified environment and working directory.Executes the specified string command in a separate process with the specified environment.Executes the specified string command in a separate process with the specified environment and working directory.protected Class<?>
Finds the class with the specified binary name.protected Class<?>
Finds the class with the given binary name in a module defined to this class loader.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.ModuleLayer.findLoader
(String name) Returns theClassLoader
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.protected URL
ClassLoader.findResource
(String name) Finds the resource with the given name.protected URL
ClassLoader.findResource
(String moduleName, String name) Returns a URL to a resource in a module defined to this class loader.protected Enumeration<URL>
ClassLoader.findResources
(String name) Returns an enumeration ofURL
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.static String
Returns a formatted string using the specified format string and arguments.static String
Returns a formatted string using the specified locale, format string, and arguments.static final Character.UnicodeBlock
Returns the UnicodeBlock with the given name.static final Character.UnicodeScript
Returns the UnicodeScript constant with the given Unicode script name or the script name alias.static Class<?>
Returns theClass
with the given binary name in the given module.static Class<?>
Returns theClass
object associated with the class or interface with the given string name.static Class<?>
Class.forName
(String name, boolean initialize, ClassLoader loader) Returns theClass
object associated with the class or interface with the given string name, using the given class loader.static boolean
Boolean.getBoolean
(String name) Returnstrue
if and only if the system property named by the argument exists and is equal to, ignoring case, the string"true"
.byte[]
Encodes thisString
into a sequence of bytes using the named charset, storing the result into a new byte array.protected Object
ClassLoader.getClassLoadingLock
(String className) Returns the lock object for class loading operations.Class.getDeclaredField
(String name) Returns aField
object that reflects the specified declared field of the class or interface represented by thisClass
object.Class.getDeclaredMethod
(String name, Class<?>... parameterTypes) Returns aMethod
object that reflects the specified declared method of the class or interface represented by thisClass
object.final Package
ClassLoader.getDefinedPackage
(String name) Returns aPackage
of the given name that has been defined by this class loader.static String
Gets the value of the specified environment variable.Returns aField
object that reflects the specified public member field of the class or interface represented by thisClass
object.static Integer
Integer.getInteger
(String nm) Determines the integer value of the system property with the specified name.static Integer
Integer.getInteger
(String nm, int val) Determines the integer value of the system property with the specified name.static Integer
Integer.getInteger
(String nm, Integer val) Returns the integer value of the system property with the specified name.System.LoggerFinder.getLocalizedLogger
(String name, ResourceBundle bundle, Module module) Returns a localizable instance ofLogger
for the givenmodule
.static System.Logger
Returns an instance ofLogger
for the caller's use.static System.Logger
System.getLogger
(String name, ResourceBundle bundle) Returns a localizable instance ofLogger
for the caller's use.abstract System.Logger
Returns an instance ofLogger
for the givenmodule
.static Long
Determines thelong
value of the system property with the specified name.static Long
Determines thelong
value of the system property with the specified name.static Long
Returns thelong
value of the system property with the specified name.Returns aMethod
object that reflects the specified public member method of the class or interface represented by thisClass
object.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 ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.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 ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.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.Class.getResource
(String name) Finds a resource with a given name.ClassLoader.getResource
(String name) Finds the resource with the given name.Class.getResourceAsStream
(String name) Finds a resource with a given name.ClassLoader.getResourceAsStream
(String name) Returns an input stream for reading the specified resource.Module.getResourceAsStream
(String name) Returns an input stream for reading a resource in this module.ClassLoader.getResources
(String name) Finds all the resources with the given name.static URL
ClassLoader.getSystemResource
(String name) Find a resource of the specified name from the search path used to load classes.static InputStream
ClassLoader.getSystemResourceAsStream
(String name) Open for reading, a resource of the specified name from the search path used to load classes.static Enumeration<URL>
ClassLoader.getSystemResources
(String name) Finds all resources of the specified name from the search path used to load classes.int
Returns the index within this string of the first occurrence of the specified substring.int
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.int
int
int
int
boolean
Package.isCompatibleWith
(String desired) Compare this package's specification version with a desired version.boolean
Module.isExported
(String pn) Returnstrue
if this module exports the given package unconditionally.boolean
Module.isExported
(String pn, Module other) Returnstrue
if this module exports the given package to at least the given module.boolean
Returnstrue
if this module has opened a package unconditionally.boolean
Returnstrue
if this module has opened a package to at least the given module.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.int
StringBuffer.lastIndexOf
(String str) int
StringBuffer.lastIndexOf
(String str, int fromIndex) int
StringBuilder.lastIndexOf
(String str) int
StringBuilder.lastIndexOf
(String str, int fromIndex) void
Loads the native library specified by the filename argument.static void
Loads the native library specified by the filename argument.Class<?>
Loads the class with the specified binary name.protected Class<?>
Loads the class with the specified binary name.void
Runtime.loadLibrary
(String libname) Loads the native library specified by thelibname
argument.static void
System.loadLibrary
(String libname) Loads the native library specified by thelibname
argument.default void
System.Logger.log
(System.Logger.Level level, String msg) Logs a message.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, Throwable thrown) Logs a message associated with a given throwable.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.static String
System.mapLibraryName
(String libname) Maps a library name into a platform-specific string representing a native library.boolean
Tells whether or not this string matches the given regular expression.static <E extends Enum<E>>
Enum.EnumDesc<E>Returns a nominal descriptor for the specifiedenum
class and namestatic Runtime.Version
Parses the given string as a valid version string containing a version number followed by pre-release and build information.static boolean
Boolean.parseBoolean
(String s) Parses the string argument as a boolean.static byte
Parses the string argument as a signed decimalbyte
.static byte
Parses the string argument as a signedbyte
in the radix specified by the second argument.static double
Double.parseDouble
(String s) Returns a newdouble
initialized to the value represented by the specifiedString
, as performed by thevalueOf
method of classDouble
.static float
Float.parseFloat
(String s) Returns a newfloat
initialized to the value represented by the specifiedString
, as performed by thevalueOf
method of classFloat
.static int
Parses the string argument as a signed decimal integer.static int
Parses the string argument as a signed integer in the radix specified by the second argument.static long
Parses the string argument as a signed decimallong
.static long
Parses the string argument as a signedlong
in the radix specified by the second argument.static short
Short.parseShort
(String s) Parses the string argument as a signed decimalshort
.static short
Short.parseShort
(String s, int radix) Parses the string argument as a signedshort
in the radix specified by the second argument.static int
Integer.parseUnsignedInt
(String s) 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 long
Long.parseUnsignedLong
(String s) Parses the string argument as an unsigned decimallong
.static long
Long.parseUnsignedLong
(String s, int radix) Parses the string argument as an unsignedlong
in the radix specified by the second argument.boolean
String.regionMatches
(boolean ignoreCase, int toffset, String other, int ooffset, int len) Tests if two string regions are equal.boolean
String.regionMatches
(int toffset, String other, int ooffset, int len) Tests if two string regions are equal.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.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.final void
Changes the name of this thread to be equal to the argumentname
.void
ClassLoader.setPackageAssertionStatus
(String packageName, boolean enabled) Sets the package default assertion status for the named package.static String
System.setProperty
(String key, String value) Sets the system property indicated by the specified key.String[]
Splits this string around matches of the given regular expression.String[]
Splits this string around matches of the given regular expression.boolean
String.startsWith
(String prefix) Tests if this string starts with the specified prefix.boolean
String.startsWith
(String prefix, int toffset) Tests if the substring of this string beginning at the specified index starts with the specified prefix.static Boolean
Returns aBoolean
with a value represented by the specified string.static Byte
Returns aByte
object holding the value given by the specifiedString
.static Byte
Returns aByte
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static Character.UnicodeScript
Returns the enum constant of this class with the specified name.static Double
Returns aDouble
object holding thedouble
value represented by the argument strings
.static <T extends Enum<T>>
TReturns the enum constant of the specified enum class with the specified name.static Float
Returns aFloat
object holding thefloat
value represented by the argument strings
.static Integer
Returns anInteger
object holding the value of the specifiedString
.static Integer
Returns anInteger
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static Long
Returns aLong
object holding the value of the specifiedString
.static Long
Returns aLong
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static ProcessBuilder.Redirect.Type
Returns the enum constant of this class with the specified name.static Short
Returns aShort
object holding the value given by the specifiedString
.static Short
Returns aShort
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static StackWalker.Option
Returns the enum constant of this class with the specified name.static System.Logger.Level
Returns the enum constant of this class with the specified name.static Thread.State
Returns the enum constant of this class with the specified name.Modifier and TypeMethodDescriptionSets this process builder's operating system program and arguments.ModuleLayer.defineModules
(Configuration cf, Function<String, ClassLoader> clf) Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfiguration
to the Java virtual machine.static ModuleLayer.Controller
ModuleLayer.defineModules
(Configuration cf, List<ModuleLayer> parentLayers, Function<String, ClassLoader> clf) Creates a new module layer by defining the modules in the givenConfiguration
to the Java virtual machine.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.<R> R
This method allows the application of a function tothis
string.ModifierConstructorDescriptionConstructs anAbstractMethodError
with the specified detail message.Constructs anArithmeticException
with the specified detail message.Constructs anArrayIndexOutOfBoundsException
class with the specified detail message.Constructs anArrayStoreException
with the specified detail message.AssertionError
(String message, Throwable cause) Constructs a newAssertionError
with the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Constructs aBootstrapMethodError
with the specified detail message.BootstrapMethodError
(String s, Throwable cause) Constructs aBootstrapMethodError
with the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Constructs aClassCastException
with the specified detail message.Constructs aClassCircularityError
with the specified detail message.Constructs aClassFormatError
with the specified detail message.protected
ClassLoader
(String name, ClassLoader parent) Creates a new class loader of the specified name and using the specified parent class loader for delegation.Constructs aClassNotFoundException
with the specified detail message.Constructs aClassNotFoundException
with the specified detail message and optional exception that was raised while loading the class.Constructs aCloneNotSupportedException
with the specified detail message.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.protected
Sole constructor.EnumConstantNotPresentException
(Class<? extends Enum> enumType, String constantName) Constructs anEnumConstantNotPresentException
for the specified constant.Constructs a new error with the specified detail message.Constructs a new error with the specified detail message and cause.protected
Constructs a new error with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.Constructs a new exception with the specified detail message.Constructs a new exception with the specified detail message and cause.protected
Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.Constructs anExceptionInInitializerError
with the specified detail message string.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Constructs anIllegalAccessError
with the specified detail message.Constructs anIllegalAccessException
with a detail message.Constructs anIllegalArgumentException
with the specified detail message.IllegalArgumentException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs an IllegalCallerException with the specified detail message.IllegalCallerException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs anIllegalMonitorStateException
with the specified detail message.Constructs an IllegalStateException with the specified detail message.IllegalStateException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs anIllegalThreadStateException
with the specified detail message.Constructs anIncompatibleClassChangeError
with the specified detail message.Constructs anIndexOutOfBoundsException
with the specified detail message.Constructs anInstantiationError
with the specified detail message.Constructs anInstantiationException
with the specified detail message.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.InternalError
(String message) Constructs anInternalError
with the specified detail message.InternalError
(String message, Throwable cause) Constructs anInternalError
with the specified detail message and cause.Constructs anInterruptedException
with the specified detail message.Constructs aLayerInstantiationException
with the given detail message.LayerInstantiationException
(String msg, Throwable cause) Constructs aLayerInstantiationException
with the given detail message and cause.Constructs aLinkageError
with the specified detail message.LinkageError
(String s, Throwable cause) Constructs aLinkageError
with the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Constructs aNegativeArraySizeException
with the specified detail message.Constructs aNoClassDefFoundError
with the specified detail message.Constructs aNoSuchFieldError
with the specified detail message.Constructor with a detail message.Constructs aNoSuchMethodError
with the specified detail message.Constructs aNoSuchMethodException
with a detail message.Constructs aNullPointerException
with the specified detail message.Constructs aNumberFormatException
with the specified detail message.Constructs anOutOfMemoryError
with the specified detail message.ProcessBuilder
(String... command) Constructs a process builder with the specified operating system program and arguments.ReflectiveOperationException
(String message) Constructs a new exception with the specified detail message.ReflectiveOperationException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.RuntimeException
(String message) Constructs a new runtime exception with the specified detail message.RuntimeException
(String message, Throwable cause) Constructs a new runtime exception with the specified detail message and cause.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.RuntimePermission
(String name) Creates a new RuntimePermission with the specified name.RuntimePermission
(String name, String actions) Creates a new RuntimePermission object with the specified name.Constructs aSecurityException
with the specified detail message.SecurityException
(String message, Throwable cause) Creates aSecurityException
with the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Constructs aStackOverflowError
with the specified detail message.StackTraceElement
(String declaringClass, String methodName, String fileName, int lineNumber) Creates a stack trace element representing the specified execution point.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.Constructs a newString
by decoding the specified subarray of bytes using the specified charset.Constructs a newString
by decoding the specified array of bytes using the specified charset.Initializes a newly createdString
object so that it represents the same sequence of characters as the argument; in other words, the newly created string is a copy of the argument string.StringBuffer
(String str) Constructs a string buffer initialized to the contents of the specified string.StringBuilder
(String str) Constructs a string builder initialized to the contents of the specified string.Constructs aStringIndexOutOfBoundsException
with the specified detail message.protected
Constructs a newSubset
instance.Allocates a newThread
object.Allocates a newThread
object.Thread
(ThreadGroup group, Runnable target, String name) Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, and belongs to the thread group referred to bygroup
.Thread
(ThreadGroup group, Runnable target, String name, long stackSize) Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, and belongs to the thread group referred to bygroup
, and has the specified stack size.Thread
(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals) Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, belongs to the thread group referred to bygroup
, has the specifiedstackSize
, and inherits initial values for inheritable thread-local variables ifinheritThreadLocals
istrue
.Thread
(ThreadGroup group, String name) Allocates a newThread
object.ThreadGroup
(String name) Constructs a new thread group.ThreadGroup
(ThreadGroup parent, String name) Creates a new thread group.Constructs a new throwable with the specified detail message.Constructs a new throwable with the specified detail message and cause.protected
Constructs a new throwable with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.TypeNotPresentException
(String typeName, Throwable cause) Constructs aTypeNotPresentException
for the named type with the specified cause.Constructs anUnknownError
with the specified detail message.Constructs anUnsatisfiedLinkError
with the specified detail message.Constructs aUnsupportedClassVersionError
with the specified detail message.UnsupportedOperationException
(String message) Constructs an UnsupportedOperationException with the specified detail message.UnsupportedOperationException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs anVerifyError
with the specified detail message.VirtualMachineError
(String message) Constructs aVirtualMachineError
with the specified detail message.VirtualMachineError
(String message, Throwable cause) Constructs aVirtualMachineError
with the specified detail message and cause.ModifierConstructorDescriptionProcessBuilder
(List<String> command) Constructs a process builder with the specified operating system program and arguments. -
Uses of String in java.lang.annotation
Modifier and TypeMethodDescriptionIncompleteAnnotationException.elementName()
Returns the name of the missing element.AnnotationTypeMismatchException.foundType()
Returns the type of data found in the incorrectly typed element.Annotation.toString()
Returns a string representation of this annotation.Modifier and TypeMethodDescriptionstatic ElementType
Returns the enum constant of this class with the specified name.static RetentionPolicy
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionAnnotationFormatError
(String message) Constructs a newAnnotationFormatError
with the specified detail message.AnnotationFormatError
(String message, Throwable cause) Constructs a newAnnotationFormatError
with the specified detail message and cause.AnnotationTypeMismatchException
(Method element, String foundType) 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.lang.constant
Modifier and TypeFieldDescriptionstatic final String
ConstantDescs.DEFAULT_NAME
Invocation name to use when no name is needed, such as the name of a constructor, or the invocation name of a dynamic constant or dynamic callsite when the bootstrap is known to ignore the invocation name.Modifier and TypeMethodDescriptionDynamicConstantDesc.constantName()
Returns the name that would appear in theNameAndType
operand of theLDC
for this constant.ClassDesc.descriptorString()
Returns a field type descriptor string for this typedefault String
MethodTypeDesc.descriptorString()
Returns the method type descriptor string.default String
MethodTypeDesc.displayDescriptor()
Returns a human-readable descriptor for this method type, using the canonical names for parameter and return types.default String
ClassDesc.displayName()
Returns a human-readable name for the type described by this descriptor.DynamicCallSiteDesc.invocationName()
Returns the invocation name that would appear in theNameAndType
operand of theinvokedynamic
.DirectMethodHandleDesc.lookupDescriptor()
Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode.DirectMethodHandleDesc.methodName()
Returns the name of the method or field described by this nominal descriptor.default String
ClassDesc.packageName()
Returns the package name of this ClassDesc, if it describes a class or interface type.DynamicCallSiteDesc.toString()
Returns a compact textual description of this call site description, including the bootstrap method, the invocation name and type, and the static bootstrap arguments.DynamicConstantDesc.toString()
Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.Modifier and TypeMethodDescriptiondefault ClassDesc
default ClassDesc
static ClassDesc
Returns a ClassDesc for a class or interface type, given the name of the class or interface, such as"java.lang.String"
.static ClassDesc
Returns a ClassDesc for a class or interface type, given a package name and the unqualified (simple) name for the class or interface.static DynamicCallSiteDesc
DynamicCallSiteDesc.of
(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType) Creates a nominal descriptor for aninvokedynamic
call site whose bootstrap method has no static arguments.static DynamicCallSiteDesc
DynamicCallSiteDesc.of
(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for aninvokedynamic
call site.static DirectMethodHandleDesc
MethodHandleDesc.of
(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, String lookupDescriptor) Creates a MethodHandleDesc corresponding to an invocation of a declared method, invocation of a constructor, or access to a field.static DirectMethodHandleDesc
ConstantDescs.ofCallsiteBootstrap
(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) Returns aMethodHandleDesc
corresponding to a bootstrap method for aninvokedynamic
callsite, which is a static method whose leading parameter types areLookup
,String
, andMethodType
.static <T> ConstantDesc
DynamicConstantDesc.ofCanonical
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) Returns a nominal descriptor for a dynamic constant, transforming it into a more specific type if the constant bootstrap is a well-known one and a more specific nominal descriptor type (e.g., ClassDesc) is available.static DirectMethodHandleDesc
ConstantDescs.ofConstantBootstrap
(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) Returns aMethodHandleDesc
corresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments areLookup
,String
, andClass
.static ClassDesc
ClassDesc.ofDescriptor
(String descriptor) Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.static MethodTypeDesc
MethodTypeDesc.ofDescriptor
(String descriptor) Creates a MethodTypeDesc given a method descriptor string.static DirectMethodHandleDesc
MethodHandleDesc.ofField
(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType) Creates a MethodHandleDesc corresponding to a method handle that accesses a field.static DirectMethodHandleDesc
MethodHandleDesc.ofMethod
(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType) Creates a MethodHandleDesc corresponding to an invocation of a declared method or constructor.static <T> DynamicConstantDesc<T>
DynamicConstantDesc.ofNamed
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) Returns a nominal descriptor for a dynamic constant.static DirectMethodHandleDesc.Kind
Returns the enum constant of this class with the specified name.DynamicCallSiteDesc.withNameAndType
(String invocationName, MethodTypeDesc invocationType) Returns a nominal descriptor for aninvokedynamic
call site whose bootstrap and bootstrap arguments are the same as this one, but with the specified invocationName and invocation invocationTypeModifierConstructorDescriptionprotected
DynamicConstantDesc
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for a dynamic constant. -
Uses of String in java.lang.instrument
Modifier and TypeMethodDescriptionvoid
Instrumentation.setNativeMethodPrefix
(ClassFileTransformer transformer, String prefix) This method modifies the failure handling of native method resolution by allowing retry with a prefix applied to the name.default byte[]
ClassFileTransformer.transform
(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms the given class file and returns a new replacement class file.default byte[]
ClassFileTransformer.transform
(Module module, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms the given class file and returns a new replacement class file.Modifier and TypeMethodDescriptionvoid
Instrumentation.redefineModule
(Module module, Set<Module> extraReads, Map<String, Set<Module>> extraExports, Map<String, Set<Module>> extraOpens, Set<Class<?>> extraUses, Map<Class<?>, List<Class<?>>> extraProvides) Redefine a module to expand the set of modules that it reads, the set of packages that it exports or opens, or the services that it uses or provides.ModifierConstructorDescriptionConstructs anIllegalClassFormatException
with the specified detail message.Constructs anUnmodifiableClassException
with the specified detail message.Constructs anUnmodifiableModuleException
with the specified detail message. -
Uses of String in java.lang.invoke
Modifier and TypeMethodDescriptionMethodType.descriptorString()
Returns a descriptor string for this method type.TypeDescriptor.descriptorString()
Returns the descriptor string for thisTypeDescriptor
object.SerializedLambda.getCapturingClass()
Get the name of the class that captured this lambda.SerializedLambda.getFunctionalInterfaceClass()
Get the name of the invoked type to which this lambda has been convertedSerializedLambda.getFunctionalInterfaceMethodName()
Get the name of the primary method for the functional interface to which this lambda has been converted.SerializedLambda.getFunctionalInterfaceMethodSignature()
Get the signature of the primary method for the functional interface to which this lambda has been converted.SerializedLambda.getImplClass()
Get the name of the class containing the implementation method.SerializedLambda.getImplMethodName()
Get the name of the implementation method.SerializedLambda.getImplMethodSignature()
Get the signature of the implementation method.final String
SerializedLambda.getInstantiatedMethodType()
Get the signature of the primary functional interface method after type variables are substituted with their instantiation from the capture site.MethodHandleInfo.getName()
Returns the name of the cracked method handle's underlying member.VarHandle.AccessMode.methodName()
Returns theVarHandle
signature-polymorphic method name associated with thisAccessMode
value.static String
MethodHandleInfo.referenceKindToString
(int referenceKind) Returns the descriptive name of the given reference kind, as defined in the table above.MethodType.toMethodDescriptorString()
Returns a descriptor string for the method type.MethodHandle.toString()
Returns a string representation of the method handle, starting with the string"MethodHandle"
and ending with the string representation of the method handle's type.static String
MethodHandleInfo.toString
(int kind, Class<?> defc, String name, MethodType type) Returns a string representation for aMethodHandleInfo
, given the four parts of its symbolic reference.MethodHandles.Lookup.toString()
Displays the name of the class from which lookups are to be made, followed by "/" and the name of the previous lookup class if present.MethodType.toString()
Returns a string representation of the method type, of the form"(PT0,PT1...)RT"
.final String
VarHandle.toString()
Returns a compact textual description of this VarHandle, including the type of variable described, and a description of its coordinates.VarHandle.VarHandleDesc.toString()
Returns a compact textual description of this constant description.Modifier and TypeMethodDescriptionstatic CallSite
LambdaMetafactory.altMetafactory
(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, Object... args) Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a providedMethodHandle
, after appropriate type adaptation and partial evaluation of arguments.static VarHandle
ConstantBootstraps.arrayVarHandle
(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> arrayClass) Finds aVarHandle
for an array type.MethodHandles.Lookup.bind
(Object receiver, String name, MethodType type) Produces an early-bound method handle for a non-static method.static <T> T
MethodHandles.classData
(MethodHandles.Lookup caller, String name, Class<T> type) Returns the class data associated with the lookup class of the givencaller
lookup object, ornull
.static <T> T
MethodHandles.classDataAt
(MethodHandles.Lookup caller, String name, Class<T> type, int index) Returns the element at the specified index in the class data, if the class data associated with the lookup class of the givencaller
lookup object is aList
.static <E extends Enum<E>>
EConstantBootstraps.enumConstant
(MethodHandles.Lookup lookup, String name, Class<E> type) Returns anenum
constant of the type specified bytype
with the name specified byname
.static Object
ConstantBootstraps.explicitCast
(MethodHandles.Lookup lookup, String name, Class<?> dstType, Object value) Applies a conversion from a source type to a destination type.static VarHandle
ConstantBootstraps.fieldVarHandle
(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType) Finds aVarHandle
for an instance field.Class<?>
Looks up a class by name from the lookup context defined by thisLookup
object, as if resolved by anldc
instruction.MethodHandles.Lookup.findGetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving read access to a non-static field.MethodHandles.Lookup.findSetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving write access to a non-static field.MethodHandles.Lookup.findSpecial
(Class<?> refc, String name, MethodType type, Class<?> specialCaller) Produces an early-bound method handle for a virtual method.MethodHandles.Lookup.findStatic
(Class<?> refc, String name, MethodType type) Produces a method handle for a static method.MethodHandles.Lookup.findStaticGetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving read access to a static field.MethodHandles.Lookup.findStaticSetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving write access to a static field.MethodHandles.Lookup.findStaticVarHandle
(Class<?> decl, String name, Class<?> type) Produces a VarHandle giving access to a static fieldname
of typetype
declared in a class of typedecl
.MethodHandles.Lookup.findVarHandle
(Class<?> recv, String name, Class<?> type) Produces a VarHandle giving access to a non-static fieldname
of typetype
declared in a class of typerecv
.MethodHandles.Lookup.findVirtual
(Class<?> refc, String name, MethodType type) Produces a method handle for a virtual method.static MethodType
MethodType.fromMethodDescriptorString
(String descriptor, ClassLoader loader) Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.static Object
ConstantBootstraps.getStaticFinal
(MethodHandles.Lookup lookup, String name, Class<?> type) Returns the value of a static final field declared in the class which is the same as the field's type (or, for primitive-valued fields, declared in the wrapper class.)static Object
ConstantBootstraps.getStaticFinal
(MethodHandles.Lookup lookup, String name, Class<?> type, Class<?> declaringClass) Returns the value of a static final field.static Object
ConstantBootstraps.invoke
(MethodHandles.Lookup lookup, String name, Class<?> type, MethodHandle handle, Object... args) Returns the result of invoking a method handle with the provided arguments.static CallSite
StringConcatFactory.makeConcat
(MethodHandles.Lookup lookup, String name, MethodType concatType) Facilitates the creation of optimized String concatenation methods, that can be used to efficiently concatenate a known number of arguments of known types, possibly after type adaptation and partial evaluation of arguments.static CallSite
StringConcatFactory.makeConcatWithConstants
(MethodHandles.Lookup lookup, String name, MethodType concatType, String recipe, Object... constants) Facilitates the creation of optimized String concatenation methods, that can be used to efficiently concatenate a known number of arguments of known types, possibly after type adaptation and partial evaluation of arguments.static CallSite
LambdaMetafactory.metafactory
(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType) Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a providedMethodHandle
, after appropriate type adaptation and partial evaluation of arguments.static Object
ConstantBootstraps.nullConstant
(MethodHandles.Lookup lookup, String name, Class<?> type) Returns anull
object reference for the reference type specified bytype
.static VarHandle.VarHandleDesc
Returns a VarHandle.VarHandleDesc corresponding to aVarHandle
for an instance field.static VarHandle.VarHandleDesc
VarHandle.VarHandleDesc.ofStaticField
(ClassDesc declaringClass, String name, ClassDesc fieldType) Returns a VarHandle.VarHandleDesc corresponding to aVarHandle
for a static field.static Class<?>
ConstantBootstraps.primitiveClass
(MethodHandles.Lookup lookup, String name, Class<?> type) Returns aClass
mirror for the primitive type whose type descriptor is specified byname
.static VarHandle
ConstantBootstraps.staticFieldVarHandle
(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType) Finds aVarHandle
for a static field.static String
MethodHandleInfo.toString
(int kind, Class<?> defc, String name, MethodType type) Returns a string representation for aMethodHandleInfo
, given the four parts of its symbolic reference.static VarHandle.AccessMode
VarHandle.AccessMode.valueFromMethodName
(String methodName) Returns theAccessMode
value associated with the specifiedVarHandle
signature-polymorphic method name.Returns the enum constant of this class with the specified name.static VarHandle.AccessMode
Returns the enum constant of this class with the specified name.ModifierConstructorDescriptionLambdaConversionException
(String message) Constructs aLambdaConversionException
with a message.LambdaConversionException
(String message, Throwable cause) Constructs aLambdaConversionException
with a message and cause.LambdaConversionException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs aLambdaConversionException
with a message, cause, and other settings.SerializedLambda
(Class<?> capturingClass, String functionalInterfaceClass, String functionalInterfaceMethodName, String functionalInterfaceMethodSignature, int implMethodKind, String implClass, String implMethodName, String implMethodSignature, String instantiatedMethodType, Object[] capturedArgs) Create aSerializedLambda
from the low-level information present at the lambda factory site.Constructs an exception with a message
GraphicsEnvironment.getAvailableFontFamilyNames()