Uses of Class
java.lang.String
Packages that use String
Package
Description
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 low-level access to memory and functions outside the Java runtime.
Provides services that allow Java programming language agents to instrument
programs running on the Java Virtual Machine (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
Service-provider classes for the
java.net package.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.
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.java.accessibility.util
Methods in com.sun.java.accessibility.util that return StringModifier 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.Methods in com.sun.java.accessibility.util with parameters of type StringModifier and TypeMethodDescriptionvoidTranslator.setAccessibleDescription(String s) Set the accessible description of this object.voidTranslator.setAccessibleName(String s) Set the name of this object. -
Uses of String in com.sun.jdi
Methods in com.sun.jdi that return StringModifier 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 thisReferenceTypeobject.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 identifying name for the source corresponding to this location.Location.sourceName(String stratum) Gets an identifying 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.Methods in com.sun.jdi that return types with arguments of type StringModifier 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.Methods in com.sun.jdi with parameters of type StringModifier and TypeMethodDescriptionMethod.allLineLocations(String stratum, String sourceName) Returns a list containing aLocationobject for each executable source line in this method.ReferenceType.allLineLocations(String stratum, String sourceName) Returns a list containing aLocationobject 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 single non-abstractMethodvisible from this class that has the given name and signature.ReferenceType.fieldByName(String fieldName) Finds the visibleFieldwith the given non-ambiguous name.intLocation.lineNumber(String stratum) The line number of this Location.Method.locationsOfLine(String stratum, String sourceName, int lineNumber) Returns a List containing allLocationobjects that map to the given line number and source name.ReferenceType.locationsOfLine(String stratum, String sourceName, int lineNumber) Returns a List containing allLocationobjects that map to the given line number.ReferenceType.methodsByName(String name) Returns a List containing each visibleMethodthat has the given name.ReferenceType.methodsByName(String name, String signature) Returns a List containing each visibleMethodthat has the given name and signature.Creates a string in this virtual machine.voidVirtualMachine.setDefaultStratum(String stratum) Set this VM's default stratum (seeLocationfor a discussion of strata).Location.sourceName(String stratum) Gets an identifying 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 eachLocalVariableof a given name in this method.StackFrame.visibleVariableByName(String name) Finds aLocalVariablethat matches the given name and is visible at the current frame location.Constructors in com.sun.jdi with parameters of type StringModifierConstructorDescriptionClassNotLoadedException(String className) ClassNotLoadedException(String className, String message) InternalException(String s, int errorCode) Deprecated.Deprecated.Constructs anInvalidModuleExceptionwith the given detail message.JDIPermission(String name) TheJDIPermissionclass represents access rights to theVirtualMachineManagerJDIPermission(String name, String actions) Constructs a new JDIPermission object.NativeMethodException(String message) OpaqueFrameException(String message) Constructs a OpaqueFrameException with the given detail message.VMDisconnectedException(String message) -
Uses of String in com.sun.jdi.connect
Methods in com.sun.jdi.connect that return StringModifier 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 thevalueparameter.Connector.IntegerArgument.stringValueOf(int value) Return the string representation of thevalueparameter.Connector.Argument.value()Returns the current value of the argument.Methods in com.sun.jdi.connect that return types with arguments of type StringModifier and TypeMethodDescriptionIllegalConnectorArgumentsException.argumentNames()Return aListcontaining 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.Methods in com.sun.jdi.connect with parameters of type StringModifier and TypeMethodDescriptionbooleanPerforms basic sanity check of argument.booleanPerforms basic sanity check of argument.booleanPerforms basic sanity check of argument.booleanPerforms basic sanity check of argument.booleanPerforms basic sanity check of argument.voidSets the value of the argument.Method parameters in com.sun.jdi.connect with type arguments of type StringModifier 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.voidListeningConnector.stopListening(Map<String, ? extends Connector.Argument> arguments) Cancels listening for connections.Constructors in com.sun.jdi.connect with parameters of type StringModifierConstructorDescriptionConstruct anIllegalConnectorArgumentsExceptionwith the specified detail message and the name of the argument which is invalid or inconsistent.IllegalConnectorArgumentsException(String s, List<String> names) Construct anIllegalConnectorArgumentsExceptionwith the specified detail message and aListof names of arguments which are invalid or inconsistent.TransportTimeoutException(String message) Constructs aTransportTimeoutExceptionwith the specified detail message.VMStartException(String message, Process process) Constructor parameters in com.sun.jdi.connect with type arguments of type StringModifierConstructorDescriptionIllegalConnectorArgumentsException(String s, List<String> names) Construct anIllegalConnectorArgumentsExceptionwith the specified detail message and aListof names of arguments which are invalid or inconsistent. -
Uses of String in com.sun.jdi.connect.spi
Methods in com.sun.jdi.connect.spi that return StringModifier and TypeMethodDescriptionabstract StringTransportService.ListenKey.address()Returns a string representation of the listen key.abstract StringTransportService.description()Returns a description of the transport service.abstract StringTransportService.name()Returns a name to identify the transport service.Methods in com.sun.jdi.connect.spi with parameters of type StringModifier and TypeMethodDescriptionabstract ConnectionAttaches to the specified address.abstract TransportService.ListenKeyTransportService.startListening(String address) Listens on the specified address for inbound connections.Constructors in com.sun.jdi.connect.spi with parameters of type StringModifierConstructorDescriptionClosedConnectionException(String message) Constructs aClosedConnectionExceptionwith the specified detail message. -
Uses of String in com.sun.jdi.event
Methods in com.sun.jdi.event that return StringModifier 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
Methods in com.sun.jdi.request with parameters of type StringModifier and TypeMethodDescriptionvoidClassPrepareRequest.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.voidClassUnloadRequest.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.voidExceptionRequest.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.voidMethodEntryRequest.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.voidMethodExitRequest.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.voidMonitorContendedEnteredRequest.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.voidMonitorContendedEnterRequest.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.voidMonitorWaitedRequest.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.voidMonitorWaitRequest.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.voidStepRequest.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.voidWatchpointRequest.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.voidClassPrepareRequest.addClassFilter(String classPattern) Restricts the events generated by this request to the preparation of reference types whose name matches this restricted regular expression.voidClassUnloadRequest.addClassFilter(String classPattern) Restricts the events generated by this request to the unloading of reference types whose name matches a restricted regular expression.voidExceptionRequest.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.voidMethodEntryRequest.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.voidMethodExitRequest.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.voidMonitorContendedEnteredRequest.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.voidMonitorContendedEnterRequest.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.voidMonitorWaitedRequest.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.voidMonitorWaitRequest.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.voidStepRequest.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.voidWatchpointRequest.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.voidClassPrepareRequest.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.Constructors in com.sun.jdi.request with parameters of type StringModifierConstructorDescription -
Uses of String in com.sun.management
Fields in com.sun.management declared as StringModifier and TypeFieldDescriptionstatic final StringGarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATIONNotification type denoting that the Java virtual machine has completed a garbage collection cycle.Methods in com.sun.management that return StringModifier 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 thisVMOptionwas created.GcInfo.toString()Methods in com.sun.management that return types with arguments of type StringModifier 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.Methods in com.sun.management with parameters of type StringModifier and TypeMethodDescriptionbooleanGcInfo.containsKey(String key) voidDumps the heap to theoutputFilefile in the same format as the hprof heap dump.default voidHotSpotDiagnosticMXBean.dumpThreads(String outputFile, HotSpotDiagnosticMXBean.ThreadDumpFormat format) Generate a thread dump to the given file in the given format.Object[]HotSpotDiagnosticMXBean.getVMOption(String name) Returns aVMOptionobject for a VM option of the given name.voidHotSpotDiagnosticMXBean.setVMOption(String name, String value) Sets a VM option of the given name to the specified value.Returns the enum constant of this class with the specified name.static VMOption.OriginReturns the enum constant of this class with the specified name.Constructors in com.sun.management with parameters of type StringModifierConstructorDescriptionGarbageCollectionNotificationInfo(String gcName, String gcAction, String gcCause, GcInfo gcInfo) Constructs aGarbageCollectionNotificationInfoobject.VMOption(String name, String value, boolean writeable, VMOption.Origin origin) Constructs aVMOption. -
Uses of String in com.sun.net.httpserver
Fields in com.sun.net.httpserver declared as StringModifier and TypeFieldDescriptionprotected final StringBasicAuthenticator.realmThe HTTP Basic authentication realm.Methods in com.sun.net.httpserver that return StringModifier and TypeMethodDescriptionabstract StringFilter.description()Returns a short description of thisFilter.String[]HttpsParameters.getCipherSuites()Returns a copy of the array of ciphersuites ornullif none have been set.Returns the first value from theListofStringvalues for the givenkey, ornullif no mapping for thekeyexists.HttpPrincipal.getName()Returns the contents of this principal in the form realm:username.abstract StringHttpContext.getPath()Returns the path this context was created with.abstract StringHttpExchange.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 ornullif none have been set.BasicAuthenticator.getRealm()Returns the realm thisBasicAuthenticatorwas created with.HttpPrincipal.getRealm()Returns therealmthis object was created with.abstract StringHttpExchange.getRequestMethod()Returns the request method.Request.getRequestMethod()Returns the request method.HttpPrincipal.getUsername()Returns theusernamethis object was created with.HttpPrincipal.toString()Returns the same string asHttpPrincipal.getName().Methods in com.sun.net.httpserver that return types with arguments of type StringModifier and TypeMethodDescriptionHeaders.entrySet()Headers.entrySet()HttpContext.getAttributes()Headers.keySet()Headers.values()Methods in com.sun.net.httpserver with parameters of type StringModifier and TypeMethodDescriptionstatic FilterFilter.adaptRequest(String description, UnaryOperator<Request> requestOperator) Returns a pre-processing Filter that inspects and possibly adapts the request state.voidAdds the givenvalueto the list of headers for the givenkey.static FilterFilter.afterHandler(String description, Consumer<HttpExchange> operation) Returns a post-processingFilterwith the given description and operation.static FilterFilter.beforeHandler(String description, Consumer<HttpExchange> operation) Returns a pre-processingFilterwith the given description and operation.abstract booleanBasicAuthenticator.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.static HttpServerHttpServer.create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpServerinstance with an initial context.static HttpsServerHttpsServer.create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpsServerinstance with an initial context.abstract HttpContextHttpServer.createContext(String path) Creates a HttpContext without initially specifying a handler.abstract HttpContextHttpServer.createContext(String path, HttpHandler handler) Creates aHttpContext.abstract ObjectHttpExchange.getAttribute(String name) Filtermodules may store arbitrary objects withHttpExchangeinstances as an out-of-band communication mechanism.Returns the first value from theListofStringvalues for the givenkey, ornullif no mapping for thekeyexists.static HeadersReturns an immutableHeaderswith the given name value pairs as its set of headers.static HttpHandlerReturns anHttpHandlerthat sends a response comprising the givenstatusCode,headers, andbody.abstract voidHttpServer.removeContext(String path) Removes the context identified by the given path from the server.voidSets the givenvalueas the sole header value for the givenkey.abstract voidHttpExchange.setAttribute(String name, Object value) Filtermodules may store arbitrary objects withHttpExchangeinstances as an out-of-band communication mechanism.voidHttpsParameters.setCipherSuites(String[] cipherSuites) Sets the array of ciphersuites.voidHttpsParameters.setProtocols(String[] protocols) Sets the array of protocols.static SimpleFileServer.OutputLevelReturns the enum constant of this class with the specified name.default RequestReturns an identicalRequestwith an additional header.Method parameters in com.sun.net.httpserver with type arguments of type StringModifier and TypeMethodDescriptionstatic HeadersReturns an immutableHeadersfrom the givenheaderswith the same header names and values.static HeadersReturns an immutableHeadersfrom the givenheaderswith the same header names and values.voidvoiddefault RequestReturns an identicalRequestwith an additional header.Constructors in com.sun.net.httpserver with parameters of type StringModifierConstructorDescriptionBasicAuthenticator(String realm) Creates aBasicAuthenticatorfor the given HTTP realm.BasicAuthenticator(String realm, Charset charset) Creates aBasicAuthenticatorfor the given HTTP realm and using the givenCharsetto decode the Basic authentication credentials (username and password).HttpPrincipal(String username, String realm) Creates aHttpPrincipalfrom the givenusernameandrealm.Constructor parameters in com.sun.net.httpserver with type arguments of type String -
Uses of String in com.sun.nio.sctp
Methods in com.sun.nio.sctp that return StringModifier and TypeMethodDescriptionSctpStandardSocketOptions.InitMaxStreams.toString()Returns a string representation of this init max streams, including the maximum in and out bound streams.Methods in com.sun.nio.sctp with parameters of type StringModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HandlerResultReturns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.Constructors in com.sun.nio.sctp with parameters of type StringModifierConstructorDescriptionConstructs 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
Methods in com.sun.security.auth that return StringModifier 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.Constructors in com.sun.security.auth with parameters of type StringModifierConstructorDescriptionLdapPrincipal(String name) Creates an LDAP principal.NTDomainPrincipal(String name) Create anNTDomainPrincipalwith a Windows NT domain name.Create anNTSidwith a Windows NT SID.NTSidDomainPrincipal(String name) Create anNTSidDomainPrincipalwith a Windows NT SID.NTSidGroupPrincipal(String name) Create anNTSidGroupPrincipalwith a Windows NT group name.Create anNTSidPrimaryGroupPrincipalwith a Windows NT group SID.NTSidUserPrincipal(String name) Create anNTSidUserPrincipalwith a Windows NT SID.NTUserPrincipal(String name) Create anNTUserPrincipalwith a Windows NT username.UnixNumericGroupPrincipal(String name, boolean primaryGroup) Create aUnixNumericGroupPrincipalusing aStringrepresentation of the user's group identification number (GID).Create aUnixNumericUserPrincipalusing aStringrepresentation 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
Methods in com.sun.security.auth.login with parameters of type StringModifier and TypeMethodDescriptionConfigFile.getAppConfigurationEntry(String applicationName) Retrieve an entry from theConfigurationusing an application name as an index. -
Uses of String in com.sun.security.auth.module
Fields in com.sun.security.auth.module declared as StringModifier and TypeFieldDescriptionfinal StringJndiLoginModule.GROUP_PROVIDERDirectory service/path where this module can access the relevant group information.final StringJndiLoginModule.USER_PROVIDERDirectory service/path where this module can access the relevant user information.protected StringUnixSystem.usernameThe current username.Methods in com.sun.security.auth.module that return StringModifier 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.Method parameters in com.sun.security.auth.module with type arguments of type StringModifier and TypeMethodDescriptionvoidJndiLoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule.voidKeyStoreLoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule.voidKrb5LoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule.voidLdapLoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule.voidNTLoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule.voidUnixLoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Initialize thisLoginModule. -
Uses of String in com.sun.security.jgss
Methods in com.sun.security.jgss with parameters of type StringModifier and TypeMethodDescriptionstatic InquireTypeReturns the enum constant of this class with the specified name.Constructors in com.sun.security.jgss with parameters of type StringModifierConstructorDescriptionConstructs a newInquireSecContextPermissionobject with the specified name. -
Uses of String in com.sun.source.doctree
Fields in com.sun.source.doctree declared as StringModifier and TypeFieldDescriptionfinal StringDocTree.Kind.tagNameThe name of the tag, if any, associated with this kind of node.Methods in com.sun.source.doctree that return StringModifier and TypeMethodDescriptionCommentTree.getBody()Returns the text of the comment.EscapeTree.getBody()Returns the text.TextTree.getBody()Returns the text.ReferenceTree.getSignature()Returns the signature of the Java language element being referenced, as found in@seeand 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.Methods in com.sun.source.doctree with parameters of type StringModifier and TypeMethodDescriptionstatic AttributeTree.ValueKindReturns the enum constant of this class with the specified name.static DocTree.KindReturns the enum constant of this class with the specified name. -
Uses of String in com.sun.source.tree
Methods in com.sun.source.tree that return types with arguments of type StringMethods in com.sun.source.tree with parameters of type StringModifier and TypeMethodDescriptionstatic CaseTree.CaseKindReturns 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.ModuleKindReturns the enum constant of this class with the specified name.static Tree.KindReturns the enum constant of this class with the specified name. -
Uses of String in com.sun.source.util
Methods in com.sun.source.util that return StringModifier and TypeMethodDescriptionabstract StringDocTrees.getCharacters(EntityTree tree) Returns a string containing the characters for the entity in a given entity tree, ornullif the tree does not represent a valid series of characters.abstract StringTrees.getDocComment(TreePath path) Returns the doc comment, if any, for theTreenode identified by a givenTreePath.Plugin.getName()Returns the user-friendly name of this plug-in.Methods in com.sun.source.util with parameters of type StringModifier and TypeMethodDescriptionabstract DocCommentTreeDocTrees.getDocCommentTree(Element e, String relativePath) Returns the doc comment tree of the given file whose path is specified relative to the given element.voidInitializes 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 aDOCTYPEHTML declaration.DocTreeFactory.newErroneousTree(String text, Diagnostic<JavaFileObject> diag) Creates a newErroneousTreeobject, to represent some unparseable input.DocTreeFactory.newReferenceTree(String signature) Creates a newReferenceTreeobject, to represent a reference to an API element.DocTreeFactory.newTextTree(String text) Creates a newTextTreeobject, to represent some plain text.static TaskEvent.KindReturns the enum constant of this class with the specified name. -
Uses of String in com.sun.tools.attach
Methods in com.sun.tools.attach that return StringModifier and TypeMethodDescriptionVirtualMachineDescriptor.displayName()Return the display name component of this descriptor.final StringVirtualMachine.id()Returns the identifier for this Java virtual machine.VirtualMachineDescriptor.id()Return the identifier component of this descriptor.abstract StringVirtualMachine.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.Methods in com.sun.tools.attach with parameters of type StringModifier and TypeMethodDescriptionstatic VirtualMachineAttaches to a Java virtual machine.voidLoads an agent.abstract voidLoads an agent.voidVirtualMachine.loadAgentLibrary(String agentLibrary) Loads an agent library.abstract voidVirtualMachine.loadAgentLibrary(String agentLibrary, String options) Loads an agent library.voidVirtualMachine.loadAgentPath(String agentPath) Load a native agent library by full pathname.abstract voidVirtualMachine.loadAgentPath(String agentPath, String options) Load a native agent library by full pathname.Constructors in com.sun.tools.attach with parameters of type StringModifierConstructorDescriptionConstructs anAgentInitializationExceptionwith the specified detail message.AgentInitializationException(String s, int returnValue) Constructs anAgentInitializationExceptionwith the specified detail message and the return value from the execution of the agent'sAgent_OnAttachfunction.Constructs anAgentLoadExceptionwith the specified detail message.Constructs anAttachNotSupportedExceptionwith the specified detail message.AttachOperationFailedException(String message) Constructs anAttachOperationFailedExceptionwith the specified detail message.AttachPermission(String name) Constructs a new AttachPermission object.AttachPermission(String name, String actions) Constructs a new AttachPermission object.protectedVirtualMachine(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
Methods in com.sun.tools.attach.spi that return StringModifier and TypeMethodDescriptionabstract StringAttachProvider.name()Return this provider's name.abstract StringAttachProvider.type()Return this provider's type.Methods in com.sun.tools.attach.spi with parameters of type StringModifier and TypeMethodDescriptionabstract VirtualMachineAttachProvider.attachVirtualMachine(String id) Attaches to a Java virtual machine. -
Uses of String in com.sun.tools.javac
Methods in com.sun.tools.javac with parameters of type StringModifier and TypeMethodDescriptionstatic intProgrammatic interface to the Java Programming Language compiler, javac.static intMain.compile(String[] args, PrintWriter out) Programmatic interface to the Java Programming Language compiler, javac.static voidMain entry point for the launcher. -
Uses of String in com.sun.tools.jconsole
Fields in com.sun.tools.jconsole declared as StringModifier and TypeFieldDescriptionstatic final StringJConsoleContext.CONNECTION_STATE_PROPERTYTheConnectionStatebound property name.Methods in com.sun.tools.jconsole that return types with arguments of type StringModifier and TypeMethodDescriptionJConsolePlugin.getTabs()Returns the tabs to be added in JConsole window.Methods in com.sun.tools.jconsole with parameters of type StringModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name. -
Uses of String in java.applet
Methods in java.applet that return StringModifier 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.Methods in java.applet that return types with arguments of type StringModifier 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.Methods in java.applet with parameters of type StringModifier 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 theAudioClipobject specified by theURLandnamearguments.Deprecated, for removal: This API element is subject to removal in a future version.Returns anImageobject 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.voidDeprecated, for removal: This API element is subject to removal in a future version.Plays the audio clip given theURLand a specifier that is relative to it.voidAppletContext.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.voidAppletContext.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 theurlargument.voidApplet.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".voidAppletContext.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 StringBorderLayout.AFTER_LAST_LINESynonym for PAGE_END.static final StringBorderLayout.AFTER_LINE_ENDSSynonym for LINE_END.static final StringBorderLayout.BEFORE_FIRST_LINESynonym for PAGE_START.static final StringBorderLayout.BEFORE_LINE_BEGINSSynonym for LINE_START.static final StringBorderLayout.CENTERThe center layout constraint (middle of container).static final StringFont.DIALOGA String constant for the canonical family name of the logical font "Dialog".static final StringFont.DIALOG_INPUTA String constant for the canonical family name of the logical font "DialogInput".static final StringBorderLayout.EASTThe east layout constraint (right side of container).static final StringBorderLayout.LINE_ENDThe component goes at the end of the line direction for the layout.static final StringBorderLayout.LINE_STARTThe component goes at the beginning of the line direction for the layout.static final StringFont.MONOSPACEDA String constant for the canonical family name of the logical font "Monospaced".protected StringCursor.nameThe user-visible name of the cursor.protected StringFont.nameThe logical name of thisFont, as passed to the constructor.static final StringBorderLayout.NORTHThe north layout constraint (top of container).static final StringBorderLayout.PAGE_ENDThe component comes after the last line of the layout's content.static final StringBorderLayout.PAGE_STARTThe component comes before the first line of the layout's content.static final StringFont.SANS_SERIFA String constant for the canonical family name of the logical font "SansSerif".static final StringFont.SERIFA String constant for the canonical family name of the logical font "Serif".static final StringBorderLayout.SOUTHThe south layout constraint (bottom of container).static final StringBorderLayout.WESTThe 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 thisGraphicsEnvironmentlocalized 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 thisGraphicsEnvironmentlocalized 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 StringGraphicsDevice.getIDstring()Returns the identification string associated with thisGraphicsDevice.Choice.getItem(int index) Gets the string at the specified index in thisChoicemenu.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 StringToolkit.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 StringWindow.getWarningString()Gets the warning string that is displayed with this window.AWTEvent.paramString()Returns a string representing the state of thisEvent.protected StringButton.paramString()Returns a string representing the state of thisButton.protected StringCheckbox.paramString()Returns a string representing the state of thisCheckbox.CheckboxMenuItem.paramString()Returns a string representing the state of thisCheckBoxMenuItem.protected StringChoice.paramString()Returns a string representing the state of thisChoicemenu.protected StringComponent.paramString()Returns a string representing the state of this component.protected StringContainer.paramString()Returns a string representing the state of thisContainer.protected StringDialog.paramString()Returns a string representing the state of this dialog.protected StringEvent.paramString()Deprecated.NOTE: TheEventclass is obsolete and is available only for backwards compatibility.protected StringFileDialog.paramString()Returns a string representing the state of thisFileDialogwindow.protected StringFrame.paramString()Returns a string representing the state of thisFrame.protected StringLabel.paramString()Returns a string representing the state of thisLabel.protected StringList.paramString()Returns the parameter string representing the state of this scrolling list.Menu.paramString()Returns a string representing the state of thisMenu.protected StringMenuComponent.paramString()Returns a string representing the state of thisMenuComponent.MenuItem.paramString()Returns a string representing the state of thisMenuItem.protected StringMenuShortcut.paramString()Returns the parameter string representing the state of this MenuShortcut.protected StringScrollbar.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 StringTextArea.paramString()Returns a string representing the state of thisTextArea.protected StringTextComponent.paramString()Returns a string representing the state of thisTextComponent.protected StringTextField.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 thisDimensionobject'sheightandwidthfields.Event.toString()Deprecated.NOTE: TheEventclass is obsolete and is available only for backwards compatibility.FlowLayout.toString()Returns a string representation of thisFlowLayoutobject and its values.Font.toString()Converts thisFontobject to aStringrepresentation.FontMetrics.toString()Returns a representation of thisFontMetricsobject's values as aString.Graphics.toString()Returns aStringobject representing thisGraphicsobject'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 thisInsetsobject.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 aStringrepresenting thisRectangleand its values.RenderingHints.toString()Returns a rather long string representation of the hashmap which contains the mappings of keys to values for thisRenderingHintsobject.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 TypeMethodDescriptionvoidAdds an item to thisChoicemenu.Adds the specified component to this container.voidAdds the specified item to the end of scrolling list.voidAdds the specified item to the scrolling list at the position indicated by the index.voidAdds an item with the specified label to this menu.voidObsolete as of Java 2 platform v1.1.voidDeprecated.replaced byadd(String).voidDeprecated.replaced byadd(String, int).voidBorderLayout.addLayoutComponent(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object).voidCardLayout.addLayoutComponent(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object).voidFlowLayout.addLayoutComponent(String name, Component comp) Adds the specified component to the layout.voidGridBagLayout.addLayoutComponent(String name, Component comp) Has no effect, since this layout manager does not use a per-component string.voidGridLayout.addLayoutComponent(String name, Component comp) Adds the specified component with the specified name to the layout.voidLayoutManager.addLayoutComponent(String name, Component comp) If the layout manager uses a per-component string, adds the componentcompto the layout, associating it with the string specified byname.voidComponent.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.voidContainer.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.voidKeyboardFocusManager.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.voidSystemTray.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds aPropertyChangeListenerto the list of listeners for the specific property.voidToolkit.addPropertyChangeListener(String name, PropertyChangeListener pcl) Adds the specified property change listener for the named desktop property.voidWindow.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.voidKeyboardFocusManager.addVetoableChangeListener(String propertyName, VetoableChangeListener listener) Adds a VetoableChangeListener to the listener list for a specific property.voidAppends the given text to the text area's current text.voidTextArea.appendText(String str) Deprecated.As of JDK version 1.1, replaced byappend(String).voidWindow.applyResourceBundle(String rbName) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation.intFont.canDisplayUpTo(String str) Indicates whether or not thisFontcan display a specifiedString.Toolkit.createCustomCursor(Image cursor, Point hotSpot, String name) Creates a new custom cursor object.Font.createGlyphVector(FontRenderContext frc, String str) Creates aGlyphVectorby mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont.abstract ImageToolkit.createImage(String filename) Returns an image which gets pixel data from the specified file.static ColorConverts aStringto an integer and returns the specified opaqueColor.static FontReturns theFontthat thestrargument describes.voidTrayIcon.displayMessage(String caption, String text, TrayIcon.MessageType messageType) Displays a popup message near the tray icon.abstract voidGraphics.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 voidGraphics2D.drawString(String str, float x, float y) Renders the text specified by the specifiedString, using the current text attribute state in theGraphics2Dcontext.abstract voidGraphics2D.drawString(String str, int x, int y) Renders the text of the specifiedString, using the current text attribute state in theGraphics2Dcontext.protected voidComponent.firePropertyChange(String propertyName, boolean oldValue, boolean newValue) Support for reporting bound property changes for boolean properties.voidComponent.firePropertyChange(String propertyName, byte oldValue, byte newValue) Reports a bound property change.voidComponent.firePropertyChange(String propertyName, char oldValue, char newValue) Reports a bound property change.voidComponent.firePropertyChange(String propertyName, double oldValue, double newValue) Reports a bound property change.voidComponent.firePropertyChange(String propertyName, float oldValue, float newValue) Reports a bound property change.protected voidComponent.firePropertyChange(String propertyName, int oldValue, int newValue) Support for reporting bound property changes for integer properties.voidComponent.firePropertyChange(String propertyName, long oldValue, long newValue) Reports a bound property change.voidComponent.firePropertyChange(String propertyName, short oldValue, short newValue) Reports a bound property change.protected voidComponent.firePropertyChange(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.protected voidKeyboardFocusManager.firePropertyChange(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent in response to a change in a bound property.protected voidKeyboardFocusManager.fireVetoableChange(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent in response to a change in a vetoable property.static AWTKeyStrokeAWTKeyStroke.getAWTKeyStroke(String s) Parses a string and returns anAWTKeyStroke.static ColorFinds a color in the system properties.static ColorFinds a color in the system properties.static ColorFinds a color in the system properties.final ObjectToolkit.getDesktopProperty(String propertyName) Obtains a value for the specified desktop property.static FontReturns aFontobject from the system properties list.static FontGets the specifiedFontfrom the system properties list.abstract ImageReturns 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 aLineMetricsobject 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 aPrintJobobject which is the result of initiating a print operation on the toolkit's platform.abstract PrintJobToolkit.getPrintJob(Frame frame, String jobtitle, Properties props) Gets aPrintJobobject which is the result of initiating a print operation on the toolkit's platform.abstract ObjectImage.getProperty(String name, ImageObserver observer) Gets a property of this image by name.static StringToolkit.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 thePropertyChangeListeners 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 specifiedStringin the specifiedFontRenderContext.Font.getStringBounds(String str, FontRenderContext frc) Returns the logical bounds of the specifiedStringin the specifiedFontRenderContext.FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context) Returns the bounds of the specifiedStringin the specifiedGraphicscontext.FontMetrics.getStringBounds(String str, Graphics context) Returns the bounds of the specifiedStringin the specifiedGraphicscontext.static CursorCursor.getSystemCustomCursor(String name) Returns a system-specific custom cursor object matching the specified name.KeyboardFocusManager.getVetoableChangeListeners(String propertyName) Returns an array of all theVetoableChangeListeners associated with the named property.voidInserts the item into this choice at the specified position.voidInserts a menu item with the specified label into this menu at the specified position.voidInserts the specified text at the specified position in this text area.voidTextArea.insertText(String str, int pos) Deprecated.As of JDK version 1.1, replaced byinsert(String, int).protected ObjectToolkit.lazilyLoadDesktopProperty(String name) An opportunity to lazily evaluate desktop property values.voidRemoves the first occurrence ofitemfrom theChoicemenu.voidRemoves the first occurrence of an item from the list.voidComponent.removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes aPropertyChangeListenerfrom the listener list for a specific property.voidKeyboardFocusManager.removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes a PropertyChangeListener from the listener list for a specific property.voidSystemTray.removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes aPropertyChangeListenerfrom the listener list for a specific property.voidToolkit.removePropertyChangeListener(String name, PropertyChangeListener pcl) Removes the specified property change listener for the named desktop property.voidKeyboardFocusManager.removeVetoableChangeListener(String propertyName, VetoableChangeListener listener) Removes a VetoableChangeListener from the listener list for a specific property.voidList.replaceItem(String newValue, int index) Replaces the item at the specified index in the scrolling list with the new string.voidTextArea.replaceRange(String str, int start, int end) Replaces text between the indicated start and end positions with the specified replacement text.voidTextArea.replaceText(String str, int start, int end) Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int).protected static voidAWTEventMulticaster.save(ObjectOutputStream s, String k, EventListener l) Saves a Serializable listener chain to a serialization stream.protected voidAWTEventMulticaster.saveInternal(ObjectOutputStream s, String k) Serialization support.voidSets the selected item in thisChoicemenu to be the item whose name is equal to the specified string.voidButton.setActionCommand(String command) Sets the command name for the action event fired by this button.voidMenuItem.setActionCommand(String command) Sets the command name of the action event that is fired by this menu item.voidTrayIcon.setActionCommand(String command) Sets the command name for the action event fired by this tray icon.protected final voidToolkit.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.voidFileDialog.setDirectory(String dir) Sets the directory of this file dialog window to be the specified directory.voidSets the selected file for this file dialog window to be the specified file.voidJobAttributes.setFileName(String fileName) Specifies the file name for the output file for jobs using these attributes.voidTaskbar.setIconBadge(String badge) Affixes a small system-provided badge to this application's icon.voidSets the button's label to be the specified string.voidSets this check box's label to be the string argument.voidSets the label for this menu item to the specified label.voidSets the name of the component to the specified string.voidSets the name of the component to the specified string.voidJobAttributes.setPrinter(String printer) Specifies the destination printer for jobs using these attributes.voidSets the text for this label to the specified text.voidSets the text that is presented by this text component to be the specified text.voidSets the text that is presented by this text component to be the specified text.voidSets the title of the Dialog.voidSets the title of the Dialog.voidSets the title for this frame to the specified string.voidTrayIcon.setToolTip(String tooltip) Sets the tooltip string for thisTrayIcon.voidFlips to the component that was added to this layout with the specifiedname, usingaddLayoutComponent.intFontMetrics.stringWidth(String str) Returns the total advance width for showing the specifiedStringin thisFont.Returns the enum constant of this class with the specified name.static Desktop.ActionReturns the enum constant of this class with the specified name.static Dialog.ModalExclusionTypeReturns the enum constant of this class with the specified name.static Dialog.ModalityTypeReturns 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.FeatureReturns the enum constant of this class with the specified name.static Taskbar.StateReturns the enum constant of this class with the specified name.static TrayIcon.MessageTypeReturns the enum constant of this class with the specified name.static Window.TypeReturns the enum constant of this class with the specified name.ModifierConstructorDescriptionConstructs an instance ofAWTErrorwith the specified detail message.AWTException(String msg) Constructs an instance ofAWTExceptionwith the specified detail message.AWTPermission(String name) Creates a newAWTPermissionwith the specified name.AWTPermission(String name, String actions) Creates a newAWTPermissionobject 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.protectedCreates a new custom cursor object with the specified name.Constructs an initially invisible, modelessDialogwith the specified ownerDialogand title.Constructs an initially invisibleDialogwith the specified ownerDialog, title, and modality.Dialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) Constructs an initially invisibleDialogwith the specified ownerDialog, title, modality andGraphicsConfiguration.Constructs an initially invisible, modelessDialogwith the specified ownerFrameand title.Constructs an initially invisibleDialogwith the specified ownerFrame, title and modality.Dialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc) Constructs an initially invisibleDialogwith the specified ownerFrame, title, modality, andGraphicsConfiguration.Constructs an initially invisible, modelessDialogwith the specified ownerWindowand title.Dialog(Window owner, String title, Dialog.ModalityType modalityType) Constructs an initially invisibleDialogwith the specified ownerWindow, title and modality.Dialog(Window owner, String title, Dialog.ModalityType modalityType, GraphicsConfiguration gc) Constructs an initially invisibleDialogwith 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 newFontfrom the specified name, style and point size.FontFormatException(String reason) Report a FontFormatException for the reason specified.Constructs a new, initially invisibleFrameobject with the specified title.Frame(String title, GraphicsConfiguration gc) Constructs a new, initially invisibleFrameobject 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 aJobAttributesinstance 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 aTrayIconwith the specified image and tooltip text.Creates aTrayIconwith the specified image, tooltip and popup menu. -
Uses of String in java.awt.color
Methods in java.awt.color that return StringModifier and TypeMethodDescriptionColorSpace.getName(int component) Returns the name of the component given the component index.Methods in java.awt.color with parameters of type StringModifier and TypeMethodDescriptionstatic ICC_ProfileICC_Profile.getInstance(String fileName) Constructs anICC_Profilecorresponding to the data in a file.voidWrite thisICC_Profileto a file.Constructors in java.awt.color with parameters of type StringModifierConstructorDescriptionConstructs aCMMExceptionwith the specified detail message.Constructs aProfileDataExceptionwith the specified detail message. -
Uses of String in java.awt.datatransfer
Fields in java.awt.datatransfer declared as StringModifier and TypeFieldDescriptionstatic final StringDataFlavor.javaJVMLocalObjectMimeTypeTo transfer a reference to an arbitrary Java object reference that has no associated MIME Content-type, across aTransferableinterface WITHIN THE SAME JVM, aDataFlavorwith this type/subtype is used, with arepresentationClassequal to the type of the class/interface being passed across theTransferable.static final StringDataFlavor.javaRemoteObjectMimeTypeIn order to pass a live link to a Remote object via a Drag and DropACTION_LINKoperation a Mime Content Type of application/x-java-remote-object should be used, where the representation class of theDataFlavorrepresents the type of theRemoteinterface to be transferred.static final StringDataFlavor.javaSerializedObjectMimeTypeA MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent.Methods in java.awt.datatransfer that return StringModifier and TypeMethodDescriptionstatic StringSystemFlavorMap.decodeJavaMIMEType(String nat) Decodes aStringnative for use as a Java MIME type.static StringSystemFlavorMap.encodeDataFlavor(DataFlavor flav) Encodes aDataFlavorfor use as aStringnative.static StringSystemFlavorMap.encodeJavaMIMEType(String mimeType) Encodes a MIME type for use as aStringnative.final StringDataFlavor.getDefaultRepresentationClassAsString()Returns the name of the default representation class.DataFlavor.getHumanPresentableName()Returns the human presentable name for the data format that thisDataFlavorrepresents.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 thisDataFlavorifparamNameequals "humanPresentableName".DataFlavor.getPrimaryType()Returns the primary MIME type for thisDataFlavor.DataFlavor.getSubType()Returns the sub MIME type of thisDataFlavor.protected StringDataFlavor.normalizeMimeType(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected StringDataFlavor.normalizeMimeTypeParameter(String parameterName, String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwardsDataFlavor.toString()String representation of thisDataFlavorand its parameters.Methods in java.awt.datatransfer that return types with arguments of type StringModifier and TypeMethodDescriptionFlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their correspondingDataFlavor.SystemFlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their most preferredDataFlavor.FlavorTable.getNativesForFlavor(DataFlavor flav) Returns aListofStringnatives to which the specifiedDataFlavorcorresponds.SystemFlavorMap.getNativesForFlavor(DataFlavor flav) Returns aListofStringnatives to which the specifiedDataFlavorcan be translated by the data transfer subsystem.FlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their correspondingStringnative.SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their most preferredStringnative.Methods in java.awt.datatransfer with parameters of type StringModifier and TypeMethodDescriptionvoidSystemFlavorMap.addFlavorForUnencodedNative(String nat, DataFlavor flav) Adds a mapping from a singleStringnative to a singleDataFlavor.voidSystemFlavorMap.addUnencodedNativeForFlavor(DataFlavor flav, String nat) Adds a mapping from the specifiedDataFlavor(and allDataFlavors equal to the specifiedDataFlavor) to the specifiedStringnative.static DataFlavorSystemFlavorMap.decodeDataFlavor(String nat) Decodes aStringnative for use as aDataFlavor.static StringSystemFlavorMap.decodeJavaMIMEType(String nat) Decodes aStringnative for use as a Java MIME type.static StringSystemFlavorMap.encodeJavaMIMEType(String mimeType) Encodes a MIME type for use as aStringnative.booleanDeprecated.As inconsistent withhashCode()contract, useDataFlavor.isMimeTypeEqual(String)instead.FlavorTable.getFlavorsForNative(String nat) Returns aListofDataFlavors to which the specifiedStringcorresponds.SystemFlavorMap.getFlavorsForNative(String nat) Returns aListofDataFlavors to which the specifiedStringnative can be translated by the data transfer subsystem.FlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their correspondingDataFlavor.SystemFlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their most preferredDataFlavor.DataFlavor.getParameter(String paramName) Returns the human presentable name for thisDataFlavorifparamNameequals "humanPresentableName".static booleanSystemFlavorMap.isJavaMIMEType(String str) Returns whether the specifiedStringis an encoded Java MIME type.booleanDataFlavor.isMimeTypeEqual(String mimeType) Returns whether the string representation of the MIME type passed in is equivalent to the MIME type of thisDataFlavor.protected StringDataFlavor.normalizeMimeType(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected StringDataFlavor.normalizeMimeTypeParameter(String parameterName, String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwardsvoidSystemFlavorMap.setFlavorsForNative(String nat, DataFlavor[] flavors) Discards the current mappings for the specifiedStringnative, and creates new mappings to the specifiedDataFlavors.voidDataFlavor.setHumanPresentableName(String humanPresentableName) Sets the human presentable name for the data format that thisDataFlavorrepresents.voidSystemFlavorMap.setNativesForFlavor(DataFlavor flav, String[] natives) Discards the current mappings for the specifiedDataFlavorand allDataFlavors equal to the specifiedDataFlavor, and creates new mappings to the specifiedStringnatives.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.Constructors in java.awt.datatransfer with parameters of type StringModifierConstructorDescriptionCreates a clipboard object.DataFlavor(Class<?> representationClass, String humanPresentableName) Constructs aDataFlavorthat represents a Java class.DataFlavor(String mimeType) Constructs aDataFlavorfrom amimeTypestring.DataFlavor(String mimeType, String humanPresentableName) Constructs aDataFlavorthat represents aMimeType.DataFlavor(String mimeType, String humanPresentableName, ClassLoader classLoader) Constructs aDataFlavorthat represents aMimeType.Constructs a MimeTypeParseException with the specified detail message.StringSelection(String data) Creates aTransferablecapable of transferring the specifiedString. -
Uses of String in java.awt.desktop
Methods in java.awt.desktop that return StringMethods in java.awt.desktop with parameters of type StringModifier and TypeMethodDescriptionstatic QuitStrategyReturns the enum constant of this class with the specified name.static UserSessionEvent.ReasonReturns the enum constant of this class with the specified name.Constructors in java.awt.desktop with parameters of type StringModifierConstructorDescriptionOpenFilesEvent(List<File> files, String searchTerm) Constructs anOpenFilesEvent. -
Uses of String in java.awt.dnd
Constructors in java.awt.dnd with parameters of type StringModifierConstructorDescriptionCreate an Exception with its own descriptive message -
Uses of String in java.awt.event
Methods in java.awt.event that return StringModifier and TypeMethodDescriptionActionEvent.getActionCommand()Returns the command string associated with this action.static StringKeyEvent.getKeyModifiersText(int modifiers) Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)be used insteadstatic StringKeyEvent.getKeyText(int keyCode) Returns a String describing the keyCode, such as "HOME", "F1" or "A".static StringInputEvent.getModifiersExText(int modifiers) Returns a String describing the extended modifier keys and mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift".static StringMouseEvent.getMouseModifiersText(int modifiers) Returns aStringinstance 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.Methods in java.awt.event with parameters of type StringModifier and TypeMethodDescriptionstatic FocusEvent.CauseReturns the enum constant of this class with the specified name.Constructors in java.awt.event with parameters of type StringModifierConstructorDescriptionActionEvent(Object source, int id, String command) Constructs anActionEventobject.ActionEvent(Object source, int id, String command, int modifiers) Constructs anActionEventobject with modifier keys.ActionEvent(Object source, int id, String command, long when, int modifiers) Constructs anActionEventobject with the specified modifier keys and timestamp. -
Uses of String in java.awt.font
Methods in java.awt.font that return StringModifier and TypeMethodDescriptionString[]MultipleMaster.getDesignAxisNames()Returns the name for each design axis.NumericShaper.toString()Returns aStringthat describes this shaper.TextHitInfo.toString()Returns aStringrepresenting the hit for debugging use only.TextLayout.toString()Returns debugging information for thisTextLayout.Methods in java.awt.font with parameters of type StringModifier 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.intOpenType.getFontTableSize(String strSfntTag) Returns the size of the table for a specified tag.static NumericShaper.RangeReturns the enum constant of this class with the specified name.Constructors in java.awt.font with parameters of type StringModifierConstructorDescriptionprotectedTextAttribute(String name) Constructs aTextAttributewith the specified name.TextLayout(String string, Font font, FontRenderContext frc) TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, FontRenderContext frc) Constructs aTextLayoutfrom aStringand an attribute set. -
Uses of String in java.awt.geom
Methods in java.awt.geom that return StringModifier and TypeMethodDescriptionAffineTransform.toString()Returns aStringthat represents the value of thisObject.Point2D.Double.toString()Returns aStringthat represents the value of thisPoint2D.Point2D.Float.toString()Returns aStringthat represents the value of thisPoint2D.Rectangle2D.Double.toString()Returns theStringrepresentation of thisRectangle2D.Rectangle2D.Float.toString()Returns theStringrepresentation of thisRectangle2D.Constructors in java.awt.geom with parameters of type StringModifierConstructorDescriptionConstructs anIllegalPathStateExceptionwith the specified detail message.Constructs an instance ofNoninvertibleTransformExceptionwith the specified detail message. -
Uses of String in java.awt.im.spi
Methods in java.awt.im.spi that return StringModifier 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.Methods in java.awt.im.spi with parameters of type StringModifier 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
Methods in java.awt.image that return StringModifier 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 aStringrepresentation of thisBufferedImageobject and its values.ColorModel.toString()Returns theStringrepresentation of the contents of thisColorModelobject.DirectColorModel.toString()Returns aStringthat represents thisDirectColorModel.IndexColorModel.toString()Returns theStringrepresentation of the contents of thisColorModelobject.Methods in java.awt.image with parameters of type StringModifier 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.Constructors in java.awt.image with parameters of type StringModifierConstructorDescriptionConstructs anImagingOpExceptionobject with the specified message.Constructs a newRasterFormatExceptionwith the specified message. -
Uses of String in java.awt.image.renderable
Fields in java.awt.image.renderable declared as StringModifier and TypeFieldDescriptionstatic final StringRenderableImage.HINTS_OBSERVEDString constant that can be used to identify a property on a RenderedImage obtained via the createRendering or createScaledRendering methods.Methods in java.awt.image.renderable that return StringModifier 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.Methods in java.awt.image.renderable with parameters of type StringModifier 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
Methods in java.awt.print that return StringModifier and TypeMethodDescriptionabstract StringPrinterJob.getJobName()Gets the name of the document to be printed.abstract StringPrinterJob.getUserName()Gets the name of the printing user.Methods in java.awt.print with parameters of type StringModifier and TypeMethodDescriptionstatic StreamPrintServiceFactory[]PrinterJob.lookupStreamPrintServices(String mimeType) A convenience method which locates factories for stream print services which can image 2D graphics.abstract voidPrinterJob.setJobName(String jobName) Sets the name of the document to be printed.Constructors in java.awt.print with parameters of type StringModifierConstructorDescriptionConstructs a newPrinterAbortExceptionwith the specified detail message.PrinterException(String msg) Constructs a newPrinterExceptionobject with the specified detail message. -
Uses of String in java.beans
Fields in java.beans declared as StringModifier and TypeFieldDescriptionstatic final StringDesignMode.PROPERTYNAMEThe standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.Methods in java.beans that return StringModifier and TypeMethodDescriptionstatic StringIntrospector.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.Methods in java.beans that return types with arguments of type StringModifier and TypeMethodDescriptionFeatureDescriptor.attributeNames()Gets an enumeration of the locale-independent names of this feature.Methods in java.beans with parameters of type StringModifier and TypeMethodDescriptionvoidPropertyChangeSupport.addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.voidVetoableChangeSupport.addVetoableChangeListener(String propertyName, VetoableChangeListener listener) Add a VetoableChangeListener for a specific property.static <T> TCreates an implementation oflistenerInterfacein which all of the methods in the listener interface apply the handler'sactionto thetarget.static <T> TEventHandler.create(Class<T> listenerInterface, Object target, String action, String eventPropertyName) /** Creates an implementation oflistenerInterfacein 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> TEventHandler.create(Class<T> listenerInterface, Object target, String action, String eventPropertyName, String listenerMethodName) Creates an implementation oflistenerInterfacein which the method namedlistenerMethodNamepasses the value of the event expression,eventPropertyName, to the final method in the statement,action, which is applied to thetarget.static StringIntrospector.decapitalize(String name) Utility method to take a string and convert it to normal Java variable name capitalization.voidPropertyChangeSupport.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.voidPropertyChangeSupport.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.voidPropertyChangeSupport.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.voidPropertyChangeSupport.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.voidPropertyChangeSupport.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.voidPropertyChangeSupport.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.voidVetoableChangeSupport.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.voidVetoableChangeSupport.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.voidVetoableChangeSupport.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.booleanPropertyChangeSupport.hasListeners(String propertyName) Check if there are any listeners for a specific property, including those registered on all properties.booleanVetoableChangeSupport.hasListeners(String propertyName) Check if there are any listeners for a specific property, including those registered on all properties.static ObjectBeans.instantiate(ClassLoader cls, String beanName) Instantiate a JavaBean.static ObjectBeans.instantiate(ClassLoader cls, String beanName, BeanContext beanContext) Instantiate a JavaBean.static ObjectBeans.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.voidPropertyChangeSupport.removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.voidVetoableChangeSupport.removeVetoableChangeListener(String propertyName, VetoableChangeListener listener) Remove a VetoableChangeListener for a specific property.voidSet the property value by parsing a given String.voidSets the property value by parsing a given String.static voidIntrospector.setBeanInfoSearchPath(String[] path) Change the list of package names that will be used for finding BeanInfo classes.voidFeatureDescriptor.setDisplayName(String displayName) Sets the localized display name of this feature.static voidPropertyEditorManager.setEditorSearchPath(String[] path) Change the list of package names that will be used for finding property editors.voidSets the programmatic name of this feature.voidFeatureDescriptor.setShortDescription(String text) You can associate a short descriptive string with a feature.voidAssociate a named attribute with this feature.Constructors in java.beans with parameters of type StringModifierConstructorDescriptionDefaultPersistenceDelegate(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 newEventHandlerobject; you generally use one of thecreatemethods instead of invoking this constructor directly.EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName) Creates anEventSetDescriptorassuming 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 anEventSetDescriptorfrom 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 anEventSetDescriptorfrom scratch usingjava.lang.reflect.MethodDescriptorandjava.lang.Classobjects.EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod) Creates anEventSetDescriptorfrom scratch usingjava.lang.reflect.Methodandjava.lang.Classobjects.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 newExpressionobject 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 newExpressionobject 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 newIndexedPropertyChangeEventobject.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 anIntrospectionExceptionwith a detailed message.PropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue) Constructs a newPropertyChangeEvent.PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener) Constructor which binds thePropertyChangeListenerto 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 aPropertyVetoExceptionwith a detailed message.Creates a newStatementobject 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 theVetoableChangeListenerto a specific property.XMLEncoder(OutputStream out, String charset, boolean declaration, int indentation) Creates a new XML encoder to write out JavaBeans to the streamoutusing the givencharsetstarting from the givenindentation. -
Uses of String in java.beans.beancontext
Methods in java.beans.beancontext with parameters of type StringModifier and TypeMethodDescriptionvoidBeanContextChild.addPropertyChangeListener(String name, PropertyChangeListener pcl) Adds aPropertyChangeListenerto thisBeanContextChildin order to receive aPropertyChangeEventwhenever the specified property has changed.voidBeanContextChildSupport.addPropertyChangeListener(String name, PropertyChangeListener pcl) Add a PropertyChangeListener for a specific property.voidBeanContextChild.addVetoableChangeListener(String name, VetoableChangeListener vcl) Adds aVetoableChangeListenerto thisBeanContextChildto receive events whenever the specified property changes.voidBeanContextChildSupport.addVetoableChangeListener(String name, VetoableChangeListener vcl) Add a VetoableChangeListener for a specific property.voidBeanContextChildSupport.firePropertyChange(String name, Object oldValue, Object newValue) Report a bound property update to any registered listeners.voidBeanContextChildSupport.fireVetoableChange(String name, Object oldValue, Object newValue) Report a vetoable property update to any registered listeners.BeanContext.getResource(String name, BeanContextChild bcc) Analogous tojava.lang.ClassLoader.getResource(), this method allows aBeanContextimplementation to interpose behavior between the childComponentand underlyingClassLoader.BeanContextSupport.getResource(String name, BeanContextChild bcc) BeanContext.getResourceAsStream(String name, BeanContextChild bcc) Analogous tojava.lang.ClassLoader.getResourceAsStream(), this method allows aBeanContextimplementation to interpose behavior between the childComponentand 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.voidBeanContextChild.removePropertyChangeListener(String name, PropertyChangeListener pcl) Removes aPropertyChangeListenerfrom thisBeanContextChildso that it no longer receivesPropertyChangeEventswhen the specified property is changed.voidBeanContextChildSupport.removePropertyChangeListener(String name, PropertyChangeListener pcl) Remove a PropertyChangeListener for a specific property.voidBeanContextChild.removeVetoableChangeListener(String name, VetoableChangeListener vcl) Removes aVetoableChangeListenerfrom thisBeanContextChildso that it no longer receives events when the specified property changes.voidBeanContextChildSupport.removeVetoableChangeListener(String name, VetoableChangeListener vcl) Removes aVetoableChangeListener. -
Uses of String in java.io
Modifier and TypeFieldDescriptionprotected StringStringBufferInputStream.bufferDeprecated.The string from which bytes are read.InvalidClassException.classnameName of the invalid class.static final StringFile.pathSeparatorThe system-dependent path-separator character, represented as a string for convenience.static final StringFile.separatorThe system-dependent default name-separator character, represented as a string for convenience.StreamTokenizer.svalIf 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, ornullif 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 StringDataInputStream.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 StringRandomAccessFile.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 StringDataInputStream.readUTF()See the general contract of thereadUTFmethod ofDataInput.static final StringReads from the streamina 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 StringRandomAccessFile.readUTF()Reads in a string from this file.ByteArrayOutputStream.toString()Converts the buffer's contents into a string decoding bytes using the default charset.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 TypeMethodDescriptionbooleanTests if a specified file should be included in a file list.static ObjectInputFilterObjectInputFilter.Config.createFilter(String pattern) Returns an ObjectInputFilter from a string of patterns.static FileFile.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 FileFile.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 booleanReturn 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 booleanGet the value of the named boolean field from the persistent field.abstract byteGet the value of the named byte field from the persistent field.abstract charGet the value of the named char field from the persistent field.abstract doubleGet the value of the named double field from the persistent field.abstract floatGet the value of the named float field from the persistent field.abstract intGet the value of the named int field from the persistent field.abstract longGet the value of the named long field from the persistent field.abstract shortGet the value of the named short field from the persistent field.abstract ObjectGet the value of the named Object field from the persistent field.Get the field of this class by name.voidPrints a string.voidPrints 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.voidPrints a String and then terminates the line.voidPrints a String and then terminates the line.abstract voidPut the value of the named boolean field into the persistent field.abstract voidPut the value of the named byte field into the persistent field.abstract voidPut the value of the named char field into the persistent field.abstract voidPut the value of the named double field into the persistent field.abstract voidPut the value of the named float field into the persistent field.abstract voidPut the value of the named int field into the persistent field.abstract voidPut the value of the named long field into the persistent field.abstract voidPut the value of the named short field into the persistent field.abstract voidPut 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.StatusReturns the enum constant of this class with the specified name.voidWrites a portion of a String.voidWrite a portion of a string to the buffer.voidWrites a portion of a string.voidWrites a portion of a string.voidWrites a string.voidWrites a portion of a string.voidWrite a string.voidWrite a portion of a string.voidWrites a string.voidWrites a portion of a string.voidDataOutput.writeBytes(String s) Writes a string to the output stream.final voidDataOutputStream.writeBytes(String s) Writes out the string to the underlying output stream as a sequence of bytes.voidObjectOutputStream.writeBytes(String str) Writes a String as a sequence of bytes.final voidRandomAccessFile.writeBytes(String s) Writes the string to the file as a sequence of bytes.voidDataOutput.writeChars(String s) Writes every character in the strings, to the output stream, in order, two bytes per character.final voidDataOutputStream.writeChars(String s) Writes a string to the underlying output stream as a sequence of characters.voidObjectOutputStream.writeChars(String str) Writes a String as a sequence of chars.final voidRandomAccessFile.writeChars(String s) Writes a string to the file as a sequence of characters.voidWrites two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the strings.final voidWrites a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.voidPrimitive data write of this String in modified UTF-8 format.final voidWrites a string to the file using modified UTF-8 encoding in a machine-independent manner.ModifierConstructorDescriptionThis provides a detailed message.Constructs anEOFExceptionwith the specified detail message.Creates a newFileinstance from a parent abstract pathname and a child pathname string.Creates a newFileinstance by converting the given pathname string into an abstract pathname.Creates a newFileinstance from a parent pathname string and a child pathname string.FileInputStream(String name) Creates aFileInputStreamby opening a connection to an actual file, the file named by the path namenamein the file system.Constructs aFileNotFoundExceptionwith 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 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 aFileWritergiven a file name, using the default charsetFileWriter(String fileName, boolean append) Constructs aFileWritergiven a file name and a boolean indicating whether to append the data written, using the default charset.FileWriter(String fileName, Charset charset) Constructs aFileWritergiven a file name and charset.FileWriter(String fileName, Charset charset, boolean append) Constructs aFileWritergiven 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 anInterruptedIOExceptionwith the specified detail message.InvalidClassException(String reason) Report an InvalidClassException for the reason specified.InvalidClassException(String cname, String reason) Constructs an InvalidClassException object.InvalidClassException(String cname, String reason, Throwable cause) Report an InvalidClassException for the reason and cause specified.InvalidClassException(String reason, Throwable cause) Report an InvalidClassException for the reason and cause specified.InvalidObjectException(String reason) Constructs anInvalidObjectException.InvalidObjectException(String reason, Throwable cause) Constructs anInvalidObjectExceptionwith the given reason and cause.IOException(String message) Constructs anIOExceptionwith the specified detail message.IOException(String message, Throwable cause) Constructs anIOExceptionwith 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.protectedObjectStreamException(String message) Create an ObjectStreamException with the specified argument.protectedObjectStreamException(String message, Throwable cause) Create an ObjectStreamException with the specified message and cause.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 theFileargument.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 aUTFDataFormatExceptionwith 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_ORDERA Comparator that ordersStringobjects as bycompareToIgnoreCase.static final StringTemplate.ProcessorPREVIEW<String, RuntimeException> StringTemplate.STRThisStringTemplate.ProcessorPREVIEW instance is conventionally used for the string interpolation of a suppliedStringTemplatePREVIEW.Modifier and TypeMethodDescriptionstatic StringSystem.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 StringString.copyValueOf(char[] data) Equivalent tovalueOf(char[]).static StringString.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 thisClassobject.protected StringClassLoader.findLibrary(String libname) Returns the absolute path name of a native library.static StringReturns a formatted string using the specified format string and arguments.static StringReturns 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 StringStackWalker.StackFrame.getDescriptor()Returns the descriptor of the method represented by this stack frame as defined by The Java Virtual Machine Specification.static StringGets 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,nullis 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 StringCharacter.getName(int codePoint) Returns the 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 thisClassobject.ClassLoader.getName()Returns the name of this class loader ornullif this class loader is not named.Module.getName()Returns the module name ornullif this module is an unnamed module.Package.getName()Return the name of this package.System.Logger.getName()Returns the name of this logger.final StringSystem.Logger.Level.getName()Returns the name of this level.final StringThread.getName()Returns this thread's name.final StringThreadGroup.getName()Returns the name of this thread group.Class.getPackageName()Returns the fully qualified package name.static StringSystem.getProperty(String key) Gets the system property indicated by the specified key.static StringSystem.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.default StringStringTemplate.interpolate()Returns the string interpolation of the fragments and values for thisStringTemplatePREVIEW.static StringStringTemplate.interpolate(List<String> fragments, List<?> values) Creates a string that interleaves the elements of values between the elements of fragments.static StringString.join(CharSequence delimiter, CharSequence... elements) Returns a new String composed of copies of theCharSequence elementsjoined together with a copy of the specifieddelimiter.static StringString.join(CharSequence delimiter, Iterable<? extends CharSequence> elements) Returns a newStringcomposed of copies of theCharSequence elementsjoined together with a copy of the specifieddelimiter.static StringSystem.lineSeparator()Returns the system-dependent line separator string.static StringSystem.mapLibraryName(String libname) Maps a library name into a platform-specific string representing a native library.final StringEnum.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 repeatedcounttimes.String.replace(char oldChar, char newChar) Returns a string resulting from replacing all occurrences ofoldCharin 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 StringSystem.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[]String.splitWithDelimiters(String regex, int limit) Splits this string around matches of the given regular expression and returns both the strings and the matching delimiters.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 StringInteger.toBinaryString(int i) Returns a string representation of the integer argument as an unsigned integer in base 2.static StringLong.toBinaryString(long i) Returns a string representation of thelongargument as an unsigned integer in base 2.Class.toGenericString()Returns a string describing thisClass, including information about modifiers and type parameters.static StringDouble.toHexString(double d) Returns a hexadecimal string representation of thedoubleargument.static StringFloat.toHexString(float f) Returns a hexadecimal string representation of thefloatargument.static StringInteger.toHexString(int i) Returns a string representation of the integer argument as an unsigned integer in base 16.static StringLong.toHexString(long i) Returns a string representation of thelongargument as an unsigned integer in base 16.String.toLowerCase()Converts all of the characters in thisStringto lower case using the rules of the default locale.String.toLowerCase(Locale locale) Converts all of the characters in thisStringto lower case using the rules of the givenLocale.static StringInteger.toOctalString(int i) Returns a string representation of the integer argument as an unsigned integer in base 8.static StringLong.toOctalString(long i) Returns a string representation of thelongargument as an unsigned integer in base 8.Boolean.toString()Returns aStringobject representing this Boolean's value.static StringBoolean.toString(boolean b) Returns aStringobject representing the specified boolean.Byte.toString()Returns aStringobject representing thisByte's value.static StringByte.toString(byte b) Returns a newStringobject representing the specifiedbyte.final StringCharacter.Subset.toString()Returns the name of this subset.Character.toString()Returns aStringobject representing thisCharacter's value.static StringCharacter.toString(char c) Returns aStringobject representing the specifiedchar.static StringCharacter.toString(int codePoint) Returns aStringobject 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 thisDoubleobject.static StringDouble.toString(double d) Returns a string representation of thedoubleargument.Enum.toString()Returns the name of this enum constant, as contained in the declaration.Float.toString()Returns a string representation of thisFloatobject.static StringFloat.toString(float f) Returns a string representation of thefloatargument.Integer.toString()Returns aStringobject representing thisInteger's value.static StringInteger.toString(int i) Returns aStringobject representing the specified integer.static StringInteger.toString(int i, int radix) Returns a string representation of the first argument in the radix specified by the second argument.Long.toString()Returns aStringobject representing thisLong's value.static StringLong.toString(long i) Returns aStringobject representing the specifiedlong.static StringLong.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 StringRecord.toString()Returns a string representation of the record.Runtime.Version.toString()Returns a string representation of this version.Short.toString()Returns aStringobject representing thisShort's value.static StringShort.toString(short s) Returns a newStringobject 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()static StringStringTemplate.toString(StringTemplatePREVIEW stringTemplate) Produces a diagnostic string that describes the fragments and values of the suppliedStringTemplatePREVIEW.Thread.toString()Returns a string representation of this thread.ThreadGroup.toString()Returns a string representation of this Thread group.Throwable.toString()Returns a short description of this throwable.static StringInteger.toUnsignedString(int i) Returns a string representation of the argument as an unsigned decimal value.static StringInteger.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 StringLong.toUnsignedString(long i) Returns a string representation of the argument as an unsigned decimal value.static StringLong.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 thisStringto upper case using the rules of the default locale.String.toUpperCase(Locale locale) Converts all of the characters in thisStringto 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 StringString.valueOf(boolean b) Returns the string representation of thebooleanargument.static StringString.valueOf(char c) Returns the string representation of thecharargument.static StringString.valueOf(char[] data) Returns the string representation of thechararray argument.static StringString.valueOf(char[] data, int offset, int count) Returns the string representation of a specific subarray of thechararray argument.static StringString.valueOf(double d) Returns the string representation of thedoubleargument.static StringString.valueOf(float f) Returns the string representation of thefloatargument.static StringString.valueOf(int i) Returns the string representation of theintargument.static StringString.valueOf(long l) Returns the string representation of thelongargument.static StringReturns the string representation of theObjectargument.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 anOptionalcontaining 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.StringTemplate.fragments()Returns a list of fragment literals for thisStringTemplatePREVIEW.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 modulesourcein 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 modulesourcein the layer to open a package to moduletarget.voidSecurityManager.checkAccept(String host, int port) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not permitted to accept a socket connection from the specified host and port number.voidSecurityManager.checkConnect(String host, int port) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to open a socket connection to the specified host and port number.voidSecurityManager.checkConnect(String host, int port, Object context) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the specified security context is not allowed to open a socket connection to the specified host and port number.voidSecurityManager.checkDelete(String file) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to delete the specified file.voidDeprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to create a subprocess.voidDeprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to dynamic link the library code specified by the string argument file.voidSecurityManager.checkPackageAccess(String pkg) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to access the specified package.voidSecurityManager.checkPackageDefinition(String pkg) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to define classes in the specified package.voidSecurityManager.checkPropertyAccess(String key) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to access the system property with the specifiedkeyname.voidDeprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to read the file specified by the string argument.voidDeprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the specified security context is not allowed to read the file specified by the string argument.voidSecurityManager.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.voidSecurityManager.checkWrite(String file) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityExceptionif the calling thread is not allowed to write to the file specified by the string argument.static StringSystem.clearProperty(String key) Removes the system property indicated by the specified key.static intCharacter.codePointOf(String name) Returns the code point value of the Unicode character specified by the given character name.Sets this process builder's operating system program and arguments.intCompares two strings lexicographically.intString.compareToIgnoreCase(String str) Compares two strings lexicographically, ignoring case differences.Concatenates the specified string to the end of this string.static ByteDecodes aStringinto aByte.static IntegerDecodes aStringinto anInteger.static LongDecodes aStringinto aLong.static ShortDecodes aStringinto 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 PackageClassLoader.definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) Defines a package by name in thisClassLoader.booleanTests if this string ends with the specified suffix.booleanString.equalsIgnoreCase(String anotherString) Compares thisStringto anotherString, ignoring case considerations.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[])orProcessBuildershould be used instead.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.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[])orProcessBuildershould be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[], File)orProcessBuildershould be used instead.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 StringClassLoader.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 theClassLoaderfor 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 URLClassLoader.findResource(String name) Finds the resource with the given name.protected URLClassLoader.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 ofURLobjects 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 StringReturns a formatted string using the specified format string and arguments.static StringReturns a formatted string using the specified locale, format string, and arguments.static final Character.UnicodeBlockReturns the UnicodeBlock with the given name.static final Character.UnicodeScriptReturns the UnicodeScript constant with the given Unicode script name or the script name alias.static Class<?> Returns theClasswith the given binary name in the given module.static Class<?> Returns theClassobject associated with the class or interface with the given string name.static Class<?> Class.forName(String name, boolean initialize, ClassLoader loader) Returns theClassobject associated with the class or interface with the given string name, using the given class loader.static booleanBoolean.getBoolean(String name) Returnstrueif and only if the system property named by the argument exists and is equal to, ignoring case, the string"true".byte[]Encodes thisStringinto a sequence of bytes using the named charset, storing the result into a new byte array.protected ObjectClassLoader.getClassLoadingLock(String className) Returns the lock object for class loading operations.Class.getDeclaredField(String name) Returns aFieldobject that reflects the specified declared field of the class or interface represented by thisClassobject.Class.getDeclaredMethod(String name, Class<?>... parameterTypes) Returns aMethodobject that reflects the specified declared method of the class or interface represented by thisClassobject.final PackageClassLoader.getDefinedPackage(String name) Returns aPackageof the given name that has been defined by this class loader.static StringGets the value of the specified environment variable.Returns aFieldobject that reflects the specified public member field of the class or interface represented by thisClassobject.static IntegerInteger.getInteger(String nm) Determines the integer value of the system property with the specified name.static IntegerInteger.getInteger(String nm, int val) Determines the integer value of the system property with the specified name.static IntegerInteger.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 ofLoggerfor the givenmodule.static System.LoggerReturns an instance ofLoggerfor the caller's use.static System.LoggerSystem.getLogger(String name, ResourceBundle bundle) Returns a localizable instance ofLoggerfor the caller's use.abstract System.LoggerReturns an instance ofLoggerfor the givenmodule.static LongDetermines thelongvalue of the system property with the specified name.static LongDetermines thelongvalue of the system property with the specified name.static LongReturns thelongvalue of the system property with the specified name.Returns aMethodobject that reflects the specified public member method of the class or interface represented by thisClassobject.protected PackageClassLoader.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 ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program.static PackagePackage.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 ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program.static StringSystem.getProperty(String key) Gets the system property indicated by the specified key.static StringSystem.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 URLClassLoader.getSystemResource(String name) Find a resource of the specified name from the search path used to load classes.static InputStreamClassLoader.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.intReturns the index within this string of the first occurrence of the specified substring.intReturns the index within this string of the first occurrence of the specified substring, starting at the specified index.intReturns the index of the first occurrence of the specified substring within the specified index range ofthisstring.intintintintbooleanPackage.isCompatibleWith(String desired) Compare this package's specification version with a desired version.booleanModule.isExported(String pn) Returnstrueif this module exports the given package unconditionally.booleanModule.isExported(String pn, Module other) Returnstrueif this module exports the given package to at least the given module.booleanReturnstrueif this module has opened a package unconditionally.booleanReturnstrueif this module has opened a package to at least the given module.intString.lastIndexOf(String str) Returns the index within this string of the last occurrence of the specified substring.intString.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.intStringBuffer.lastIndexOf(String str) intStringBuffer.lastIndexOf(String str, int fromIndex) intStringBuilder.lastIndexOf(String str) intStringBuilder.lastIndexOf(String str, int fromIndex) voidLoads the native library specified by the filename argument.static voidLoads 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.voidRuntime.loadLibrary(String libname) Loads the native library specified by thelibnameargument.static voidSystem.loadLibrary(String libname) Loads the native library specified by thelibnameargument.default voidSystem.Logger.log(System.Logger.Level level, String msg) Logs a message.default voidSystem.Logger.log(System.Logger.Level level, String format, Object... params) Logs a message with an optional list of parameters.default voidSystem.Logger.log(System.Logger.Level level, String msg, Throwable thrown) Logs a message associated with a given throwable.voidSystem.Logger.log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params) Logs a message with resource bundle and an optional list of parameters.voidSystem.Logger.log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown) Logs a localized message associated with a given throwable.static StringSystem.mapLibraryName(String libname) Maps a library name into a platform-specific string representing a native library.booleanTells whether or not this string matches the given regular expression.Sets the thread name.Sets the thread name to be the concatenation of a string prefix and the string representation of a counter value.static <E extends Enum<E>>
Enum.EnumDesc<E> Returns a nominal descriptor for the specifiedenumclass and namestatic StringTemplatePREVIEWReturns aStringTemplatePREVIEW as if constructed by invokingStringTemplate.of(List.of(string), List.of()).static Runtime.VersionParses the given string as a valid version string containing a version number followed by pre-release and build information.static booleanBoolean.parseBoolean(String s) Parses the string argument as a boolean.static byteParses the string argument as a signed decimalbyte.static byteParses the string argument as a signedbytein the radix specified by the second argument.static doubleDouble.parseDouble(String s) Returns a newdoubleinitialized to the value represented by the specifiedString, as performed by thevalueOfmethod of classDouble.static floatFloat.parseFloat(String s) Returns a newfloatinitialized to the value represented by the specifiedString, as performed by thevalueOfmethod of classFloat.static intParses the string argument as a signed decimal integer.static intParses the string argument as a signed integer in the radix specified by the second argument.static longParses the string argument as a signed decimallong.static longParses the string argument as a signedlongin the radix specified by the second argument.static shortShort.parseShort(String s) Parses the string argument as a signed decimalshort.static shortShort.parseShort(String s, int radix) Parses the string argument as a signedshortin the radix specified by the second argument.static intInteger.parseUnsignedInt(String s) Parses the string argument as an unsigned decimal integer.static intInteger.parseUnsignedInt(String s, int radix) Parses the string argument as an unsigned integer in the radix specified by the second argument.static longLong.parseUnsignedLong(String s) Parses the string argument as an unsigned decimallong.static longLong.parseUnsignedLong(String s, int radix) Parses the string argument as an unsignedlongin the radix specified by the second argument.booleanString.regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) Tests if two string regions are equal.booleanString.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.voidClassLoader.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 voidChanges the name of this thread to be equal to the argumentname.voidClassLoader.setPackageAssertionStatus(String packageName, boolean enabled) Sets the package default assertion status for the named package.static StringSystem.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[]String.splitWithDelimiters(String regex, int limit) Splits this string around matches of the given regular expression and returns both the strings and the matching delimiters.booleanString.startsWith(String prefix) Tests if this string starts with the specified prefix.booleanString.startsWith(String prefix, int toffset) Tests if the substring of this string beginning at the specified index starts with the specified prefix.static BooleanReturns aBooleanwith a value represented by the specified string.static ByteReturns aByteobject holding the value given by the specifiedString.static ByteReturns aByteobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static Character.UnicodeScriptReturns the enum constant of this class with the specified name.static DoubleReturns aDoubleobject holding thedoublevalue represented by the argument strings.static <T extends Enum<T>>
TReturns the enum constant of the specified enum class with the specified name.static FloatReturns aFloatobject holding thefloatvalue represented by the argument strings.static IntegerReturns anIntegerobject holding the value of the specifiedString.static IntegerReturns anIntegerobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static LongReturns aLongobject holding the value of the specifiedString.static LongReturns aLongobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static ProcessBuilder.Redirect.TypeReturns the enum constant of this class with the specified name.static ShortReturns aShortobject holding the value given by the specifiedString.static ShortReturns aShortobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static StackWalker.OptionReturns the enum constant of this class with the specified name.static System.Logger.LevelReturns the enum constant of this class with the specified name.static Thread.StateReturns 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 givenConfigurationto the Java virtual machine.static ModuleLayer.ControllerModuleLayer.defineModules(Configuration cf, List<ModuleLayer> parentLayers, Function<String, ClassLoader> clf) Creates a new module layer by defining the modules in the givenConfigurationto the Java virtual machine.static StringStringTemplate.interpolate(List<String> fragments, List<?> values) Creates a string that interleaves the elements of values between the elements of fragments.StringTemplate.Processor.Linkage.linkage(List<String> fragments, MethodType type) This method creates aMethodHandlethat when invoked with arguments of those specified intypereturns a result that equals that returned by the template processor's process method.default voidSystem.Logger.log(System.Logger.Level level, Supplier<String> msgSupplier) Logs a lazily supplied message.default voidSystem.Logger.log(System.Logger.Level level, Supplier<String> msgSupplier, Throwable thrown) Logs a lazily supplied message associated with a given throwable.static StringTemplatePREVIEWReturns a StringTemplate with the given fragments and values.<R> RThis method allows the application of a function tothisstring.ModifierConstructorDescriptionConstructs anAbstractMethodErrorwith the specified detail message.Constructs anArithmeticExceptionwith the specified detail message.Constructs anArrayIndexOutOfBoundsExceptionclass with the specified detail message.Constructs anArrayStoreExceptionwith the specified detail message.AssertionError(String message, Throwable cause) Constructs a newAssertionErrorwith 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 aBootstrapMethodErrorwith the specified detail message.BootstrapMethodError(String s, Throwable cause) Constructs aBootstrapMethodErrorwith 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 aClassCastExceptionwith the specified detail message.Constructs aClassCircularityErrorwith the specified detail message.Constructs aClassFormatErrorwith the specified detail message.protectedClassLoader(String name, ClassLoader parent) Creates a new class loader of the specified name and using the specified parent class loader for delegation.Constructs aClassNotFoundExceptionwith the specified detail message.Constructs aClassNotFoundExceptionwith the specified detail message and optional exception that was raised while loading the class.Constructs aCloneNotSupportedExceptionwith 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.protectedSole constructor.EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName) Constructs anEnumConstantNotPresentExceptionfor the specified constant.Constructs a new error with the specified detail message.Constructs a new error with the specified detail message and cause.protectedConstructs 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.protectedConstructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.Constructs anExceptionInInitializerErrorwith 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 anIllegalAccessErrorwith the specified detail message.Constructs anIllegalAccessExceptionwith a detail message.Constructs anIllegalArgumentExceptionwith 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 anIllegalMonitorStateExceptionwith 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 anIllegalThreadStateExceptionwith the specified detail message.Constructs anIncompatibleClassChangeErrorwith the specified detail message.Constructs anIndexOutOfBoundsExceptionwith the specified detail message.Constructs anInstantiationErrorwith the specified detail message.Constructs anInstantiationExceptionwith 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 anInternalErrorwith the specified detail message.InternalError(String message, Throwable cause) Constructs anInternalErrorwith the specified detail message and cause.Constructs anInterruptedExceptionwith the specified detail message.Constructs aLayerInstantiationExceptionwith the given detail message.LayerInstantiationException(String msg, Throwable cause) Constructs aLayerInstantiationExceptionwith the given detail message and cause.Constructs aLinkageErrorwith the specified detail message.LinkageError(String s, Throwable cause) Constructs aLinkageErrorwith 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.MatchException(String message, Throwable cause) Constructs anMatchExceptionwith the specified detail message and cause.Constructs aNegativeArraySizeExceptionwith the specified detail message.Constructs aNoClassDefFoundErrorwith the specified detail message.Constructs aNoSuchFieldErrorwith the specified detail message.Constructor with a detail message.Constructs aNoSuchMethodErrorwith the specified detail message.Constructs aNoSuchMethodExceptionwith a detail message.Constructs aNullPointerExceptionwith the specified detail message.Constructs aNumberFormatExceptionwith the specified detail message.Constructs anOutOfMemoryErrorwith 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.protectedRuntimeException(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 aSecurityExceptionwith the specified detail message.SecurityException(String message, Throwable cause) Creates aSecurityExceptionwith 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 aStackOverflowErrorwith 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 newStringby decoding the specified subarray of bytes using the specified charset.Constructs a newStringby decoding the specified array of bytes using the specified charset.Initializes a newly createdStringobject 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 aStringIndexOutOfBoundsExceptionwith the specified detail message.protectedConstructs a newSubsetinstance.Initializes a new platformThread.Initializes a new platformThread.Thread(ThreadGroup group, Runnable task, String name) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name, and belongs to the thread group referred to bygroup.Thread(ThreadGroup group, Runnable task, String name, long stackSize) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name, and belongs to the thread group referred to bygroup, and has the specified stack size.Thread(ThreadGroup group, Runnable task, String name, long stackSize, boolean inheritInheritableThreadLocals) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name, belongs to the thread group referred to bygroup, has the specifiedstackSize, and inherits initial values for inheritable thread-local variables ifinheritThreadLocalsistrue.Thread(ThreadGroup group, String name) Initializes a new platformThread.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.protectedConstructs 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 aTypeNotPresentExceptionfor the named type with the specified cause.Constructs anUnknownErrorwith the specified detail message.Constructs anUnsatisfiedLinkErrorwith the specified detail message.Constructs aUnsupportedClassVersionErrorwith 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 anVerifyErrorwith the specified detail message.VirtualMachineError(String message) Constructs aVirtualMachineErrorwith the specified detail message.VirtualMachineError(String message, Throwable cause) Constructs aVirtualMachineErrorwith the specified detail message and cause.Constructs a WrongThreadException with the given detail message.WrongThreadException(String message, Throwable cause) Constructs a WrongThreadException with the given 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
Methods in java.lang.annotation that return StringModifier 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.Methods in java.lang.annotation with parameters of type StringModifier and TypeMethodDescriptionstatic ElementTypeReturns the enum constant of this class with the specified name.static RetentionPolicyReturns the enum constant of this class with the specified name.Constructors in java.lang.annotation with parameters of type StringModifierConstructorDescriptionAnnotationFormatError(String message) Constructs a newAnnotationFormatErrorwith the specified detail message.AnnotationFormatError(String message, Throwable cause) Constructs a newAnnotationFormatErrorwith 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
Fields in java.lang.constant declared as StringModifier and TypeFieldDescriptionstatic final StringConstantDescs.CLASS_INIT_NAMEThe special name of class initialization methods, "<clinit>".static final StringConstantDescs.DEFAULT_NAMEInvocation 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.static final StringConstantDescs.INIT_NAMEThe special name of instance initialization methods, "<init>".Methods in java.lang.constant that return StringModifier and TypeMethodDescriptionDynamicConstantDesc.constantName()Returns the name that would appear in theNameAndTypeoperand of theLDCfor this constant.ClassDesc.descriptorString()Returns a field type descriptor string for this typeMethodTypeDesc.descriptorString()Returns the method type descriptor string.default StringMethodTypeDesc.displayDescriptor()Returns a human-readable descriptor for this method type, using the canonical names for parameter and return types.default StringClassDesc.displayName()Returns a human-readable name for the type described by this descriptor.PackageDesc.internalName()Returns the fully qualified (slash-separated) package name in internal form of thisPackageDesc.DynamicCallSiteDesc.invocationName()Returns the invocation name that would appear in theNameAndTypeoperand 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.ModuleDesc.name()Returns the module name of thisModuleDesc.default StringPackageDesc.name()Returns the fully qualified (dot-separated) package name of thisPackageDesc.default StringClassDesc.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.Methods in java.lang.constant with parameters of type StringModifier and TypeMethodDescriptiondefault ClassDescdefault ClassDescstatic ClassDescReturns a ClassDesc for a class or interface type, given the name of the class or interface, such as"java.lang.String".static ClassDescReturns a ClassDesc for a class or interface type, given a package name and the unqualified (simple) name for the class or interface.static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType) Creates a nominal descriptor for aninvokedynamiccall site whose bootstrap method has no static arguments.static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for aninvokedynamiccall site.static DirectMethodHandleDescMethodHandleDesc.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 ModuleDescReturns aModuleDescfor a module, given the name of the module.static PackageDescReturns aPackageDescfor a package, given the name of the package, such as"java.lang".static DirectMethodHandleDescConstantDescs.ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) Returns aMethodHandleDesccorresponding to a bootstrap method for aninvokedynamiccallsite, which is a static method whose leading parameter types areLookup,String, andMethodType.static <T> ConstantDescDynamicConstantDesc.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 DirectMethodHandleDescConstantDescs.ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) Returns aMethodHandleDesccorresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments areLookup,String, andClass.static ClassDescClassDesc.ofDescriptor(String descriptor) Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.static MethodTypeDescMethodTypeDesc.ofDescriptor(String descriptor) Creates a MethodTypeDesc given a method descriptor string.static DirectMethodHandleDescMethodHandleDesc.ofField(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType) Creates a MethodHandleDesc corresponding to a method handle that accesses a field.static ClassDescClassDesc.ofInternalName(String name) Returns a ClassDesc for a class or interface type, given the name of the class or interface in internal form, such as"java/lang/String".static PackageDescPackageDesc.ofInternalName(String name) Returns aPackageDescfor a package, given the name of the package in internal form, such as"java/lang".static DirectMethodHandleDescMethodHandleDesc.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.KindReturns the enum constant of this class with the specified name.DynamicCallSiteDesc.withNameAndType(String invocationName, MethodTypeDesc invocationType) Returns a nominal descriptor for aninvokedynamiccall site whose bootstrap and bootstrap arguments are the same as this one, but with the specified invocationName and invocation invocationTypeConstructors in java.lang.constant with parameters of type StringModifierConstructorDescriptionprotectedDynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for a dynamic constant. -
Uses of String in java.lang.foreign
Methods in java.lang.foreign that return StringModifier and TypeMethodDescriptiondefault StringMemorySegment.getUtf8String(long offset) Reads a UTF-8 encoded, null-terminated string from this segment at the given offset.MemoryLayout.toString()Returns the string representation of this layout.Methods in java.lang.foreign that return types with arguments of type StringModifier and TypeMethodDescriptionMemoryLayout.name()Returns the name (if any) associated with this layout.Methods in java.lang.foreign with parameters of type StringModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocateUtf8String(String str) Converts a Java string into a UTF-8 encoded, null-terminated C string, storing the result into a memory segment.static Linker.OptionPREVIEWLinker.Option.captureCallState(String... capturedState) Returns a linker option used to save portions of the execution state immediately after calling a foreign function associated with a downcall method handle, before it can be overwritten by the Java runtime, or read through conventional means.Returns the address of the symbol with the given name.MemoryLayout.PathElement.groupElement(String name) Returns a path element which selects a member layout with the given name in a group layout.static SymbolLookupPREVIEWSymbolLookup.libraryLookup(String name, ArenaPREVIEW arena) Loads a library with the given name (if not already loaded) and creates a symbol lookup for symbols in that library.default voidMemorySegment.setUtf8String(long offset, String str) Writes the given string into this segment at the given offset, converting it to a null-terminated byte sequence using UTF-8 encoding.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a memory layout with the same characteristics as this layout, but with the given name. -
Uses of String in java.lang.instrument
Methods in java.lang.instrument with parameters of type StringModifier and TypeMethodDescriptionvoidInstrumentation.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.Method parameters in java.lang.instrument with type arguments of type StringModifier and TypeMethodDescriptionvoidInstrumentation.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.Constructors in java.lang.instrument with parameters of type StringModifierConstructorDescriptionConstructs anIllegalClassFormatExceptionwith the specified detail message.Constructs anUnmodifiableClassExceptionwith the specified detail message.Constructs anUnmodifiableModuleExceptionwith the specified detail message. -
Uses of String in java.lang.invoke
Methods in java.lang.invoke that return StringModifier and TypeMethodDescriptionMethodType.descriptorString()Returns the descriptor string for this method type.TypeDescriptor.descriptorString()Returns the descriptor string for thisTypeDescriptorobject.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 StringSerializedLambda.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 theVarHandlesignature-polymorphic method name associated with thisAccessModevalue.static StringMethodHandleInfo.referenceKindToString(int referenceKind) Returns the descriptive name of the given reference kind, as defined in the table above.MethodType.toMethodDescriptorString()Returns the descriptor string for this 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 StringMethodHandleInfo.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 StringVarHandle.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.Methods in java.lang.invoke with parameters of type StringModifier and TypeMethodDescriptionstatic CallSiteLambdaMetafactory.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 VarHandleConstantBootstraps.arrayVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> arrayClass) Finds aVarHandlefor 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> TMethodHandles.classData(MethodHandles.Lookup caller, String name, Class<T> type) Returns the class data associated with the lookup class of the givencallerlookup object, ornull.static <T> TMethodHandles.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 givencallerlookup object is aList.static <E extends Enum<E>>
EConstantBootstraps.enumConstant(MethodHandles.Lookup lookup, String name, Class<E> type) Returns anenumconstant of the type specified bytypewith the name specified byname.static ObjectConstantBootstraps.explicitCast(MethodHandles.Lookup lookup, String name, Class<?> dstType, Object value) Applies a conversion from a source type to a destination type.static VarHandleConstantBootstraps.fieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType) Finds aVarHandlefor an instance field.Class<?> Looks up a class by name from the lookup context defined by thisLookupobject, as if resolved by anldcinstruction.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 fieldnameof typetypedeclared in a class of typedecl.MethodHandles.Lookup.findVarHandle(Class<?> recv, String name, Class<?> type) Produces a VarHandle giving access to a non-static fieldnameof typetypedeclared in a class of typerecv.MethodHandles.Lookup.findVirtual(Class<?> refc, String name, MethodType type) Produces a method handle for a virtual method.static MethodTypeMethodType.fromMethodDescriptorString(String descriptor, ClassLoader loader) Finds or creates an instance of a method type of the given method descriptor (JVMS 4.3.3).static ObjectConstantBootstraps.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 ObjectConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, Class<?> declaringClass) Returns the value of a static final field.static ObjectConstantBootstraps.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 CallSiteStringConcatFactory.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 CallSiteStringConcatFactory.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 CallSiteLambdaMetafactory.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 ObjectConstantBootstraps.nullConstant(MethodHandles.Lookup lookup, String name, Class<?> type) Returns anullobject reference for the reference type specified bytype.static VarHandle.VarHandleDescReturns a VarHandle.VarHandleDesc corresponding to aVarHandlefor an instance field.static VarHandle.VarHandleDescVarHandle.VarHandleDesc.ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType) Returns a VarHandle.VarHandleDesc corresponding to aVarHandlefor a static field.static Class<?> ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type) Returns aClassmirror for the primitive type whose type descriptor is specified byname.static VarHandleConstantBootstraps.staticFieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType) Finds aVarHandlefor a static field.static StringMethodHandleInfo.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.AccessModeVarHandle.AccessMode.valueFromMethodName(String methodName) Returns theAccessModevalue associated with the specifiedVarHandlesignature-polymorphic method name.Returns the enum constant of this class with the specified name.static VarHandle.AccessModeReturns the enum constant of this class with the specified name.Method parameters in java.lang.invoke with type arguments of type StringModifier and TypeMethodDescriptionstatic MethodHandleStringConcatFactory.makeConcatWithTemplate(List<String> fragments, List<Class<?>> ptypes) Preview.Simplified concatenation method to facilitateStringTemplatePREVIEW concatenation.static List<MethodHandle> StringConcatFactory.makeConcatWithTemplateCluster(List<String> fragments, List<Class<?>> ptypes, int maxSlots) Preview.This method breaks up large concatenations into separateMethodHandlesbased on the number of slots required perMethodHandle.static MethodHandleStringConcatFactory.makeConcatWithTemplateGetters(List<String> fragments, List<MethodHandle> getters, int maxSlots) Preview.This method creates aMethodHandleexpecting one input, the receiver of the supplied getters.Constructors in java.lang.invoke with parameters of type StringModifierConstructorDescriptionLambdaConversionException(String message) Constructs aLambdaConversionExceptionwith a message.LambdaConversionException(String message, Throwable cause) Constructs aLambdaConversionExceptionwith a message and cause.LambdaConversionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs aLambdaConversionExceptionwith 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 aSerializedLambdafrom the low-level information present at the lambda factory site.Constructs an exception with a messageStringConcatException(String msg, Throwable cause) Constructs an exception with a message and a linked throwableConstructs aWrongMethodTypeExceptionwith the specified detail message. -
Uses of String in java.lang.management
Fields in java.lang.management declared as StringModifier and TypeFieldDescriptionstatic final StringManagementFactory.CLASS_LOADING_MXBEAN_NAMEString representation of theObjectNamefor theClassLoadingMXBean.static final StringManagementFactory.COMPILATION_MXBEAN_NAMEString representation of theObjectNamefor theCompilationMXBean.static final StringManagementFactory.GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aGarbageCollectorMXBean.static final StringMemoryNotificationInfo.MEMORY_COLLECTION_THRESHOLD_EXCEEDEDNotification type denoting that the memory usage of a memory pool is greater than or equal to its collection usage threshold after the Java virtual machine has expended effort in recycling unused objects in that memory pool.static final StringManagementFactory.MEMORY_MANAGER_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aMemoryManagerMXBean.static final StringManagementFactory.MEMORY_MXBEAN_NAMEString representation of theObjectNamefor theMemoryMXBean.static final StringManagementFactory.MEMORY_POOL_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aMemoryPoolMXBean.static final StringMemoryNotificationInfo.MEMORY_THRESHOLD_EXCEEDEDNotification type denoting that the memory usage of a memory pool has reached or exceeded its usage threshold value.static final StringManagementFactory.OPERATING_SYSTEM_MXBEAN_NAMEString representation of theObjectNamefor theOperatingSystemMXBean.static final StringManagementFactory.RUNTIME_MXBEAN_NAMEString representation of theObjectNamefor theRuntimeMXBean.static final StringManagementFactory.THREAD_MXBEAN_NAMEString representation of theObjectNamefor theThreadMXBean.Methods in java.lang.management that return StringModifier and TypeMethodDescriptionOperatingSystemMXBean.getArch()Returns the operating system architecture.RuntimeMXBean.getBootClassPath()Returns the boot class path that is used by the bootstrap class loader to search for class files.LockInfo.getClassName()Returns the fully qualified name of the class of the lock object.RuntimeMXBean.getClassPath()Returns the Java class path that is used by the system class loader to search for class files.RuntimeMXBean.getLibraryPath()Returns the Java library path.ThreadInfo.getLockName()Returns thestring representationof an object for which the thread associated with thisThreadInfois blocked waiting.ThreadInfo.getLockOwnerName()Returns the name of the thread which owns the object for which the thread associated with thisThreadInfois blocked waiting.PlatformLoggingMXBean.getLoggerLevel(String loggerName) Gets the name of the log level associated with the specified logger.RuntimeMXBean.getManagementSpecVersion()Returns the version of the specification for the management interface implemented by the running Java virtual machine.String[]MemoryPoolMXBean.getMemoryManagerNames()Returns the name of memory managers that manages this memory pool.String[]MemoryManagerMXBean.getMemoryPoolNames()Returns the name of memory pools that this memory manager manages.BufferPoolMXBean.getName()Returns the name representing this buffer pool.CompilationMXBean.getName()Returns the name of the Just-in-time (JIT) compiler.MemoryManagerMXBean.getName()Returns the name representing this memory manager.MemoryPoolMXBean.getName()Returns the name representing this memory pool.OperatingSystemMXBean.getName()Returns the operating system name.RuntimeMXBean.getName()Returns the name representing the running Java virtual machine.PlatformLoggingMXBean.getParentLoggerName(String loggerName) Returns the name of the parent for the specified logger.MemoryNotificationInfo.getPoolName()Returns the name of the memory pool that triggers this notification.RuntimeMXBean.getSpecName()Returns the Java virtual machine specification name.RuntimeMXBean.getSpecVendor()Returns the Java virtual machine specification vendor.RuntimeMXBean.getSpecVersion()Returns the Java virtual machine specification version.ThreadInfo.getThreadName()Returns the name of the thread associated with thisThreadInfo.OperatingSystemMXBean.getVersion()Returns the operating system version.RuntimeMXBean.getVmName()Returns the Java virtual machine implementation name.RuntimeMXBean.getVmVendor()Returns the Java virtual machine implementation vendor.RuntimeMXBean.getVmVersion()Returns the Java virtual machine implementation version.LockInfo.toString()Returns a string representation of a lock.MemoryType.toString()Returns the string representation of thisMemoryType.MemoryUsage.toString()Returns a descriptive representation of this memory usage.ThreadInfo.toString()Returns a string representation of this thread info.Methods in java.lang.management that return types with arguments of type StringModifier and TypeMethodDescriptionRuntimeMXBean.getInputArguments()Returns the input arguments passed to the Java virtual machine which does not include the arguments to themainmethod.PlatformLoggingMXBean.getLoggerNames()Returns the list of the currently registered logger names.RuntimeMXBean.getSystemProperties()Returns a map of names and values of all system properties.RuntimeMXBean.getSystemProperties()Returns a map of names and values of all system properties.Methods in java.lang.management with parameters of type StringModifier and TypeMethodDescriptionPlatformLoggingMXBean.getLoggerLevel(String loggerName) Gets the name of the log level associated with the specified logger.PlatformLoggingMXBean.getParentLoggerName(String loggerName) Returns the name of the parent for the specified logger.static <T> TManagementFactory.newPlatformMXBeanProxy(MBeanServerConnection connection, String mxbeanName, Class<T> mxbeanInterface) Returns a proxy for a platform MXBean interface of a given MXBean name that forwards its method calls through the givenMBeanServerConnection.voidPlatformLoggingMXBean.setLoggerLevel(String loggerName, String levelName) Sets the specified logger to the specified new level.static MemoryTypeReturns the enum constant of this class with the specified name.Constructors in java.lang.management with parameters of type StringModifierConstructorDescriptionConstructs aLockInfoobject.ManagementPermission(String name) Constructs a ManagementPermission with the specified name.ManagementPermission(String name, String actions) Constructs a new ManagementPermission object.MemoryNotificationInfo(String poolName, MemoryUsage usage, long count) Constructs aMemoryNotificationInfoobject.MonitorInfo(String className, int identityHashCode, int stackDepth, StackTraceElement stackFrame) Construct aMonitorInfoobject. -
Uses of String in java.lang.module
Methods in java.lang.module that return StringModifier and TypeMethodDescriptionModuleDescriptor.name()Returns the module name.ModuleDescriptor.Requires.name()Return the module name.ResolvedModule.name()Returns the module name.ModuleDescriptor.Provides.service()Returns the fully qualified class name of the service type.ModuleDescriptor.Exports.source()Returns the package name.ModuleDescriptor.Opens.source()Returns the package name.ModuleDescriptor.toNameAndVersion()Returns a string containing the module name and, if present, its version.Configuration.toString()Returns a string describing this configuration.ModuleDescriptor.Exports.toString()Returns a string describing the exported package.ModuleDescriptor.Opens.toString()Returns a string describing the open package.ModuleDescriptor.Provides.toString()Returns a string describing thisProvides.ModuleDescriptor.Requires.toString()Returns a string describing this module dependence.ModuleDescriptor.toString()Returns a string describing the module.ModuleDescriptor.Version.toString()Returns the string from which this version was parsed.ResolvedModule.toString()Returns a string describing this resolved module.Methods in java.lang.module that return types with arguments of type StringModifier and TypeMethodDescriptionModuleReader.list()Lists the contents of the module, returning a stream of elements that are the names of all resources in the module.ModuleDescriptor.mainClass()Returns the module main class.ModuleDescriptor.packages()Returns the set of packages in the module.ModuleDescriptor.Provides.providers()Returns the list of the fully qualified class names of the providers or provider factories.ModuleDescriptor.Requires.rawCompiledVersion()Returns the string with the possibly-unparseable version of the module if recorded at compile-time.ModuleDescriptor.rawVersion()Returns the string with the possibly-unparseable version of the module.ModuleDescriptor.Exports.targets()For a qualified export, returns the non-empty and immutable set of the module names to which the package is exported.ModuleDescriptor.Opens.targets()For a qualifiedOpens, returns the non-empty and immutable set of the module names to which the package is open.ModuleDescriptor.uses()Returns the set of service dependences.Methods in java.lang.module with parameters of type StringModifier and TypeMethodDescriptionAdds an exported package.Adds an exported package.ModuleDescriptor.Builder.exports(Set<ModuleDescriptor.Exports.Modifier> ms, String pn) Adds an exported package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.exports(Set<ModuleDescriptor.Exports.Modifier> ms, String pn, Set<String> targets) Adds an exported package with the given (and possibly empty) set of modifiers.Finds a reference to a module of a given name.Finds a resource, returning a URI to the resource in the module.Configuration.findModule(String name) Finds a resolved module in this configuration, or if not in this configuration, the parent configurations.Sets the module main class.static ModuleDescriptor.BuilderModuleDescriptor.newAutomaticModule(String name) Instantiates a builder to build a module descriptor for an automatic module.static ModuleDescriptor.BuilderInstantiates a builder to build a module descriptor for a normal module.static ModuleDescriptor.BuilderModuleDescriptor.newModule(String name, Set<ModuleDescriptor.Modifier> ms) Instantiates a builder to build a module descriptor.static ModuleDescriptor.BuilderModuleDescriptor.newOpenModule(String name) Instantiates a builder to build a module descriptor for an open module.default Optional<InputStream> Opens a resource, returning an input stream to read the resource in the module.Adds an open package.Adds an open package.ModuleDescriptor.Builder.opens(Set<ModuleDescriptor.Opens.Modifier> ms, String pn) Adds an open package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.opens(Set<ModuleDescriptor.Opens.Modifier> ms, String pn, Set<String> targets) Adds an open package with the given (and possibly empty) set of modifiers.static ModuleDescriptor.VersionParses the given string as a version string.Provides implementations of a service.default Optional<ByteBuffer> Reads a resource, returning a byte buffer with the contents of the resource.Adds a dependence on a module with an empty set of modifiers.ModuleDescriptor.Builder.requires(Set<ModuleDescriptor.Requires.Modifier> ms, String mn) Adds a dependence on a module with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.requires(Set<ModuleDescriptor.Requires.Modifier> ms, String mn, ModuleDescriptor.Version compiledVersion) Adds a dependence on a module with the given (and possibly empty) set of modifiers.Adds a service dependence.Returns the enum constant of this class with the specified name.static ModuleDescriptor.ModifierReturns 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.Sets the module version.Method parameters in java.lang.module with type arguments of type StringModifier and TypeMethodDescriptionAdds an exported package.Adds an open package.Adds packages to the module.Provides implementations of a service.static ModuleDescriptorModuleDescriptor.read(InputStream in, Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from an input stream as a module descriptor.static ModuleDescriptorModuleDescriptor.read(ByteBuffer bb, Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from a byte buffer as a module descriptor.Configuration.resolve(ModuleFinder before, ModuleFinder after, Collection<String> roots) Resolves a collection of root modules, with this configuration as its parent, to create a new configuration.static ConfigurationConfiguration.resolve(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) Resolves a collection of root modules to create a configuration.Configuration.resolveAndBind(ModuleFinder before, ModuleFinder after, Collection<String> roots) Resolves a collection of root modules, with service binding, and with this configuration as its parent, to create a new configuration.static ConfigurationConfiguration.resolveAndBind(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) Resolves a collection of root modules, with service binding, to create configuration.Constructors in java.lang.module with parameters of type StringModifierConstructorDescriptionFindException(String msg) Constructs aFindExceptionwith the given detail message.FindException(String msg, Throwable cause) Constructs aFindExceptionwith the given detail message and cause.Constructs anInvalidModuleDescriptorExceptionwith the specified detail message.Constructs aResolutionExceptionwith the given detail message.ResolutionException(String msg, Throwable cause) Constructs aResolutionExceptionwith the given detail message and cause. -
Uses of String in java.lang.reflect
Methods in java.lang.reflect that return StringModifier and TypeMethodDescriptionRecordComponent.getGenericSignature()Returns aStringthat describes the generic type signature for this record component.Constructor.getName()Returns the name of this constructor, as a string.abstract StringExecutable.getName()Returns the name of the executable represented by this object.Field.getName()Returns the name of the field represented by thisFieldobject.Member.getName()Returns the simple name of the underlying member or constructor represented by this Member.Method.getName()Returns the name of the method represented by thisMethodobject, as aString.Parameter.getName()Returns the name of the parameter.RecordComponent.getName()Returns the name of this record component.TypeVariable.getName()Returns the name of this type variable, as it occurs in the source code.default StringType.getTypeName()Returns a string describing this type, including information about any type parameters.Constructor.toGenericString()Returns a string describing thisConstructor, including type parameters.abstract StringExecutable.toGenericString()Returns a string describing thisExecutable, including any type parameters.Field.toGenericString()Returns a string describing thisField, including its generic type.Method.toGenericString()Returns a string describing thisMethod, including type parameters.Constructor.toString()Returns a string describing thisConstructor.Field.toString()Returns a string describing thisField.Method.toString()Returns a string describing thisMethod.static StringModifier.toString(int mod) Return a string describing the access modifier flags in the specified modifier.Parameter.toString()Returns a string describing this parameter.RecordComponent.toString()Returns a string describing this record component.Methods in java.lang.reflect with parameters of type StringModifier and TypeMethodDescriptionstatic AccessFlag.LocationReturns the enum constant of this class with the specified name.static AccessFlagReturns the enum constant of this class with the specified name.static ClassFileFormatVersionReturns the enum constant of this class with the specified name.Constructors in java.lang.reflect with parameters of type StringModifierConstructorDescriptionGenericSignatureFormatError(String message) Constructs a newGenericSignatureFormatErrorwith the specified message.Constructs anInaccessibleObjectExceptionwith the given detail message.InvocationTargetException(Throwable target, String s) Constructs a InvocationTargetException with a target exception and a detail message.Constructs aMalformedParameterizedTypeExceptionwith the given detail message.MalformedParametersException(String reason) Create aMalformedParametersException.ReflectPermission(String name) Constructs a ReflectPermission with the specified name.ReflectPermission(String name, String actions) Constructs a ReflectPermission with the specified name and actions.UndeclaredThrowableException(Throwable undeclaredThrowable, String s) Constructs anUndeclaredThrowableExceptionwith the specifiedThrowableand a detail message. -
Uses of String in java.lang.runtime
Methods in java.lang.runtime with parameters of type StringModifier and TypeMethodDescriptionstatic ObjectObjectMethods.bootstrap(MethodHandles.Lookup lookup, String methodName, TypeDescriptor type, Class<?> recordClass, String names, MethodHandle... getters) Bootstrap method to generate theObject.equals(Object),Object.hashCode(), andObject.toString()methods, based on a description of the component names and accessor methods, for eitherinvokedynamiccall sites or dynamic constant pool entries.static CallSiteSwitchBootstraps.enumSwitch(MethodHandles.Lookup lookup, String invocationName, MethodType invocationType, Object... labels) Bootstrap method for linking aninvokedynamiccall site that implements aswitchon a target of an enum type.static CallSiteTemplateRuntime.newLargeStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type) String template bootstrap method for creating large string templates, i.e., when the number of value slots exceedsStringConcatFactory.MAX_INDY_CONCAT_ARG_SLOTSPREVIEW.static CallSiteTemplateRuntime.newStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type, String... fragments) String template bootstrap method for creating string templates.static CallSiteTemplateRuntime.processStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type, MethodHandle processorGetter, String... fragments) String template bootstrap method for static final processors.static CallSiteSwitchBootstraps.typeSwitch(MethodHandles.Lookup lookup, String invocationName, MethodType invocationType, Object... labels) Bootstrap method for linking aninvokedynamiccall site that implements aswitchon a target of a reference type. -
Uses of String in java.math
Modifier and TypeMethodDescriptionBigDecimal.toEngineeringString()Returns a string representation of thisBigDecimal, using engineering notation if an exponent is needed.BigDecimal.toPlainString()Returns a string representation of thisBigDecimalwithout an exponent field.BigDecimal.toString()Returns the string representation of thisBigDecimal, using scientific notation if an exponent is needed.BigInteger.toString()Returns the decimal String representation of this BigInteger.BigInteger.toString(int radix) Returns the String representation of this BigInteger in the given radix.MathContext.toString()Returns the string representation of thisMathContext.Modifier and TypeMethodDescriptionstatic RoundingModeReturns the enum constant of this class with the specified name.ModifierConstructorDescriptionBigDecimal(String val) Translates the string representation of aBigDecimalinto aBigDecimal.BigDecimal(String val, MathContext mc) Translates the string representation of aBigDecimalinto aBigDecimal, accepting the same strings as theBigDecimal(String)constructor, with rounding according to the context settings.BigInteger(String val) Translates the decimal String representation of a BigInteger into a BigInteger.BigInteger(String val, int radix) Translates the String representation of a BigInteger in the specified radix into a BigInteger.MathContext(String val) Constructs a newMathContextfrom a string. -
Uses of String in java.net
Modifier and TypeFieldDescriptionprotected StringHttpURLConnection.methodThe HTTP method (GET,POST,PUT,etc.).protected StringHttpURLConnection.responseMessageThe HTTP response message.Modifier and TypeMethodDescriptionstatic StringDeprecated.The resulting string may vary depending on the default charset.static StringDecodes anapplication/x-www-form-urlencodedstring using a specific encoding scheme.static StringDecodes anapplication/x-www-form-urlencodedstring using a specific Charset.static StringDeprecated.The resulting string may vary depending on the default charset.static StringTranslates a string intoapplication/x-www-form-urlencodedformat using a specific encoding scheme.static StringTranslates a string intoapplication/x-www-form-urlencodedformat using a specific Charset.SocketPermission.getActions()Returns the canonical string representation of the actions.URLPermission.getActions()Returns the normalized method list and request header list, in the form:URI.getAuthority()Returns the decoded authority component of this URI.URL.getAuthority()Gets the authority part of thisURL.InetAddress.getCanonicalHostName()Gets the fully qualified domain name for this IP address.abstract StringSecureCacheResponse.getCipherSuite()Returns the cipher suite in use on the original connection that retrieved the network resource.HttpCookie.getComment()Returns the comment describing the purpose of this cookie, ornullif the cookie has no comment.HttpCookie.getCommentURL()Returns the comment URL describing the purpose of this cookie, ornullif the cookie has no comment URL.URLConnection.getContentEncoding()Returns the value of thecontent-encodingheader field.URLConnection.getContentType()Returns the value of thecontent-typeheader field.FileNameMap.getContentTypeFor(String fileName) Gets the MIME type for the specified file name.static StringURLConnection.getDefaultRequestProperty(String key) Deprecated.The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.NetworkInterface.getDisplayName()Get the display name of this network interface.HttpCookie.getDomain()Returns the domain name set for this cookie.JarURLConnection.getEntryName()Return the entry name for this connection.URL.getFile()Gets the file name of thisURL.URI.getFragment()Returns the decoded fragment component of this URI.HttpURLConnection.getHeaderField(int n) Returns the value for thenth header field.URLConnection.getHeaderField(int n) Returns the value for thenth header field.URLConnection.getHeaderField(String name) Returns the value of the named header field.HttpURLConnection.getHeaderFieldKey(int n) Returns the key for thenth header field.URLConnection.getHeaderFieldKey(int n) Returns the key for thenth header field.URI.getHost()Returns the host component of this URI.URL.getHost()Gets the host name of thisURL, if applicable.Inet4Address.getHostAddress()Returns the IP address string in textual presentation form.Inet6Address.getHostAddress()Returns the IP address string in textual presentation.InetAddress.getHostAddress()Returns the IP address string in textual presentation.InetAddress.getHostName()Gets the host name for this IP address.final StringInetSocketAddress.getHostName()Gets thehostname.final StringInetSocketAddress.getHostString()Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal).URISyntaxException.getInput()Returns the input string.HttpRetryException.getLocation()Returns the value of the Location header field if the error resulted from redirection.URISyntaxException.getMessage()Returns a string describing the parse error.HttpCookie.getName()Returns the name of the cookie.NetworkInterface.getName()Get the name of this network interface.HttpCookie.getPath()Returns the path on the server to which the browser returns this cookie.URI.getPath()Returns the decoded path component of this URI.URL.getPath()Gets the path part of thisURL.HttpCookie.getPortlist()Returns the port list attribute of the cookieURL.getProtocol()Gets the protocol name of thisURL.URI.getQuery()Returns the decoded query component of this URI.URL.getQuery()Gets the query part of thisURL.URI.getRawAuthority()Returns the raw authority component of this URI.URI.getRawFragment()Returns the raw fragment component of this URI.URI.getRawPath()Returns the raw path component of this URI.URI.getRawQuery()Returns the raw query component of this URI.URI.getRawSchemeSpecificPart()Returns the raw scheme-specific part of this URI.URI.getRawUserInfo()Returns the raw user-information component of this URI.HttpRetryException.getReason()Returns a string explaining why the http request could not be retried.URISyntaxException.getReason()Returns a string explaining why the input string could not be parsed.URL.getRef()Gets the anchor (also known as the "reference") of thisURL.protected final StringAuthenticator.getRequestingHost()Gets thehostnameof the site or proxy requesting authentication, ornullif not available.protected final StringAuthenticator.getRequestingPrompt()Gets the prompt string given by the requestor.protected final StringAuthenticator.getRequestingProtocol()Give the protocol that's requesting the connection.protected final StringAuthenticator.getRequestingScheme()Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).HttpURLConnection.getRequestMethod()Get the request method.URLConnection.getRequestProperty(String key) Returns the value of the named general request property for this connection.HttpURLConnection.getResponseMessage()Gets the HTTP response message, if any, returned along with the response code from a server.URI.getScheme()Returns the scheme component of this URI.URI.getSchemeSpecificPart()Returns the decoded scheme-specific part of this URI.URI.getUserInfo()Returns the decoded user-information component of this URI.URL.getUserInfo()Gets the userInfo part of thisURL.PasswordAuthentication.getUserName()Returns the user name.HttpCookie.getValue()Returns the value of the cookie.static StringURLConnection.guessContentTypeFromName(String fname) Tries to determine the content type of an object, based on the specified "file" component of a URL.static StringURLConnection.guessContentTypeFromStream(InputStream is) Tries to determine the type of an input stream based on the characters at the beginning of the input stream.ProtocolFamily.name()Returns the name of the protocol family.SocketOption.name()Returns the name of the socket option.static StringTranslates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringTranslates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.URI.toASCIIString()Returns the content of this URI as a US-ASCII string.URL.toExternalForm()Constructs a string representation of thisURL.protected StringURLStreamHandler.toExternalForm(URL u) Converts aURLof a specific protocol to aString.HttpCookie.toString()Constructs a cookie header string representation of this cookie, which is in the format defined by corresponding cookie specification, but without the leading "Cookie:" token.InetAddress.toString()Converts this IP address to aString.InetSocketAddress.toString()Constructs a string representation of this InetSocketAddress.InterfaceAddress.toString()Converts this Interface address to aString.Proxy.toString()Constructs a string representation of this Proxy.ServerSocket.toString()Returns the implementation address and implementation port of this socket as aString.Socket.toString()Converts this socket to aString.SocketImpl.toString()Returns the address and port of this socket as aString.UnixDomainSocketAddress.toString()Returns a string representation of thisUnixDomainSocketAddress.URI.toString()Returns the content of this URI as a string.URL.toString()Constructs a string representation of thisURL.URLConnection.toString()Returns aStringrepresentation of this URL connection.static StringTranslates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static StringTranslates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.Modifier and TypeMethodDescriptionGets all the applicable cookies from a cookie cache for the specified uri in the request header.Gets all the applicable cookies from a cookie cache for the specified uri in the request header.URLConnection.getHeaderFields()Returns an unmodifiable Map of the header fields.URLConnection.getHeaderFields()Returns an unmodifiable Map of the header fields.CacheResponse.getHeaders()Returns the response headers as a Map.CacheResponse.getHeaders()Returns the response headers as a Map.URLConnection.getRequestProperties()Returns an unmodifiable Map of general request properties for this connection.URLConnection.getRequestProperties()Returns an unmodifiable Map of general request properties for this connection.Modifier and TypeMethodDescriptionvoidURLConnection.addRequestProperty(String key, String value) Adds a general request property specified by a key-value pair.protected abstract voidConnects this socket to the specified port on the named host.static URICreates a URI by parsing the given string.ContentHandlerFactory.createContentHandler(String mimetype) Creates a newContentHandlerto read an object from aURLStreamHandler.static InetSocketAddressInetSocketAddress.createUnresolved(String host, int port) Creates an unresolved socket address from a hostname and a port number.URLStreamHandlerFactory.createURLStreamHandler(String protocol) Creates a newURLStreamHandlerinstance with the specified protocol.static StringDeprecated.The resulting string may vary depending on the default charset.static StringDecodes anapplication/x-www-form-urlencodedstring using a specific encoding scheme.static StringDecodes anapplication/x-www-form-urlencodedstring using a specific Charset.protected PackageURLClassLoader.definePackage(String name, Manifest man, URL url) Defines a new package by name in thisURLClassLoader.static booleanHttpCookie.domainMatches(String domain, String host) The utility method to check whether a host name is in a domain or not.static StringDeprecated.The resulting string may vary depending on the default charset.static StringTranslates a string intoapplication/x-www-form-urlencodedformat using a specific encoding scheme.static StringTranslates a string intoapplication/x-www-form-urlencodedformat using a specific Charset.protected Class<?> Finds and loads the class with the specified name from the URL search path.URLClassLoader.findResource(String name) Finds the resource with the specified name on the URL search path.URLClassLoader.findResources(String name) Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.abstract CacheResponseRetrieve the cached response based on the requesting uri, request method and request headers.static InetAddress[]InetAddress.getAllByName(String host) Given the name of a host, returns an array of its IP addresses, based on the configured system resolver.static Inet6AddressInet6Address.getByAddress(String host, byte[] addr, int scope_id) Create an Inet6Address in the exact manner ofInetAddress.getByAddress(String,byte[])except that the IPv6 scope_id is set to the given numeric value.static Inet6AddressInet6Address.getByAddress(String host, byte[] addr, NetworkInterface nif) Create an Inet6Address in the exact manner ofInetAddress.getByAddress(String,byte[])except that the IPv6 scope_id is set to the value corresponding to the given interface for the address type specified inaddr.static InetAddressInetAddress.getByAddress(String host, byte[] addr) Creates an InetAddress based on the provided host name and IP address.static InetAddressDetermines the IP address of a host, given the host's name.static NetworkInterfaceSearches for the network interface with the specified name.FileNameMap.getContentTypeFor(String fileName) Gets the MIME type for the specified file name.static StringURLConnection.getDefaultRequestProperty(String key) Deprecated.The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.static booleanURLConnection.getDefaultUseCaches(String protocol) Returns the default value of theuseCachesflag for the given protocol.URLConnection.getHeaderField(String name) Returns the value of the named header field.longURLConnection.getHeaderFieldDate(String name, long defaultValue) Returns the value of the named field parsed as date.intURLConnection.getHeaderFieldInt(String name, int defaultValue) Returns the value of the named field parsed as a number.longURLConnection.getHeaderFieldLong(String name, long defaultValue) Returns the value of the named field parsed as a number.URLConnection.getRequestProperty(String key) Returns the value of the named general request property for this connection.URLClassLoader.getResourceAsStream(String name) Returns an input stream for reading the specified resource.static StringURLConnection.guessContentTypeFromName(String fname) Tries to determine the content type of an object, based on the specified "file" component of a URL.static UnixDomainSocketAddressCreates a UnixDomainSocketAddress from the given path string.static List<HttpCookie> Constructs cookies from set-cookie or set-cookie2 header string.protected voidParses the string representation of aURLinto aURLobject.static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme) Ask the authenticator that has been registered with the system for a password.static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) Ask the authenticator that has been registered with the system for a password.static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) Ask the givenauthenticatorfor a password.static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) Ask the authenticator that has been registered with the system for a password.Authenticator.requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) Ask this authenticator for a password.Constructs a new URI by parsing the given string and then resolving it against this URI.voidHttpCookie.setComment(String purpose) Specifies a comment that describes a cookie's purpose.voidHttpCookie.setCommentURL(String purpose) Specifies a comment URL that describes a cookie's purpose.static voidURLConnection.setDefaultRequestProperty(String key, String value) Deprecated.The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained.static voidURLConnection.setDefaultUseCaches(String protocol, boolean defaultVal) Sets the default value of theuseCachesfield for the named protocol to the given value.voidSpecifies the domain within which this cookie should be presented.voidSpecifies a path for the cookie to which the client should return the cookie.voidHttpCookie.setPortlist(String ports) Specify the portlist of the cookie, which restricts the port(s) to which a cookie may be sent back in a Cookie header.voidHttpURLConnection.setRequestMethod(String method) Set the method for the URL request, one of: GET POST HEAD OPTIONS PUT DELETE TRACE are legal, subject to protocol restrictions.voidURLConnection.setRequestProperty(String key, String value) Sets the general request property.protected voidDeprecated.Use setURL(URL, String, String, int, String, String, String, String);protected voidURLStreamHandler.setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) Sets the fields of theURLargument to the indicated values.voidAssigns a new value to a cookie after the cookie is created.static StringTranslates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringTranslates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringTranslates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static StringTranslates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static Authenticator.RequestorTypeReturns the enum constant of this class with the specified name.static Proxy.TypeReturns the enum constant of this class with the specified name.static StandardProtocolFamilyReturns the enum constant of this class with the specified name.Modifier and TypeMethodDescriptionGets all the applicable cookies from a cookie cache for the specified uri in the request header.Gets all the applicable cookies from a cookie cache for the specified uri in the request header.abstract CacheResponseRetrieve the cached response based on the requesting uri, request method and request headers.abstract CacheResponseRetrieve the cached response based on the requesting uri, request method and request headers.abstract voidSets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.abstract voidSets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.voidvoidModifierConstructorDescriptionBindException(String msg) Constructs a new BindException with the specified detail message as to why the bind error occurred.ConnectException(String msg) Constructs a new ConnectException with the specified detail message as to why the connect error occurred.HttpCookie(String name, String value) Constructs a cookie with a specified name and value.HttpRetryException(String detail, int code) Constructs a newHttpRetryExceptionfrom the specified response code and exception detail messageHttpRetryException(String detail, int code, String location) Constructs a newHttpRetryExceptionwith detail message responseCode and the contents of the Location response header field.InetSocketAddress(String hostname, int port) Creates a socket address from a hostname and a port number.Constructs aMalformedURLExceptionwith the specified detail message.NetPermission(String name) Creates a new NetPermission with the specified name.NetPermission(String name, String actions) Creates a new NetPermission object with the specified name.Constructs a new NoRouteToHostException with the specified detail message as to why the remote host cannot be reached.PasswordAuthentication(String userName, char[] password) Creates a newPasswordAuthenticationobject from the given user name and password.Constructs a newPortUnreachableExceptionwith a detail message.ProtocolException(String message) Constructs a newProtocolExceptionwith the specified detail message.Creates a stream socket and connects it to the specified port number on the named host.Deprecated.Use DatagramSocket instead for UDP transport.Socket(String host, int port, InetAddress localAddr, int localPort) Creates a socket and connects it to the specified remote host on the specified remote port.SocketException(String msg) Constructs a newSocketExceptionwith the specified detail message.SocketException(String msg, Throwable cause) Constructs a newSocketExceptionwith the specified detail message and cause.SocketPermission(String host, String action) Creates a new SocketPermission object with the specified actions.Constructs a new SocketTimeoutException with a detail message.UnknownHostException(String message) Constructs a newUnknownHostExceptionwith the specified detail message.Constructs a newUnknownServiceExceptionwith the specified detail message.Constructs a URI by parsing the given string.Constructs a URI from the given components.URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) Constructs a hierarchical URI from the given components.Constructs a hierarchical URI from the given components.Constructs a hierarchical URI from the given components.URISyntaxException(String input, String reason) Constructs an instance from the given input string and reason.URISyntaxException(String input, String reason, int index) Constructs an instance from the given input string, reason, and error index.Deprecated.UseURI.toURL()to construct an instance of URL.Deprecated.UseURI.toURL()to construct an instance of URL.URL(String protocol, String host, int port, String file, URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)to construct an instance of URL associated with a custom protocol handler.Deprecated.UseURI.toURL()to construct an instance of URL.Deprecated.UseURI.toURL()to construct an instance of URL.URL(URL context, String spec, URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)to construct an instance of URL associated with a custom protocol handler.URLClassLoader(String name, URL[] urls, ClassLoader parent) Constructs a new namedURLClassLoaderfor the specified URLs.URLClassLoader(String name, URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) Constructs a new namedURLClassLoaderfor the specified URLs, parent class loader, and URLStreamHandlerFactory.URLPermission(String url) Creates a URLPermission with the given url string and unrestricted methods and request headers by invoking the two argument constructor as follows: URLPermission(url, "*:*")URLPermission(String url, String actions) Creates a new URLPermission from a url string and which permits the given request methods and user-settable request headers. -
Uses of String in java.net.http
Methods in java.net.http with type parameters of type StringModifier and TypeMethodDescriptionstatic <S extends Flow.Subscriber<? super String>,T>
HttpResponse.BodyHandler<T> HttpResponse.BodyHandlers.fromLineSubscriber(S subscriber, Function<? super S, ? extends T> finisher, String lineSeparator) Returns a response body handler that returns aBodySubscriber<T>obtained fromBodySubscribers.fromLineSubscriber(subscriber, finisher, charset, lineSeparator), with the givensubscriber,finisherfunction, and line separator.static <S extends Flow.Subscriber<? super String>,T>
HttpResponse.BodySubscriber<T> HttpResponse.BodySubscribers.fromLineSubscriber(S subscriber, Function<? super S, ? extends T> finisher, Charset charset, String lineSeparator) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber, line by line.Methods in java.net.http that return StringModifier and TypeMethodDescriptionWebSocket.getSubprotocol()Returns the subprotocol used by this WebSocket.abstract StringHttpRequest.method()Returns the request method for this request.HttpHeaders.toString()Returns this HTTP headers as a string.Methods in java.net.http that return types with arguments of type StringModifier and TypeMethodDescriptionReturns an unmodifiable List of all of the header string values of the given named header.HttpHeaders.firstValue(String name) Returns anOptionalcontaining the first header string value of the given named (and possibly multi-valued) header.HttpHeaders.map()Returns an unmodifiable multi Map view of this HttpHeaders.HttpHeaders.map()Returns an unmodifiable multi Map view of this HttpHeaders.static HttpResponse.BodyHandler<Stream<String>> HttpResponse.BodyHandlers.ofLines()Returns aBodyHandler<Stream<String>>that returns aBodySubscriber<Stream<String>>obtained fromBodySubscribers.ofLines(charset).static HttpResponse.BodySubscriber<Stream<String>> Returns aBodySubscriberwhich streams the response body as aStream<String>, where each string in the stream corresponds to a line as defined byBufferedReader.lines().static HttpResponse.BodyHandler<String> HttpResponse.BodyHandlers.ofString()Returns aBodyHandler<String>that returns aBodySubscriber<String>obtained fromBodySubscribers.ofString(Charset).static HttpResponse.BodyHandler<String> Returns aBodyHandler<String>that returns aBodySubscriber<String>obtained fromBodySubscribers.ofString(Charset).static HttpResponse.BodySubscriber<String> Returns a body subscriber which stores the response body as aStringconverted using the givenCharset.Methods in java.net.http with parameters of type StringModifier and TypeMethodDescriptionReturns an unmodifiable List of all of the header string values of the given named header.HttpHeaders.firstValue(String name) Returns anOptionalcontaining the first header string value of the given named (and possibly multi-valued) header.HttpHeaders.firstValueAsLong(String name) Returns anOptionalLongcontaining the first header string value of the named header field.static <S extends Flow.Subscriber<? super String>,T>
HttpResponse.BodyHandler<T> HttpResponse.BodyHandlers.fromLineSubscriber(S subscriber, Function<? super S, ? extends T> finisher, String lineSeparator) Returns a response body handler that returns aBodySubscriber<T>obtained fromBodySubscribers.fromLineSubscriber(subscriber, finisher, charset, lineSeparator), with the givensubscriber,finisherfunction, and line separator.static <S extends Flow.Subscriber<? super String>,T>
HttpResponse.BodySubscriber<T> HttpResponse.BodySubscribers.fromLineSubscriber(S subscriber, Function<? super S, ? extends T> finisher, Charset charset, String lineSeparator) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber, line by line.Adds the given name value pair to the set of headers for this request.Adds the given name-value pair to the list of additional HTTP headers sent during the opening handshake.Adds the given name value pairs to the set of headers for this request.HttpRequest.Builder.method(String method, HttpRequest.BodyPublisher bodyPublisher) Sets the request method and request body of this builder to the given values.static HttpRequest.BodyPublisherReturns a request body publisher whose body is the givenString, converted using theUTF_8character set.static HttpRequest.BodyPublisherReturns a request body publisher whose body is the givenString, converted using the given character set.default CompletionStage<?> Receives a Close message indicating the WebSocket's input has been closed.Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the reason.Sets the given name value pair to the set of headers for this request.WebSocket.Builder.subprotocols(String mostPreferred, String... lesserPreferred) Sets a request for the given subprotocols.static HttpClient.RedirectReturns the enum constant of this class with the specified name.static HttpClient.VersionReturns the enum constant of this class with the specified name.Method parameters in java.net.http with type arguments of type StringModifier and TypeMethodDescriptionstatic HttpResponse.BodyHandler<Void> HttpResponse.BodyHandlers.fromLineSubscriber(Flow.Subscriber<? super String> subscriber) Returns a response body handler that returns aBodySubscriber<Void>obtained fromBodySubscribers.fromLineSubscriber(subscriber, s -> null, charset, null), with the givensubscriber.static HttpResponse.BodySubscriber<Void> HttpResponse.BodySubscribers.fromLineSubscriber(Flow.Subscriber<? super String> subscriber) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber, line by line.static HttpRequest.BuilderHttpRequest.newBuilder(HttpRequest request, BiPredicate<String, String> filter) Creates aBuilderwhose initial state is copied from an existingHttpRequest.static HttpRequest.BuilderHttpRequest.newBuilder(HttpRequest request, BiPredicate<String, String> filter) Creates aBuilderwhose initial state is copied from an existingHttpRequest.static HttpHeadersReturns an HTTP headers from the given map.static HttpHeadersReturns an HTTP headers from the given map.static HttpHeadersReturns an HTTP headers from the given map.static HttpHeadersReturns an HTTP headers from the given map.Constructors in java.net.http with parameters of type StringModifierConstructorDescriptionHttpConnectTimeoutException(String message) Constructs anHttpConnectTimeoutExceptionwith the given detail message.HttpTimeoutException(String message) Constructs anHttpTimeoutExceptionwith the given detail message. -
Uses of String in java.net.spi
Methods in java.net.spi that return StringModifier and TypeMethodDescriptionInetAddressResolver.lookupByAddress(byte[] addr) Lookup the host name corresponding to the raw IP address provided.InetAddressResolverProvider.Configuration.lookupLocalHostName()Reads the localhost name from the system configuration.abstract StringInetAddressResolverProvider.name()Returns the name of this provider, ornullif unnamed.Methods in java.net.spi with parameters of type StringModifier and TypeMethodDescriptionInetAddressResolver.lookupByName(String host, InetAddressResolver.LookupPolicy lookupPolicy) Given the name of a host, returns a stream of IP addresses of the requested address family associated with a provided hostname. -
Uses of String in java.nio
Modifier and TypeMethodDescriptionByteBuffer.toString()Returns a string summarizing the state of this buffer.ByteOrder.toString()Constructs a string describing this object.CharBuffer.toString()Returns a string containing the characters in this buffer.DoubleBuffer.toString()Returns a string summarizing the state of this buffer.FloatBuffer.toString()Returns a string summarizing the state of this buffer.IntBuffer.toString()Returns a string summarizing the state of this buffer.LongBuffer.toString()Returns a string summarizing the state of this buffer.ShortBuffer.toString()Returns a string summarizing the state of this buffer.Modifier and TypeMethodDescriptionfinal CharBufferRelative bulk put method (optional operation).Relative bulk put method (optional operation). -
Uses of String in java.nio.channels
Methods in java.nio.channels that return StringModifier and TypeMethodDescriptionFileChannel.MapMode.toString()Returns a string describing this file-mapping mode.final StringFileLock.toString()Returns a string describing the range, type, and validity of this lock.Methods in java.nio.channels with parameters of type StringModifier and TypeMethodDescriptionstatic ReaderChannels.newReader(ReadableByteChannel ch, String csName) Constructs a reader that decodes bytes from the given channel according to the named charset.static WriterChannels.newWriter(WritableByteChannel ch, String csName) Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel. -
Uses of String in java.nio.charset
Methods in java.nio.charset that return StringModifier and TypeMethodDescriptionCharset.displayName()Returns this charset's human-readable name for the default locale.Charset.displayName(Locale locale) Returns this charset's human-readable name for the given locale.IllegalCharsetNameException.getCharsetName()Retrieves the illegal charset name.UnsupportedCharsetException.getCharsetName()Retrieves the name of the unsupported charset.MalformedInputException.getMessage()Returns the message.UnmappableCharacterException.getMessage()Returns the message.final StringCharset.name()Returns this charset's canonical name.final StringCharsetDecoder.replacement()Returns this decoder's replacement value.final StringCharset.toString()Returns a string describing this charset.CoderResult.toString()Returns a string describing this coder result.CodingErrorAction.toString()Returns a string describing this action.Methods in java.nio.charset that return types with arguments of type StringModifier and TypeMethodDescriptionCharset.aliases()Returns a set containing this charset's aliases.Charset.availableCharsets()Constructs a sorted map from canonical charset names to charset objects.Methods in java.nio.charset with parameters of type StringModifier and TypeMethodDescriptionfinal ByteBufferConvenience method that encodes a string into bytes in this charset.static CharsetReturns a charset object for the named charset.static CharsetReturns a charset object for the named charset.protected voidCharsetDecoder.implReplaceWith(String newReplacement) Reports a change to this decoder's replacement value.static booleanCharset.isSupported(String charsetName) Tells whether the named charset is supported.final CharsetDecoderCharsetDecoder.replaceWith(String newReplacement) Changes this decoder's replacement value.Constructors in java.nio.charset with parameters of type StringModifierConstructorDescriptionprotectedInitializes a new charset with the given canonical name and alias set.IllegalCharsetNameException(String charsetName) Constructs an instance of this class.UnsupportedCharsetException(String charsetName) Constructs an instance of this class. -
Uses of String in java.nio.charset.spi
Methods in java.nio.charset.spi with parameters of type StringModifier and TypeMethodDescriptionabstract CharsetCharsetProvider.charsetForName(String charsetName) Retrieves a charset for the given charset name. -
Uses of String in java.nio.file
Methods in java.nio.file that return StringModifier and TypeMethodDescriptionFileSystemException.getFile()Returns the file used to create this exception.InvalidPathException.getInput()Returns the input string.FileSystemException.getMessage()Returns the detail message string.InvalidPathException.getMessage()Returns a string describing the error.FileSystemException.getOtherFile()Returns the other file used to create this exception.FileSystemException.getReason()Returns the string explaining why the file system operation failed.InvalidPathException.getReason()Returns a string explaining why the input string was rejected.abstract StringFileSystem.getSeparator()Returns the name separator, represented as a string.abstract StringFileStore.name()Returns the name of this file store.WatchEvent.Kind.name()Returns the name of the event kind.WatchEvent.Modifier.name()Returns the name of the modifier.static StringFiles.probeContentType(Path path) Probes the content type of a file.static StringFiles.readString(Path path) static StringFiles.readString(Path path, Charset cs) Reads all characters from a file into a string, decoding from bytes to characters using the specified charset.Path.toString()Returns the string representation of this path.abstract StringFileStore.type()Returns the type of this file store.Methods in java.nio.file that return types with arguments of type StringModifier and TypeMethodDescriptionRead all lines from a file as aStream.Read all lines from a file as aStream.Files.readAllLines(Path path) Read all lines from a file.Files.readAllLines(Path path, Charset cs) Read all lines from a file.Files.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.FileSystem.supportedFileAttributeViews()Returns the set of thenamesof the file attribute views supported by thisFileSystem.Methods in java.nio.file with parameters of type StringModifier and TypeMethodDescriptionstatic PathFiles.createTempDirectory(String prefix, FileAttribute<?>... attrs) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name.static PathFiles.createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs) Creates a new directory in the specified directory, using the given prefix to generate its name.static PathFiles.createTempFile(String prefix, String suffix, FileAttribute<?>... attrs) Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.static PathFiles.createTempFile(Path dir, String prefix, String suffix, FileAttribute<?>... attrs) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.default booleanTests if this path ends with aPath, constructed by converting the given path string, in exactly the manner specified by theendsWith(Path)method.static PathConverts a path string, or a sequence of strings that when joined form a path string, to aPath.static ObjectFiles.getAttribute(Path path, String attribute, LinkOption... options) Reads the value of a file attribute.abstract ObjectFileStore.getAttribute(String attribute) Reads the value of a file store attribute.abstract PathConverts a path string, or a sequence of strings that when joined form a path string, to aPath.abstract PathMatcherFileSystem.getPathMatcher(String syntaxAndPattern) Returns aPathMatcherthat performs match operations on theStringrepresentation ofPathobjects by interpreting a given pattern.static DirectoryStream<Path> Files.newDirectoryStream(Path dir, String glob) Opens a directory, returning aDirectoryStreamto iterate over the entries in the directory.static PathReturns aPathby converting a path string, or a sequence of strings that when joined form a path string.Files.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.default PathConverts a given path string to aPathand resolves it against thisPathin exactly the manner specified by theresolvemethod.default PathPath.resolveSibling(String other) Converts a given path string to aPathand resolves it against this path'sparentpath in exactly the manner specified by theresolveSiblingmethod.static PathFiles.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.default booleanPath.startsWith(String other) Tests if this path starts with aPath, constructed by converting the given path string, in exactly the manner specified by thestartsWith(Path)method.abstract booleanFileStore.supportsFileAttributeView(String name) Tells whether or not this file store supports the file attributes identified by the given file attribute view.static AccessModeReturns the enum constant of this class with the specified name.static FileVisitOptionReturns the enum constant of this class with the specified name.static FileVisitResultReturns the enum constant of this class with the specified name.static LinkOptionReturns the enum constant of this class with the specified name.static StandardCopyOptionReturns the enum constant of this class with the specified name.static StandardOpenOptionReturns the enum constant of this class with the specified name.Method parameters in java.nio.file with type arguments of type StringModifier and TypeMethodDescriptionstatic FileSystemFileSystems.newFileSystem(URI uri, Map<String, ?> env) Constructs a new file system that is identified by aURIstatic FileSystemFileSystems.newFileSystem(URI uri, Map<String, ?> env, ClassLoader loader) Constructs a new file system that is identified by aURIstatic FileSystemFileSystems.newFileSystem(Path path, Map<String, ?> env) Constructs a newFileSystemto access the contents of a file as a file system.static FileSystemFileSystems.newFileSystem(Path path, Map<String, ?> env, ClassLoader loader) Constructs a newFileSystemto access the contents of a file as a file system.Constructors in java.nio.file with parameters of type StringModifierConstructorDescriptionAccessDeniedException(String file) Constructs an instance of this class.AccessDeniedException(String file, String other, String reason) Constructs an instance of this class.AtomicMoveNotSupportedException(String source, String target, String reason) Constructs an instance of this class.Constructs an instance of this class.Constructs an instance of this class.FileAlreadyExistsException(String file, String other, String reason) Constructs an instance of this class.Constructs an instance of this class.FileSystemException(String file) Constructs an instance of this class.FileSystemException(String file, String other, String reason) Constructs an instance of this class.Constructs an instance of this class.Constructs an instance of this class.InvalidPathException(String input, String reason) Constructs an instance from the given input string and reason.InvalidPathException(String input, String reason, int index) Constructs an instance from the given input string, reason, and error index.LinkPermission(String name) Constructs aLinkPermissionwith the specified name.LinkPermission(String name, String actions) Constructs aLinkPermissionwith the specified name.NoSuchFileException(String file) Constructs an instance of this class.NoSuchFileException(String file, String other, String reason) Constructs an instance of this class.NotDirectoryException(String file) Constructs an instance of this class.NotLinkException(String file) Constructs an instance of this class.NotLinkException(String file, String other, String reason) Constructs an instance of this class.Constructs an instance of this class.Constructs an instance of this class. -
Uses of String in java.nio.file.attribute
Methods in java.nio.file.attribute that return StringModifier and TypeMethodDescriptionUserPrincipalNotFoundException.getName()Returns the user principal name if this exception was created with the user principal name that was not found, otherwisenull.AclFileAttributeView.name()Returns the name of the attribute view.AttributeView.name()Returns the name of the attribute view.BasicFileAttributeView.name()Returns the name of the attribute view.DosFileAttributeView.name()Returns the name of the attribute view.FileAttribute.name()Returns the attribute name.FileOwnerAttributeView.name()Returns the name of the attribute view.PosixFileAttributeView.name()Returns the name of the attribute view.UserDefinedFileAttributeView.name()Returns the name of this attribute view.AclEntry.toString()Returns the string representation of this ACL entry.FileTime.toString()Returns the string representation of thisFileTime.static StringPosixFilePermissions.toString(Set<PosixFilePermission> perms) Returns theStringrepresentation of a set of permissions.Methods in java.nio.file.attribute that return types with arguments of type StringModifier and TypeMethodDescriptionUserDefinedFileAttributeView.list()Returns a list containing the names of the user-defined attributes.Methods in java.nio.file.attribute with parameters of type StringModifier and TypeMethodDescriptionvoidDeletes a user-defined attribute.static Set<PosixFilePermission> PosixFilePermissions.fromString(String perms) Returns the set of permissions corresponding to a givenStringrepresentation.abstract GroupPrincipalUserPrincipalLookupService.lookupPrincipalByGroupName(String group) Lookup a group principal by group name.abstract UserPrincipalUserPrincipalLookupService.lookupPrincipalByName(String name) Lookup a user principal by name.intUserDefinedFileAttributeView.read(String name, ByteBuffer dst) Read the value of a user-defined attribute into a buffer.intReturns the size of the value of a user-defined attribute.static AclEntryFlagReturns the enum constant of this class with the specified name.static AclEntryPermissionReturns the enum constant of this class with the specified name.static AclEntryTypeReturns the enum constant of this class with the specified name.static PosixFilePermissionReturns the enum constant of this class with the specified name.intUserDefinedFileAttributeView.write(String name, ByteBuffer src) Writes the value of a user-defined attribute from a buffer.Constructors in java.nio.file.attribute with parameters of type StringModifierConstructorDescriptionConstructs an instance of this class. -
Uses of String in java.nio.file.spi
Methods in java.nio.file.spi that return StringModifier and TypeMethodDescriptionabstract StringFileSystemProvider.getScheme()Returns the URI scheme that identifies this provider.abstract StringFileTypeDetector.probeContentType(Path path) Probes the given file to guess its content type.Methods in java.nio.file.spi that return types with arguments of type StringModifier and TypeMethodDescriptionFileSystemProvider.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.Methods in java.nio.file.spi with parameters of type StringModifier and TypeMethodDescriptionFileSystemProvider.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.abstract voidFileSystemProvider.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.Method parameters in java.nio.file.spi with type arguments of type StringModifier and TypeMethodDescriptionabstract FileSystemFileSystemProvider.newFileSystem(URI uri, Map<String, ?> env) Constructs a newFileSystemobject identified by a URI.FileSystemProvider.newFileSystem(Path path, Map<String, ?> env) Constructs a newFileSystemto access the contents of a file as a file system. -
Uses of String in java.rmi
Modifier and TypeMethodDescriptionRemoteException.getMessage()Returns the detail message, including the message from the cause, if any, of this exception.static String[]Returns an array of the names bound in the registry.Modifier and TypeMethodDescriptionstatic voidBinds the specifiednameto a remote object.static String[]Returns an array of the names bound in the registry.static RemoteReturns a reference, a stub, for the remote object associated with the specifiedname.static voidRebinds the specified name to a new remote object.static voidDestroys the binding for the specified name that is associated with a remote object.ModifierConstructorDescriptionConstructs anAccessExceptionwith the specified detail message.AccessException(String s, Exception ex) Constructs anAccessExceptionwith the specified detail message and nested exception.Constructs anAlreadyBoundExceptionwith the specified detail message.Constructs aConnectExceptionwith the specified detail message.ConnectException(String s, Exception ex) Constructs aConnectExceptionwith the specified detail message and nested exception.Constructs aConnectIOExceptionwith the specified detail message.ConnectIOException(String s, Exception ex) Constructs aConnectIOExceptionwith the specified detail message and nested exception.Constructs aMarshalExceptionwith the specified detail message.MarshalException(String s, Exception ex) Constructs aMarshalExceptionwith the specified detail message and nested exception.Constructs aNoSuchObjectExceptionwith the specified detail message.Constructs aNotBoundExceptionwith the specified detail message.Constructs aRemoteExceptionwith the specified detail message.RemoteException(String s, Throwable cause) Constructs aRemoteExceptionwith the specified detail message and cause.RMISecurityException(String name) Deprecated.no replacementRMISecurityException(String name, String arg) Deprecated.no replacementServerError(String s, Error err) Constructs aServerErrorwith the specified detail message and nested error.Constructs aServerExceptionwith the specified detail message.ServerException(String s, Exception ex) Constructs aServerExceptionwith the specified detail message and nested exception.Deprecated.no replacementConstructs aStubNotFoundExceptionwith the specified detail message.StubNotFoundException(String s, Exception ex) Constructs aStubNotFoundExceptionwith the specified detail message and nested exception.Constructs anUnexpectedExceptionwith the specified detail message.UnexpectedException(String s, Exception ex) Constructs aUnexpectedExceptionwith the specified detail message and nested exception.Constructs anUnknownHostExceptionwith the specified detail message.UnknownHostException(String s, Exception ex) Constructs anUnknownHostExceptionwith the specified detail message and nested exception.Constructs anUnmarshalExceptionwith the specified detail message.UnmarshalException(String s, Exception ex) Constructs anUnmarshalExceptionwith the specified detail message and nested exception. -
Uses of String in java.rmi.dgc
Methods in java.rmi.dgc that return String -
Uses of String in java.rmi.registry
Methods in java.rmi.registry that return StringModifier and TypeMethodDescriptionString[]Registry.list()Returns an array of the names bound in this registry.Methods in java.rmi.registry with parameters of type StringModifier and TypeMethodDescriptionvoidBinds a remote reference to the specifiednamein this registry.static RegistryLocateRegistry.getRegistry(String host) Returns a reference to the remote objectRegistryon the specifiedhoston the default registry port of 1099.static RegistryLocateRegistry.getRegistry(String host, int port) Returns a reference to the remote objectRegistryon the specifiedhostandport.static RegistryLocateRegistry.getRegistry(String host, int port, RMIClientSocketFactory csf) Returns a locally created remote reference to the remote objectRegistryon the specifiedhostandport.Returns the remote reference bound to the specifiednamein this registry.voidReplaces the binding for the specifiednamein this registry with the supplied remote reference.RegistryHandler.registryStub(String host, int port) Deprecated.no replacement.voidRemoves the binding for the specifiednamein this registry. -
Uses of String in java.rmi.server
Fields in java.rmi.server declared as StringModifier and TypeFieldDescriptionstatic final StringLoaderHandler.packagePrefixDeprecated.package of systemLoaderHandlerimplementation.static final StringRemoteRef.packagePrefixInitialize the server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.Methods in java.rmi.server that return StringModifier and TypeMethodDescriptionstatic StringRMIClassLoader.getClassAnnotation(Class<?> cl) Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class.abstract StringRMIClassLoaderSpi.getClassAnnotation(Class<?> cl) Provides the implementation forRMIClassLoader.getClassAnnotation(Class).static StringRemoteServer.getClientHost()Returns a string representation of the client host for the remote method invocation being processed in the current thread.ServerRef.getClientHost()Deprecated.Returns the hostname of the current client.ServerCloneException.getMessage()Returns the detail message, including the message from the cause, if any, of this exception.Operation.getOperation()Deprecated.no replacementRemoteRef.getRefClass(ObjectOutput out) Returns the class name of the ref type to be serialized onto the stream 'out'.RemoteRef.remoteToString()Returns a String that represents the reference of this remote object.LogStream.toString()Deprecated.no replacementObjID.toString()Returns a string representation of this object identifier.Operation.toString()Deprecated.no replacementRemoteObject.toString()Returns a String that represents the value of this remote object.UID.toString()Returns a string representation of thisUID.Methods in java.rmi.server with parameters of type StringModifier and TypeMethodDescriptionRMIClientSocketFactory.createSocket(String host, int port) Create a client socket connected to the specified host and port.abstract SocketRMISocketFactory.createSocket(String host, int port) Creates a client socket connected to the specified host and port.static ClassLoaderRMIClassLoader.getClassLoader(String codebase) Returns a class loader that loads classes from the given codebase URL path.abstract ClassLoaderRMIClassLoaderSpi.getClassLoader(String codebase) Provides the implementation forRMIClassLoader.getClassLoader(String).Class<?> Deprecated.no replacementClass<?> Deprecated.no replacementstatic Class<?> Deprecated.replaced byloadClass(String,String)methodstatic Class<?> Loads a class from a codebase URL path.static Class<?> RMIClassLoader.loadClass(String codebase, String name, ClassLoader defaultLoader) Loads a class from a codebase URL path, optionally using the supplied loader.static Class<?> Loads a class from a codebase URL.abstract Class<?> RMIClassLoaderSpi.loadClass(String codebase, String name, ClassLoader defaultLoader) Provides the implementation forRMIClassLoader.loadClass(URL,String),RMIClassLoader.loadClass(String,String), andRMIClassLoader.loadClass(String,String,ClassLoader).static Class<?> RMIClassLoader.loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader) Loads a dynamic proxy class (seeProxy) that implements a set of interfaces with the given names from a codebase URL path.abstract Class<?> RMIClassLoaderSpi.loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader) Provides the implementation forRMIClassLoader.loadProxyClass(String,String[],ClassLoader).static LogStreamDeprecated.no replacementstatic intLogStream.parseLevel(String s) Deprecated.no replacementConstructors in java.rmi.server with parameters of type StringModifierConstructorDescriptionConstructs anExportExceptionwith the specified detail message.ExportException(String s, Exception ex) Constructs anExportExceptionwith the specified detail message and nested exception.Deprecated.no replacementConstructs aServerCloneExceptionwith the specified detail message.ServerCloneException(String s, Exception cause) Constructs aServerCloneExceptionwith the specified detail message and cause.Constructs anServerNotActiveExceptionwith the specified detail message.Deprecated.no replacementDeprecated.Constructs aSkeletonNotFoundExceptionwith the specified detail message.Deprecated.Constructs aSkeletonNotFoundExceptionwith the specified detail message and nested exception.Deprecated.Constructs anSocketSecurityExceptionwith the specified detail message.Deprecated.Constructs anSocketSecurityExceptionwith the specified detail message and nested exception. -
Uses of String in java.security
Methods in java.security that return StringModifier and TypeMethodDescriptionabstract StringKeyStoreSpi.engineGetCertificateAlias(Certificate cert) Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.protected abstract StringAlgorithmParametersSpi.engineToString()Returns a formatted string describing the parameters.AllPermission.getActions()Returns the canonical string representation of the actions.BasicPermission.getActions()Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for aBasicPermission.abstract StringPermission.getActions()Returns the actions as aString.UnresolvedPermission.getActions()Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for anUnresolvedPermission.final StringAlgorithmParameterGenerator.getAlgorithm()Returns the standard name of the algorithm this parameter generator is associated with.final StringAlgorithmParameters.getAlgorithm()Returns the name of the algorithm associated with this parameter object.Key.getAlgorithm()Returns the standard algorithm name for this key.final StringKeyFactory.getAlgorithm()Gets the name of the algorithm associated with thisKeyFactory.KeyPairGenerator.getAlgorithm()Returns the standard name of the algorithm for this key pair generator.final StringMessageDigest.getAlgorithm()Returns a string that identifies the algorithm, independent of implementation details.final StringProvider.Service.getAlgorithm()Return the name of the algorithm of this service.SecureRandom.getAlgorithm()Returns the name of the algorithm implemented by thisSecureRandomobject.final StringSignature.getAlgorithm()Returns the name of the algorithm for thisSignatureobject.SignedObject.getAlgorithm()Retrieves the name of the signature algorithm.static StringSecurity.getAlgorithmProperty(String algName, String propName) Deprecated.This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters.final StringProvider.Service.getAttribute(String name) Return the value of the specified attribute ornullif this attribute is not set for this Service.final StringKeyStore.getCertificateAlias(Certificate cert) Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.final StringProvider.Service.getClassName()Return the name of the class implementing this service.static final StringKeyStore.getDefaultType()Returns the default keystore type as specified by thekeystore.typesecurity property, or the string "jks" (acronym for "Java keystore") if no such property exists.Certificate.getFormat()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the coding format.Key.getFormat()Returns the name of the primary encoding format of this key, ornullif this key does not support encoding.Identity.getInfo()Deprecated, for removal: This API element is subject to removal in a future version.Returns general information previously specified for thisIdentity.Provider.getInfo()Returns a human-readable description of theProviderand its services.final StringIdentity.getName()Deprecated, for removal: This API element is subject to removal in a future version.Returns this identity's name.KeyStore.Entry.Attribute.getName()Returns the attribute's name.final StringPermission.getName()Returns the name of thisPermission.PKCS12Attribute.getName()Returns the attribute's ASN.1 Object Identifier represented as a list of dot-separated integers.Principal.getName()Returns the name of thisPrincipal.Provider.getName()Returns the name of thisProvider.static StringSecurity.getProperty(String key) Gets a security property value.KeyStore.PasswordProtection.getProtectionAlgorithm()Gets the name of the protection algorithm.final StringKeyStore.getType()Returns the type of this keystore.Policy.getType()Deprecated, for removal: This API element is subject to removal in a future version.Return the type of thisPolicy.final StringProvider.Service.getType()Get the type of this service.UnresolvedPermission.getUnresolvedActions()Get the actions for the underlying permission that has not been resolved.UnresolvedPermission.getUnresolvedName()Get the target name of the underlying permission that has not been resolved.UnresolvedPermission.getUnresolvedType()Get the type (class name) of the underlying permission that has not been resolved.KeyStore.Entry.Attribute.getValue()Returns the attribute's value.PKCS12Attribute.getValue()Returns the attribute's ASN.1 DER-encoded value as a string.Provider.getVersionStr()Returns the version string for thisProvider.final StringAlgorithmParameters.toString()Returns a formatted string describing the parameters.Certificate.toString(boolean detailed) Deprecated, for removal: This API element is subject to removal in a future version.Returns a string that represents the contents of the certificate.CodeSigner.toString()Returns a string describing this code signer.CodeSource.toString()Returns a string describing thisCodeSource, telling its URL and certificates.DigestInputStream.toString()Prints a string representation of this digest input stream and its associated message digest object.DigestOutputStream.toString()Prints a string representation of this digest output stream and its associated message digest object.DrbgParameters.Instantiation.toString()Returns a Human-readable string representation of thisInstantiation.Identity.toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a short string describing thisIdentity, telling its name and its scope (if any).Identity.toString(boolean detailed) Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of thisIdentity, with optionally more details than that provided by thetoStringmethod without any arguments.IdentityScope.toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this identity scope, including its name, its scope name, and the number of identities in this identity scope.KeyStore.PrivateKeyEntry.toString()Returns a string representation of this PrivateKeyEntry.KeyStore.SecretKeyEntry.toString()Returns a string representation of this SecretKeyEntry.KeyStore.TrustedCertificateEntry.toString()Returns a string representation of this TrustedCertificateEntry.MessageDigest.toString()Returns a string representation of this message digest object.Permission.toString()Returns a string describing thisPermission.PermissionCollection.toString()Returns a string describing thisPermissionCollectionobject, providing information about all the permissions it contains.PKCS12Attribute.toString()Returns a string representation of thisPKCS12Attribute.Principal.toString()Returns a string representation of thisPrincipal.ProtectionDomain.toString()Convert aProtectionDomainto aString.Provider.Service.toString()Return aStringrepresentation of this service.Provider.toString()Returns a string with the name and the version string of thisProvider.SecureRandom.toString()Returns a Human-readable string representation of thisSecureRandom.SecureRandomSpi.toString()Returns a Human-readable string representation of thisSecureRandom.Signature.toString()Returns a string representation of thisSignatureobject, providing information that includes the state of the object and the name of the algorithm used.Signer.toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string of information about theSigner.Timestamp.toString()Returns a string describing thisTimestamp.UnresolvedPermission.toString()Returns a string describing thisUnresolvedPermission.Methods in java.security that return types with arguments of type StringModifier and TypeMethodDescriptionfinal Enumeration<String> KeyStore.aliases()Lists all the alias names of this keystore.abstract Enumeration<String> KeyStoreSpi.engineAliases()Lists all the alias names of this keystore.Security.getAlgorithms(String serviceName) Returns a Set ofStringobjects containing the names of all available algorithms or types for the specified Java cryptographic service (e.g.,Signature,MessageDigest,Cipher,Mac,KeyStore).DomainLoadStoreParameter.getProtectionParams()Gets the keystore protection parameters for keystores in this domain.Methods in java.security with parameters of type StringModifier and TypeMethodDescriptionApply the supplied configuration argument to thisProviderinstance and return the configuredProvider.final booleanKeyStore.containsAlias(String alias) Checks if the given alias exists in this keystore.protected final Class<?> SecureClassLoader.defineClass(String name, byte[] b, int off, int len, CodeSource cs) Converts an array of bytes into an instance of classClass, with an optional CodeSource.protected final Class<?> SecureClassLoader.defineClass(String name, ByteBuffer b, CodeSource cs) Converts aByteBufferinto an instance of classClass, with an optional CodeSource.final voidKeyStore.deleteEntry(String alias) Deletes the entry identified by the given alias from this keystore.abstract booleanKeyStoreSpi.engineContainsAlias(String alias) Checks if the given alias exists in this keystore.abstract voidKeyStoreSpi.engineDeleteEntry(String alias) Deletes the entry identified by the given alias from this keystore.booleanKeyStoreSpi.engineEntryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.KeyStoreSpi.engineGetAttributes(String alias) Retrieves the attributes associated with the given alias.abstract CertificateKeyStoreSpi.engineGetCertificate(String alias) Returns the certificate associated with the given alias.abstract Certificate[]KeyStoreSpi.engineGetCertificateChain(String alias) Returns the certificate chain associated with the given alias.abstract DateKeyStoreSpi.engineGetCreationDate(String alias) Returns the creation date of the entry identified by the given alias.protected abstract byte[]AlgorithmParametersSpi.engineGetEncoded(String format) Returns the parameters encoded in the specified format.KeyStoreSpi.engineGetEntry(String alias, KeyStore.ProtectionParameter protParam) Gets aKeyStore.Entryfor the specified alias with the specified protection parameter.abstract KeyKeyStoreSpi.engineGetKey(String alias, char[] password) Returns the key associated with the given alias, using the given password to recover it.protected abstract ObjectSignatureSpi.engineGetParameter(String param) Deprecated.protected abstract voidAlgorithmParametersSpi.engineInit(byte[] params, String format) Imports the parameters fromparamsand decodes them according to the specified decoding format.abstract booleanKeyStoreSpi.engineIsCertificateEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetCertificateEntry, or created by a call tosetEntrywith aTrustedCertificateEntry.abstract booleanKeyStoreSpi.engineIsKeyEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetKeyEntry, or created by a call tosetEntrywith aPrivateKeyEntryor aSecretKeyEntry.abstract voidKeyStoreSpi.engineSetCertificateEntry(String alias, Certificate cert) Assigns the given certificate to the given alias.voidKeyStoreSpi.engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) Saves aKeyStore.Entryunder the specified alias.abstract voidKeyStoreSpi.engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.abstract voidKeyStoreSpi.engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.protected abstract voidSignatureSpi.engineSetParameter(String param, Object value) Deprecated.Replaced byengineSetParameter.final booleanKeyStore.entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.static StringSecurity.getAlgorithmProperty(String algName, String propName) Deprecated.This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters.Security.getAlgorithms(String serviceName) Returns a Set ofStringobjects containing the names of all available algorithms or types for the specified Java cryptographic service (e.g.,Signature,MessageDigest,Cipher,Mac,KeyStore).final StringProvider.Service.getAttribute(String name) Return the value of the specified attribute ornullif this attribute is not set for this Service.final Set<KeyStore.Entry.Attribute> KeyStore.getAttributes(String alias) Retrieves the attributes associated with the given alias.final CertificateKeyStore.getCertificate(String alias) Returns the certificate associated with the given alias.final Certificate[]KeyStore.getCertificateChain(String alias) Returns the certificate chain associated with the given alias.final DateKeyStore.getCreationDate(String alias) Returns the creation date of the entry identified by the given alias.final byte[]AlgorithmParameters.getEncoded(String format) Returns the parameters encoded in the specified scheme.final KeyStore.EntryKeyStore.getEntry(String alias, KeyStore.ProtectionParameter protParam) Gets a keystoreEntryfor the specified alias with the specified protection parameter.abstract IdentityIdentityScope.getIdentity(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns theIdentityin this scope with the specified name (if any).static AlgorithmParameterGeneratorAlgorithmParameterGenerator.getInstance(String algorithm) Returns anAlgorithmParameterGeneratorobject for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGeneratorAlgorithmParameterGenerator.getInstance(String algorithm, String provider) Returns anAlgorithmParameterGeneratorobject for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGeneratorAlgorithmParameterGenerator.getInstance(String algorithm, Provider provider) Returns anAlgorithmParameterGeneratorobject for generating a set of parameters to be used with the specified algorithm.static AlgorithmParametersAlgorithmParameters.getInstance(String algorithm) Returns a parameter object for the specified algorithm.static AlgorithmParametersAlgorithmParameters.getInstance(String algorithm, String provider) Returns a parameter object for the specified algorithm.static AlgorithmParametersAlgorithmParameters.getInstance(String algorithm, Provider provider) Returns a parameter object for the specified algorithm.static KeyFactoryKeyFactory.getInstance(String algorithm) Returns aKeyFactoryobject that converts public/private keys of the specified algorithm.static KeyFactoryKeyFactory.getInstance(String algorithm, String provider) Returns aKeyFactoryobject that converts public/private keys of the specified algorithm.static KeyFactoryKeyFactory.getInstance(String algorithm, Provider provider) Returns aKeyFactoryobject that converts public/private keys of the specified algorithm.static KeyPairGeneratorKeyPairGenerator.getInstance(String algorithm) Returns aKeyPairGeneratorobject that generates public/private key pairs for the specified algorithm.static KeyPairGeneratorKeyPairGenerator.getInstance(String algorithm, String provider) Returns aKeyPairGeneratorobject that generates public/private key pairs for the specified algorithm.static KeyPairGeneratorKeyPairGenerator.getInstance(String algorithm, Provider provider) Returns aKeyPairGeneratorobject that generates public/private key pairs for the specified algorithm.static KeyStoreKeyStore.getInstance(String type) Returns aKeyStoreobject of the specified type.static KeyStoreKeyStore.getInstance(String type, String provider) Returns aKeyStoreobject of the specified type.static KeyStoreKeyStore.getInstance(String type, Provider provider) Returns aKeyStoreobject of the specified type.static MessageDigestMessageDigest.getInstance(String algorithm) Returns aMessageDigestobject that implements the specified digest algorithm.static MessageDigestMessageDigest.getInstance(String algorithm, String provider) Returns aMessageDigestobject that implements the specified digest algorithm.static MessageDigestMessageDigest.getInstance(String algorithm, Provider provider) Returns aMessageDigestobject that implements the specified digest algorithm.static PolicyPolicy.getInstance(String type, Policy.Parameters params) Deprecated, for removal: This API element is subject to removal in a future version.Returns a Policy object of the specified type.static PolicyPolicy.getInstance(String type, Policy.Parameters params, String provider) Deprecated, for removal: This API element is subject to removal in a future version.Returns aPolicyobject of the specified type.static PolicyPolicy.getInstance(String type, Policy.Parameters params, Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.Returns aPolicyobject of the specified type.static SecureRandomSecureRandom.getInstance(String algorithm) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom.getInstance(String algorithm, String provider) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom.getInstance(String algorithm, Provider provider) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params, String provider) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params, Provider provider) Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SignatureSignature.getInstance(String algorithm) Returns aSignatureobject that implements the specified signature algorithm.static SignatureSignature.getInstance(String algorithm, String provider) Returns aSignatureobject that implements the specified signature algorithm.static SignatureSignature.getInstance(String algorithm, Provider provider) Returns aSignatureobject that implements the specified signature algorithm.final KeyReturns the key associated with the given alias, using the given password to recover it.final ObjectSignature.getParameter(String param) Deprecated.static StringSecurity.getProperty(String key) Gets a security property value.abstract KeyStore.ProtectionParameterKeyStore.Builder.getProtectionParameter(String alias) Returns theProtectionParameterthat should be used to obtain theEntrywith the given alias.static ProviderSecurity.getProvider(String name) Returns the provider installed with the specified name, if any.static Provider[]Security.getProviders(String filter) Returns an array containing all installed providers that satisfy the specified selection criterion, ornullif no such providers have been installed.Provider.getService(String type, String algorithm) Get the service describing this Provider's implementation of the specified type of this algorithm or alias.final voidImports the parameters fromparamsand decodes them according to the specified decoding scheme.final booleanKeyStore.isCertificateEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetCertificateEntry, or created by a call tosetEntrywith aTrustedCertificateEntry.final booleanKeyStore.isKeyEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetKeyEntry, or created by a call tosetEntrywith aPrivateKeyEntryor aSecretKeyEntry.static KeyStore.BuilderKeyStore.Builder.newInstance(String type, Provider provider, File file, KeyStore.ProtectionParameter protection) Returns a newBuilderobject.static KeyStore.BuilderKeyStore.Builder.newInstance(String type, Provider provider, KeyStore.ProtectionParameter protection) Returns a newBuilderobject.booleanAlgorithmConstraints.permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) Determines whether an algorithm is granted permission for the specified cryptographic primitives.booleanAlgorithmConstraints.permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.static voidSecurity.removeProvider(String name) Removes the provider with the specified name.final voidKeyStore.setCertificateEntry(String alias, Certificate cert) Assigns the given trusted certificate to the given alias.final voidKeyStore.setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) Saves a keystoreEntryunder the specified alias.voidDeprecated, for removal: This API element is subject to removal in a future version.Specifies a general information string for thisIdentity.final voidKeyStore.setKeyEntry(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.final voidKeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.final voidSignature.setParameter(String param, Object value) Deprecated.UsesetParameter.static voidSecurity.setProperty(String key, String datum) Sets a security property value.static CryptoPrimitiveReturns the enum constant of this class with the specified name.static DrbgParameters.CapabilityReturns the enum constant of this class with the specified name.static KeyRep.TypeReturns the enum constant of this class with the specified name.Method parameters in java.security with type arguments of type StringModifier and TypeMethodDescriptionstatic Provider[]Security.getProviders(Map<String, String> filter) Returns an array containing all installed providers that satisfy the specified selection criteria, ornullif no such providers have been installed.static Provider[]Security.getProviders(Map<String, String> filter) Returns an array containing all installed providers that satisfy the specified selection criteria, ornullif no such providers have been installed.Constructors in java.security with parameters of type StringModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs anAccessControlExceptionwith the specified, detailed message.Deprecated, for removal: This API element is subject to removal in a future version.Constructs anAccessControlExceptionwith the specified, detailed message, and the requested permission that caused the exception.protectedAlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) Creates anAlgorithmParameterGeneratorobject.protectedAlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm) Creates anAlgorithmParametersobject.AllPermission(String name, String actions) Creates a newAllPermissionobject.protectedAuthProvider(String name, double version, String info) Deprecated.useAuthProvider(String, String, String)instead.protectedAuthProvider(String name, String versionStr, String info) Constructs a provider with the specified name, version string, and information.BasicPermission(String name) Creates a newBasicPermissionwith the specified name.BasicPermission(String name, String actions) Creates a newBasicPermissionobject with the specified name.DigestException(String msg) Constructs aDigestExceptionwith the specified detail message.DigestException(String message, Throwable cause) Creates aDigestExceptionwith the specified detail message and cause.Constructs aGeneralSecurityExceptionwith the specified detail message.GeneralSecurityException(String message, Throwable cause) Creates aGeneralSecurityExceptionwith the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.Constructs anIdentitywith the specified name and no scope.Identity(String name, IdentityScope scope) Deprecated, for removal: This API element is subject to removal in a future version.Constructs anIdentitywith the specified name and scope.IdentityScope(String name) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new identity scope with the specified name.IdentityScope(String name, IdentityScope scope) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new identity scope with the specified name and scope.Constructs anInvalidAlgorithmParameterExceptionwith the specified detail message.InvalidAlgorithmParameterException(String message, Throwable cause) Creates anInvalidAlgorithmParameterExceptionwith the specified detail message and cause.Constructs anInvalidKeyExceptionwith the specified detail message.InvalidKeyException(String message, Throwable cause) Creates anInvalidKeyExceptionwith the specified detail message and cause.Constructs anInvalidParameterExceptionwith the specified detail message.InvalidParameterException(String msg, Throwable cause) Constructs anInvalidParameterExceptionwith the specified detail message and cause.KeyException(String msg) Constructs aKeyExceptionwith the specified detail message.KeyException(String message, Throwable cause) Creates aKeyExceptionwith the specified detail message and cause.protectedKeyFactory(KeyFactorySpi keyFacSpi, Provider provider, String algorithm) Creates aKeyFactoryobject.Constructs aKeyManagementExceptionwith the specified detail message.KeyManagementException(String message, Throwable cause) Creates aKeyManagementExceptionwith the specified detail message and cause.protectedKeyPairGenerator(String algorithm) Creates aKeyPairGeneratorobject for the specified algorithm.KeyRep(KeyRep.Type type, String algorithm, String format, byte[] encoded) Construct the alternate Key class.protectedKeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type) Creates aKeyStoreobject of the given type, and encapsulates the given provider implementation (SPI object) in it.KeyStoreException(String msg) Constructs aKeyStoreExceptionwith the specified detail message.KeyStoreException(String message, Throwable cause) Creates aKeyStoreExceptionwith the specified detail message and cause.protectedMessageDigest(String algorithm) Creates a message digest with the specified algorithm name.Constructs aNoSuchAlgorithmExceptionwith the specified detail message.NoSuchAlgorithmException(String message, Throwable cause) Creates aNoSuchAlgorithmExceptionwith the specified detail message and cause.Constructs aNoSuchProviderExceptionwith the specified detail message.PasswordProtection(char[] password, String protectionAlgorithm, AlgorithmParameterSpec protectionParameters) Creates a password parameter and specifies the protection algorithm and associated parameters to use when encrypting a keystore entry.Permission(String name) Constructs a permission with the specified name.PKCS12Attribute(String name, String value) Constructs a PKCS12 attribute from its name and value.protectedDeprecated.useProvider(String, String, String)instead.protectedConstructs aProviderwith the specified name, version string, and information.Constructs aProviderExceptionwith the specified detail message.ProviderException(String message, Throwable cause) Creates aProviderExceptionwith the specified detail message and cause.protectedSecureClassLoader(String name, ClassLoader parent) Creates a newSecureClassLoaderof the specified name and using the specified parent class loader for delegation.SecurityPermission(String name) Creates a newSecurityPermissionwith the specified name.SecurityPermission(String name, String actions) Creates a newSecurityPermissionobject with the specified name.Service(Provider provider, String type, String algorithm, String className, List<String> aliases, Map<String, String> attributes) Construct a new service.protectedCreates aSignatureobject for the specified algorithm.SignatureException(String msg) Constructs aSignatureExceptionwith the specified detail message.SignatureException(String message, Throwable cause) Creates aSignatureExceptionwith the specified detail message and cause.Deprecated, for removal: This API element is subject to removal in a future version.Creates aSignerwith the specified identity name.Signer(String name, IdentityScope scope) Deprecated, for removal: This API element is subject to removal in a future version.Creates aSignerwith the specified identity name and scope.Constructs anUnrecoverableEntryExceptionwith the specified detail message, which provides more information about why this exception has been thrown.Constructs anUnrecoverableKeyExceptionwith the specified detail message, which provides more information about why this exception has been thrown.UnresolvedPermission(String type, String name, String actions, Certificate[] certs) Creates a newUnresolvedPermissioncontaining the permission information needed later to actually create a Permission of the specified class, when the permission is resolved.Constructor parameters in java.security with type arguments of type StringModifierConstructorDescriptionDomainLoadStoreParameter(URI configuration, Map<String, KeyStore.ProtectionParameter> protectionParams) Constructs aDomainLoadStoreParameterfor a keystore domain with the parameters used to protect keystore data.Service(Provider provider, String type, String algorithm, String className, List<String> aliases, Map<String, String> attributes) Construct a new service.Service(Provider provider, String type, String algorithm, String className, List<String> aliases, Map<String, String> attributes) Construct a new service.Service(Provider provider, String type, String algorithm, String className, List<String> aliases, Map<String, String> attributes) Construct a new service. -
Uses of String in java.security.cert
Methods in java.security.cert that return StringModifier and TypeMethodDescriptionfinal StringCertPathBuilder.getAlgorithm()Returns the name of the algorithm of thisCertPathBuilder.final StringCertPathValidator.getAlgorithm()Returns the algorithm name of thisCertPathValidator.final StringTrustAnchor.getCAName()Returns the name of the most-trusted CA in RFC 2253Stringformat.static final StringCertPathBuilder.getDefaultType()Returns the defaultCertPathBuildertype as specified by thecertpathbuilder.typesecurity property, or the string "PKIX" if no such property exists.static final StringCertPathValidator.getDefaultType()Returns the defaultCertPathValidatortype as specified by thecertpathvalidator.typesecurity property, or the string "PKIX" if no such property exists.static final StringCertStore.getDefaultType()Returns the defaultCertStoretype as specified by thecertstore.typesecurity property, or the string "LDAP" if no such property exists.Extension.getId()Gets the extensions's object identifier.X509CertSelector.getIssuerAsString()Deprecated.UseX509CertSelector.getIssuer()orX509CertSelector.getIssuerAsBytes()instead.final StringPolicyQualifierInfo.getPolicyQualifierId()Returns thepolicyQualifierIdfield of thisPolicyQualifierInfo.LDAPCertStoreParameters.getServerName()Returns the DNS name of the LDAP server.abstract StringX509Certificate.getSigAlgName()Gets the signature algorithm name for the certificate signature algorithm.abstract StringX509CRL.getSigAlgName()Gets the signature algorithm name for the CRL signature algorithm.abstract StringX509Certificate.getSigAlgOID()Gets the signature algorithm OID string from the certificate.abstract StringX509CRL.getSigAlgOID()Gets the signature algorithm OID string from the CRL.PKIXParameters.getSigProvider()Returns the signature provider's name, ornullif not set.X509CertSelector.getSubjectAsString()Deprecated.UseX509CertSelector.getSubject()orX509CertSelector.getSubjectAsBytes()instead.X509CertSelector.getSubjectPublicKeyAlgID()Returns the subjectPublicKeyAlgID criterion.final StringCertificate.getType()Returns the type of this certificate.final StringCertificateFactory.getType()Returns the name of the certificate type associated with this certificate factory.CertPath.getType()Returns the type ofCertificates in this certification path.final StringCertStore.getType()Returns the type of thisCertStore.final StringCRL.getType()Returns the type of this CRL.PolicyNode.getValidPolicy()Returns the valid policy represented by this node.abstract StringCertificate.toString()Returns a string representation of this certificate.CertPath.toString()Returns a string representation of this certification path.CollectionCertStoreParameters.toString()Returns a formatted string describing the parameters.abstract StringCRL.toString()Returns a string representation of this CRL.LDAPCertStoreParameters.toString()Returns a formatted string describing the parameters.PKIXBuilderParameters.toString()Returns a formatted string describing the parameters.PKIXCertPathBuilderResult.toString()Return a printable representation of thisPKIXCertPathBuilderResult.PKIXCertPathValidatorResult.toString()Return a printable representation of thisPKIXCertPathValidatorResult.PKIXParameters.toString()Returns a formatted string describing the parameters.PolicyQualifierInfo.toString()Return a printable representation of thisPolicyQualifierInfo.TrustAnchor.toString()Returns a formatted string describing theTrustAnchor.URICertStoreParameters.toString()Returns a formatted string describing the parameters including the URI used to construct this object.X509CertSelector.toString()Return a printable representation of theCertSelector.abstract StringX509CRLEntry.toString()Returns a string representation of this CRL entry.X509CRLSelector.toString()Returns a printable representation of theX509CRLSelector.Methods in java.security.cert that return types with arguments of type StringModifier and TypeMethodDescriptionCertificateFactorySpi.engineGetCertPathEncodings()Returns an iteration of theCertPathencodings supported by this certificate factory, with the default encoding first.CertificateFactory.getCertPathEncodings()Returns an iteration of theCertPathencodings supported by this certificate factory, with the default encoding first.X509Extension.getCriticalExtensionOIDs()Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface.CertPath.getEncodings()Returns an iteration of the encodings supported by this certification path, with the default encoding first.PolicyNode.getExpectedPolicies()Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.X509Certificate.getExtendedKeyUsage()Gets an unmodifiable list of Strings representing the OBJECT IDENTIFIERs of theExtKeyUsageSyntaxfield of the extended key usage extension, (OID = 2.5.29.37).X509CertSelector.getExtendedKeyUsage()Returns the extendedKeyUsage criterion.CertificateRevokedException.getExtensions()Returns a map of X.509 extensions containing additional information about the revoked certificate, such as the Invalidity Date Extension.PKIXParameters.getInitialPolicies()Returns an immutableSetof initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing.X509Extension.getNonCriticalExtensionOIDs()Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface.X509CertSelector.getPolicy()Returns the policy criterion.PKIXCertPathChecker.getSupportedExtensions()Returns an immutableSetof X.509 certificate extensions that thisPKIXCertPathCheckersupports (i.e. recognizes, is able to process), ornullif no extensions are supported.Methods in java.security.cert with parameters of type StringModifier and TypeMethodDescriptionvoidX509CRLSelector.addIssuerName(String name) Deprecated.voidX509CertSelector.addPathToName(int type, String name) Adds a name to the pathToNames criterion.voidX509CertSelector.addSubjectAlternativeName(int type, String name) Adds a name to the subjectAlternativeNames criterion.CertificateFactorySpi.engineGenerateCertPath(InputStream inStream, String encoding) Generates aCertPathobject and initializes it with the data read from theInputStreaminStream.final CertPathCertificateFactory.generateCertPath(InputStream inStream, String encoding) Generates aCertPathobject and initializes it with the data read from theInputStreaminStream.abstract byte[]CertPath.getEncoded(String encoding) Returns the encoded form of this certification path, using the specified encoding.byte[]X509Extension.getExtensionValue(String oid) Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-inoidString.static final CertificateFactoryCertificateFactory.getInstance(String type) Returns a certificate factory object that implements the specified certificate type.static final CertificateFactoryCertificateFactory.getInstance(String type, String provider) Returns a certificate factory object for the specified certificate type.static final CertificateFactoryCertificateFactory.getInstance(String type, Provider provider) Returns a certificate factory object for the specified certificate type.static CertPathBuilderCertPathBuilder.getInstance(String algorithm) Returns aCertPathBuilderobject that implements the specified algorithm.static CertPathBuilderCertPathBuilder.getInstance(String algorithm, String provider) Returns aCertPathBuilderobject that implements the specified algorithm.static CertPathBuilderCertPathBuilder.getInstance(String algorithm, Provider provider) Returns aCertPathBuilderobject that implements the specified algorithm.static CertPathValidatorCertPathValidator.getInstance(String algorithm) Returns aCertPathValidatorobject that implements the specified algorithm.static CertPathValidatorCertPathValidator.getInstance(String algorithm, String provider) Returns aCertPathValidatorobject that implements the specified algorithm.static CertPathValidatorCertPathValidator.getInstance(String algorithm, Provider provider) Returns aCertPathValidatorobject that implements the specified algorithm.static CertStoreCertStore.getInstance(String type, CertStoreParameters params) Returns aCertStoreobject that implements the specifiedCertStoretype and is initialized with the specified parameters.static CertStoreCertStore.getInstance(String type, CertStoreParameters params, String provider) Returns aCertStoreobject that implements the specifiedCertStoretype.static CertStoreCertStore.getInstance(String type, CertStoreParameters params, Provider provider) Returns aCertStoreobject that implements the specifiedCertStoretype.voidDeprecated.voidPKIXParameters.setSigProvider(String sigProvider) Sets the signature provider's name.voidX509CertSelector.setSubject(String subjectDN) Deprecated.voidX509CertSelector.setSubjectPublicKeyAlgID(String oid) Sets the subjectPublicKeyAlgID criterion.Returns the enum constant of this class with the specified name.static CRLReasonReturns the enum constant of this class with the specified name.static PKIXReasonReturns the enum constant of this class with the specified name.static PKIXRevocationChecker.OptionReturns the enum constant of this class with the specified name.abstract voidVerifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidVerifies that this CRL was signed using the private key that corresponds to the given public key.Method parameters in java.security.cert with type arguments of type StringModifier and TypeMethodDescriptionabstract voidPKIXCertPathChecker.check(Certificate cert, Collection<String> unresolvedCritExts) Performs the check(s) on the specified certificate using its internal state and removes any critical extensions that it processes from the specified collection of OID strings that represent the unresolved critical extensions.voidX509CertSelector.setExtendedKeyUsage(Set<String> keyPurposeSet) Sets the extendedKeyUsage criterion.voidPKIXParameters.setInitialPolicies(Set<String> initialPolicies) Sets theSetof initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing.voidSets the policy constraint.Constructors in java.security.cert with parameters of type StringModifierConstructorDescriptionprotectedCertificate(String type) Creates a certificate of the specified type.CertificateEncodingException(String message) Constructs a CertificateEncodingException with the specified detail message.CertificateEncodingException(String message, Throwable cause) Creates aCertificateEncodingExceptionwith the specified detail message and cause.Constructs a certificate exception with the given detail message.CertificateException(String message, Throwable cause) Creates aCertificateExceptionwith the specified detail message and cause.CertificateExpiredException(String message) Constructs a CertificateExpiredException with the specified detail message.protectedCertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) Creates a CertificateFactory object of the given type, and encapsulates the given provider implementation (SPI object) in it.CertificateNotYetValidException(String message) Constructs a CertificateNotYetValidException with the specified detail message.CertificateParsingException(String message) Constructs a CertificateParsingException with the specified detail message.CertificateParsingException(String message, Throwable cause) Creates aCertificateParsingExceptionwith the specified detail message and cause.protectedCertificateRep(String type, byte[] data) Construct the alternateCertificateclass with theCertificatetype andCertificateencoding bytes.protectedCreates aCertPathof the specified type.protectedCertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm) Creates aCertPathBuilderobject of the given algorithm, and encapsulates the given provider implementation (SPI object) in it.Creates aCertPathBuilderExceptionwith the given detail message.CertPathBuilderException(String msg, Throwable cause) Creates aCertPathBuilderExceptionwith the specified detail message and cause.protectedCertPathRep(String type, byte[] data) Creates aCertPathRepwith the specified type and encoded form of a certification path.protectedCertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) Creates aCertPathValidatorobject of the given algorithm, and encapsulates the given provider implementation (SPI object) in it.Creates aCertPathValidatorExceptionwith the given detail message.CertPathValidatorException(String msg, Throwable cause) Creates aCertPathValidatorExceptionwith the specified detail message and cause.CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index) Creates aCertPathValidatorExceptionwith the specified detail message, cause, certification path, and index.CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index, CertPathValidatorException.Reason reason) Creates aCertPathValidatorExceptionwith the specified detail message, cause, certification path, index, and reason.protectedCertStore(CertStoreSpi storeSpi, Provider provider, String type, CertStoreParameters params) Creates aCertStoreobject of the given type, and encapsulates the given provider implementation (SPI object) in it.CertStoreException(String msg) Creates aCertStoreExceptionwith the given detail message.CertStoreException(String msg, Throwable cause) Creates aCertStoreExceptionwith the specified detail message and cause.protectedCreates a CRL of the specified type.CRLException(String message) Constructs a CRLException with the specified detail message.CRLException(String message, Throwable cause) Creates aCRLExceptionwith the specified detail message and cause.LDAPCertStoreParameters(String serverName) Creates an instance ofLDAPCertStoreParameterswith the specified server name and a default port of 389.LDAPCertStoreParameters(String serverName, int port) Creates an instance ofLDAPCertStoreParameterswith the specified parameter values.TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints) Creates an instance ofTrustAnchorwhere the most-trusted CA is specified as a distinguished name and public key.Constructor parameters in java.security.cert with type arguments of type StringModifierConstructorDescriptionCertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String, Extension> extensions) Constructs aCertificateRevokedExceptionwith the specified revocation date, reason code, authority name, and map of extensions. -
Uses of String in java.security.spec
Methods in java.security.spec that return StringModifier and TypeMethodDescriptionEncodedKeySpec.getAlgorithm()Returns the name of the algorithm of the encoded key.MGF1ParameterSpec.getDigestAlgorithm()Returns the algorithm name of the message digest used by the mask generation function.PSSParameterSpec.getDigestAlgorithm()Returns the message digest algorithm name.abstract StringEncodedKeySpec.getFormat()Returns the name of the encoding format associated with this key specification.final StringPKCS8EncodedKeySpec.getFormat()Returns the name of the encoding format associated with this key specification.final StringX509EncodedKeySpec.getFormat()Returns the name of the encoding format associated with this key specification.PSSParameterSpec.getMGFAlgorithm()Returns the mask generation function algorithm name.NamedParameterSpec.getName()Returns the standard name that determines the algorithm parameters.Constructors in java.security.spec with parameters of type StringModifierConstructorDescriptionECGenParameterSpec(String stdName) Creates a parameter specification for EC parameter generation using a standard (or predefined) namestdNamein order to generate the corresponding (precomputed) elliptic curve domain parameters.protectedEncodedKeySpec(byte[] encodedKey, String algorithm) Creates a newEncodedKeySpecwith the given encoded key.Constructs an InvalidKeySpecException with the specified detail message.InvalidKeySpecException(String message, Throwable cause) Creates anInvalidKeySpecExceptionwith the specified detail message and cause.Constructs an InvalidParameterSpecException with the specified detail message.MGF1ParameterSpec(String mdName) Constructs a parameter set for mask generation function MGF1 as defined in the PKCS #1 standard.NamedParameterSpec(String stdName) Creates a parameter specification using a standard (or predefined) namestdName.PKCS8EncodedKeySpec(byte[] encodedKey, String algorithm) Creates a newPKCS8EncodedKeySpecwith the given encoded key and algorithm.PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) Creates a newPSSParameterSpecas defined in the PKCS #1 standard using the specified message digest, mask generation function, parameters for mask generation function, salt length, and trailer field values.X509EncodedKeySpec(byte[] encodedKey, String algorithm) Creates a newX509EncodedKeySpecwith the given encoded key. -
Uses of String in java.sql
Modifier and TypeFieldDescriptionString[]DriverPropertyInfo.choicesAn array of possible values if the value for the fieldDriverPropertyInfo.valuemay be selected from a particular set of values; otherwise null.DriverPropertyInfo.descriptionA brief description of the property, which may be null.DriverPropertyInfo.nameThe name of the property.DriverPropertyInfo.valueThevaluefield specifies the current value of the property, based on a combination of the information supplied to the methodgetPropertyInfo, the Java environment, and the driver-supplied default values.Modifier and TypeMethodDescriptiondefault StringStatement.enquoteIdentifier(String identifier, boolean alwaysQuote) Returns a SQL identifier.default StringStatement.enquoteLiteral(String val) Returns aStringenclosed in single quotes.default StringStatement.enquoteNCharLiteral(String val) Returns aStringrepresenting a National Character Set Literal enclosed in single quotes and prefixed with a upper case letter N.Array.getBaseTypeName()Retrieves the SQL type name of the elements in the array designated by thisArrayobject.Ref.getBaseTypeName()Retrieves the fully-qualified SQL name of the SQL structured type that thisRefobject references.Connection.getCatalog()Retrieves thisConnectionobject's current catalog name.ResultSetMetaData.getCatalogName(int column) Gets the designated column's table's catalog name.DatabaseMetaData.getCatalogSeparator()Retrieves theStringthat this database uses as the separator between a catalog and table name.DatabaseMetaData.getCatalogTerm()Retrieves the database vendor's preferred term for "catalog".Connection.getClientInfo(String name) Returns the value of the client info property specified by name.ResultSetMetaData.getColumnClassName(int column) Returns the fully-qualified name of the Java class whose instances are manufactured if the methodResultSet.getObjectis called to retrieve a value from the column.ResultSetMetaData.getColumnLabel(int column) Gets the designated column's suggested title for use in printouts and displays.ResultSetMetaData.getColumnName(int column) Get the designated column's name.ResultSetMetaData.getColumnTypeName(int column) Retrieves the designated column's database-specific type name.ResultSet.getCursorName()Retrieves the name of the SQL cursor used by thisResultSetobject.DatabaseMetaData.getDatabaseProductName()Retrieves the name of this database product.DatabaseMetaData.getDatabaseProductVersion()Retrieves the version number of this database product.DatabaseMetaData.getDriverName()Retrieves the name of this JDBC driver.DatabaseMetaData.getDriverVersion()Retrieves the version number of this JDBC driver as aString.DatabaseMetaData.getExtraNameCharacters()Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).DatabaseMetaData.getIdentifierQuoteString()Retrieves the string used to quote SQL identifiers.JDBCType.getName()Returns theSQLTypename that represents a SQL data type.SQLType.getName()Returns theSQLTypename that represents a SQL data type.CallableStatement.getNString(int parameterIndex) Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.CallableStatement.getNString(String parameterName) Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.ResultSet.getNString(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.ResultSet.getNString(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.DatabaseMetaData.getNumericFunctions()Retrieves a comma-separated list of math functions available with this database.ParameterMetaData.getParameterClassName(int param) Retrieves the fully-qualified name of the Java class whose instances should be passed to the methodPreparedStatement.setObject.ParameterMetaData.getParameterTypeName(int param) Retrieves the designated parameter's database-specific type name.DatabaseMetaData.getProcedureTerm()Retrieves the database vendor's preferred term for "procedure".Savepoint.getSavepointName()Retrieves the name of the savepoint that thisSavepointobject represents.Connection.getSchema()Retrieves thisConnectionobject's current schema name.ResultSetMetaData.getSchemaName(int column) Get the designated column's table's schema.DatabaseMetaData.getSchemaTerm()Retrieves the database vendor's preferred term for "schema".DatabaseMetaData.getSearchStringEscape()Retrieves the string that can be used to escape wildcard characters.DatabaseMetaData.getSQLKeywords()Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.SQLException.getSQLState()Retrieves the SQLState for thisSQLExceptionobject.SQLData.getSQLTypeName()Returns the fully-qualified name of the SQL user-defined type that this object represents.Struct.getSQLTypeName()Retrieves the SQL type name of the SQL structured type that thisStructobject represents.CallableStatement.getString(int parameterIndex) Retrieves the value of the designated JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.Retrieves the value of a JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.ResultSet.getString(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.SQLXML.getString()Returns a string representation of the XML value designated by this SQLXML instance.DatabaseMetaData.getStringFunctions()Retrieves a comma-separated list of string functions available with this database.Clob.getSubString(long pos, int length) Retrieves a copy of the specified substring in theCLOBvalue designated by thisClobobject.DatabaseMetaData.getSystemFunctions()Retrieves a comma-separated list of system functions available with this database.ResultSetMetaData.getTableName(int column) Gets the designated column's table name.DatabaseMetaData.getTimeDateFunctions()Retrieves a comma-separated list of the time and date functions available with this database.DatabaseMetaData.getURL()Retrieves the URL for this DBMS.DatabaseMetaData.getUserName()Retrieves the user name as known to this database.JDBCType.getVendor()Returns the name of the vendor that supports this data type.SQLType.getVendor()Returns the name of the vendor that supports this data type.Converts the given SQL statement into the system's native SQL grammar.SQLInput.readNString()Reads the next attribute in the stream and returns it as aStringin the Java programming language.SQLInput.readString()Reads the next attribute in the stream and returns it as aStringin the Java programming language.Date.toString()Formats a date in the date escape format yyyy-mm-dd.RowId.toString()Returns a String representing the value of the SQL ROWID designated by thisjava.sql.RowIdobject.Time.toString()Formats a time in JDBC time escape format.Timestamp.toString()Formats a timestamp in JDBC timestamp escape format.Modifier and TypeMethodDescriptionSQLClientInfoException.getFailedProperties()Returns the list of client info properties that could not be set.Connection.getTypeMap()Retrieves theMapobject associated with thisConnectionobject.Modifier and TypeMethodDescriptionbooleanDriver.acceptsURL(String url) Retrieves whether the driver thinks that it can open a connection to the given URL.voidAdds the given SQL command to the current list of commands for thisStatementobject.Driver.connect(String url, Properties info) Attempts to make a database connection to the given URL.Connection.createArrayOf(String typeName, Object[] elements) Factory method for creating Array objects.Connection.createStruct(String typeName, Object[] attributes) Factory method for creating Struct objects.default StringStatement.enquoteIdentifier(String identifier, boolean alwaysQuote) Returns a SQL identifier.default StringStatement.enquoteLiteral(String val) Returns aStringenclosed in single quotes.default StringStatement.enquoteNCharLiteral(String val) Returns aStringrepresenting a National Character Set Literal enclosed in single quotes and prefixed with a upper case letter N.booleanExecutes the given SQL statement, which may return multiple results.booleanExecutes the given SQL statement, which may return multiple results, and signals the driver that any auto-generated keys should be made available for retrieval.booleanExecutes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.booleanExecutes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.default longStatement.executeLargeUpdate(String sql) Executes the given SQL statement, which may be anINSERT,UPDATE, orDELETEstatement or an SQL statement that returns nothing, such as an SQL DDL statement.default longStatement.executeLargeUpdate(String sql, int autoGeneratedKeys) Executes the given SQL statement and signals the driver with the given flag about whether the auto-generated keys produced by thisStatementobject should be made available for retrieval.default longStatement.executeLargeUpdate(String sql, int[] columnIndexes) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.default longStatement.executeLargeUpdate(String sql, String[] columnNames) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.Statement.executeQuery(String sql) Executes the given SQL statement, which returns a singleResultSetobject.intStatement.executeUpdate(String sql) Executes the given SQL statement, which may be anINSERT,UPDATE, orDELETEstatement or an SQL statement that returns nothing, such as an SQL DDL statement.intStatement.executeUpdate(String sql, int autoGeneratedKeys) Executes the given SQL statement and signals the driver with the given flag about whether the auto-generated keys produced by thisStatementobject should be made available for retrieval.intStatement.executeUpdate(String sql, int[] columnIndexes) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.intStatement.executeUpdate(String sql, String[] columnNames) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval.intResultSet.findColumn(String columnLabel) Maps the givenResultSetcolumn label to itsResultSetcolumn index.Retrieves the value of a JDBCARRAYparameter as anArrayobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.ResultSet.getAsciiStream(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.DatabaseMetaData.getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog.DatabaseMetaData.getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) Retrieves a description of a table's optimal set of columns that uniquely identifies a row.CallableStatement.getBigDecimal(String parameterName) Retrieves the value of a JDBCNUMERICparameter as ajava.math.BigDecimalobject with as many digits to the right of the decimal point as the value contains.ResultSet.getBigDecimal(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.ResultSet.getBigDecimal(String columnLabel, int scale) Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)ResultSet.getBinaryStream(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes.Retrieves the value of a JDBCBLOBparameter as aBlobobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.booleanCallableStatement.getBoolean(String parameterName) Retrieves the value of a JDBCBITorBOOLEANparameter as abooleanin the Java programming language.booleanResultSet.getBoolean(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as abooleanin the Java programming language.byteRetrieves the value of a JDBCTINYINTparameter as abytein the Java programming language.byteRetrieves the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.byte[]Retrieves the value of a JDBCBINARYorVARBINARYparameter as an array ofbytevalues in the Java programming language.byte[]Retrieves the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language.CallableStatement.getCharacterStream(String parameterName) Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ResultSet.getCharacterStream(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.Connection.getClientInfo(String name) Returns the value of the client info property specified by name.Retrieves the value of a JDBCCLOBparameter as ajava.sql.Clobobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.DatabaseMetaData.getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) Retrieves a description of the access rights for a table's columns.DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) Retrieves a description of table columns available in the specified catalog.static ConnectionDriverManager.getConnection(String url) Attempts to establish a connection to the given database URL.static ConnectionDriverManager.getConnection(String url, String user, String password) Attempts to establish a connection to the given database URL.static ConnectionDriverManager.getConnection(String url, Properties info) Attempts to establish a connection to the given database URL.DatabaseMetaData.getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key or the columns representing a unique constraint of the parent table (could be the same or a different table).Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject.Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.doubleRetrieves the value of a JDBCDOUBLEparameter as adoublein the Java programming language.doubleRetrieves the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.static DriverAttempts to locate a driver that understands the given URL.DatabaseMetaData.getExportedKeys(String catalog, String schema, String table) Retrieves a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table).floatRetrieves the value of a JDBCFLOATparameter as afloatin the Java programming language.floatRetrieves the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.DatabaseMetaData.getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) Retrieves a description of the given catalog's system or user function parameters and return type.DatabaseMetaData.getFunctions(String catalog, String schemaPattern, String functionNamePattern) Retrieves a description of the system and user functions available in the given catalog.DatabaseMetaData.getImportedKeys(String catalog, String schema, String table) Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table).DatabaseMetaData.getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) Retrieves a description of the given table's indices and statistics.intRetrieves the value of a JDBCINTEGERparameter as anintin the Java programming language.intRetrieves the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.longRetrieves the value of a JDBCBIGINTparameter as alongin the Java programming language.longRetrieves the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.CallableStatement.getNCharacterStream(String parameterName) Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ResultSet.getNCharacterStream(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.Retrieves the value of a JDBCNCLOBparameter as ajava.sql.NClobobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.CallableStatement.getNString(String parameterName) Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.ResultSet.getNString(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.Retrieves the value of a parameter as anObjectin the Java programming language.<T> TReturns an object representing the value of OUT parameterparameterNameand will convert from the SQL type of the parameter to the requested Java data type, if the conversion is supported.Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custom mapping of the parameter value.Gets the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.<T> TRetrieves the value of the designated column in the current row of thisResultSetobject and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.DatabaseMetaData.getPrimaryKeys(String catalog, String schema, String table) Retrieves a description of the given table's primary key columns.DatabaseMetaData.getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) Retrieves a description of the given catalog's stored procedure parameter and result columns.DatabaseMetaData.getProcedures(String catalog, String schemaPattern, String procedureNamePattern) Retrieves a description of the stored procedures available in the given catalog.Driver.getPropertyInfo(String url, Properties info) Gets information about the possible properties for this driver.DatabaseMetaData.getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) Retrieves a description of the pseudo or hidden columns available in a given table within the specified catalog and schema.Retrieves the value of a JDBCREF(<structured-type>)parameter as aRefobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.Retrieves the value of the designated JDBCROWIDparameter as ajava.sql.RowIdobject.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.DatabaseMetaData.getSchemas(String catalog, String schemaPattern) Retrieves the schema names available in this database.shortRetrieves the value of a JDBCSMALLINTparameter as ashortin the Java programming language.shortRetrieves the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.Retrieves the value of the designatedSQL XMLparameter as ajava.sql.SQLXMLobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.Retrieves the value of a JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.DatabaseMetaData.getSuperTables(String catalog, String schemaPattern, String tableNamePattern) Retrieves a description of the table hierarchies defined in a particular schema in this database.DatabaseMetaData.getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database.DatabaseMetaData.getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) Retrieves a description of the access rights for each table available in a catalog.DatabaseMetaData.getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) Retrieves a description of the tables available in the given catalog.Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject.Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.CallableStatement.getTimestamp(String parameterName) Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.CallableStatement.getTimestamp(String parameterName, Calendar cal) Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.ResultSet.getTimestamp(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.ResultSet.getTimestamp(String columnLabel, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.Retrieves a description of the user-defined types (UDTs) defined in a particular schema.ResultSet.getUnicodeStream(String columnLabel) Deprecated.usegetCharacterStreaminsteadRetrieves the value of a JDBCDATALINKparameter as ajava.net.URLobject.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject in the Java programming language.DatabaseMetaData.getVersionColumns(String catalog, String schema, String table) Retrieves a description of a table's columns that are automatically updated when any value in a row is updated.default booleanStatement.isSimpleIdentifier(String identifier) Retrieves whetheridentifieris a simple SQL identifier.Converts the given SQL statement into the system's native SQL grammar.Specifies the password to be used when creating a connectionlongRetrieves the character position at which the specified substringsearchstrappears in the SQLCLOBvalue represented by thisClobobject.Connection.prepareCall(String sql) Creates aCallableStatementobject for calling database stored procedures.Connection.prepareCall(String sql, int resultSetType, int resultSetConcurrency) Creates aCallableStatementobject that will generateResultSetobjects with the given type and concurrency.Connection.prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Creates aCallableStatementobject that will generateResultSetobjects with the given type and concurrency.Connection.prepareStatement(String sql) Creates aPreparedStatementobject for sending parameterized SQL statements to the database.Connection.prepareStatement(String sql, int autoGeneratedKeys) Creates a defaultPreparedStatementobject that has the capability to retrieve auto-generated keys.Connection.prepareStatement(String sql, int[] columnIndexes) Creates a defaultPreparedStatementobject capable of returning the auto-generated keys designated by the given array.Connection.prepareStatement(String sql, int resultSetType, int resultSetConcurrency) Creates aPreparedStatementobject that will generateResultSetobjects with the given type and concurrency.Connection.prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Creates aPreparedStatementobject that will generateResultSetobjects with the given type, concurrency, and holdability.Connection.prepareStatement(String sql, String[] columnNames) Creates a defaultPreparedStatementobject capable of returning the auto-generated keys designated by the given array.static voidPrints a message to the current JDBC log stream.voidPopulates this object with data read from the database.voidCallableStatement.registerOutParameter(int parameterIndex, int sqlType, String typeName) Registers the designated output parameter.default voidCallableStatement.registerOutParameter(int parameterIndex, SQLType sqlType, String typeName) Registers the designated output parameter.voidCallableStatement.registerOutParameter(String parameterName, int sqlType) Registers the OUT parameter namedparameterNameto the JDBC typesqlType.voidCallableStatement.registerOutParameter(String parameterName, int sqlType, int scale) Registers the parameter namedparameterNameto be of JDBC typesqlType.voidCallableStatement.registerOutParameter(String parameterName, int sqlType, String typeName) Registers the designated output parameter.default voidCallableStatement.registerOutParameter(String parameterName, SQLType sqlType) Registers the OUT parameter namedparameterNameto the JDBC typesqlType.default voidCallableStatement.registerOutParameter(String parameterName, SQLType sqlType, int scale) Registers the parameter namedparameterNameto be of JDBC typesqlType.default voidCallableStatement.registerOutParameter(String parameterName, SQLType sqlType, String typeName) Registers the designated output parameter.voidCallableStatement.setAsciiStream(String parameterName, InputStream x) Sets the designated parameter to the given input stream.voidCallableStatement.setAsciiStream(String parameterName, InputStream x, int length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidCallableStatement.setAsciiStream(String parameterName, InputStream x, long length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidCallableStatement.setBigDecimal(String parameterName, BigDecimal x) Sets the designated parameter to the givenjava.math.BigDecimalvalue.voidCallableStatement.setBinaryStream(String parameterName, InputStream x) Sets the designated parameter to the given input stream.voidCallableStatement.setBinaryStream(String parameterName, InputStream x, int length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidCallableStatement.setBinaryStream(String parameterName, InputStream x, long length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidCallableStatement.setBlob(String parameterName, InputStream inputStream) Sets the designated parameter to anInputStreamobject.voidCallableStatement.setBlob(String parameterName, InputStream inputStream, long length) Sets the designated parameter to anInputStreamobject.voidSets the designated parameter to the givenjava.sql.Blobobject.voidCallableStatement.setBoolean(String parameterName, boolean x) Sets the designated parameter to the given Javabooleanvalue.voidSets the designated parameter to the given Javabytevalue.voidSets the designated parameter to the given Java array of bytes.voidConnection.setCatalog(String catalog) Sets the given catalog name in order to select a subspace of thisConnectionobject's database in which to work.voidCallableStatement.setCharacterStream(String parameterName, Reader reader) Sets the designated parameter to the givenReaderobject.voidCallableStatement.setCharacterStream(String parameterName, Reader reader, int length) Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidCallableStatement.setCharacterStream(String parameterName, Reader reader, long length) Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidConnection.setClientInfo(String name, String value) Sets the value of the client info property specified by name to the value specified by value.voidSets the designated parameter to aReaderobject.voidSets the designated parameter to aReaderobject.voidSets the designated parameter to the givenjava.sql.Clobobject.voidStatement.setCursorName(String name) Sets the SQL cursor name to the givenString, which will be used by subsequentStatementobjectexecutemethods.voidSets the designated parameter to the givenjava.sql.Datevalue using the default time zone of the virtual machine that is running the application.voidSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidSets the designated parameter to the given Javadoublevalue.voidSets the designated parameter to the given Javafloatvalue.voidSets the designated parameter to the given Javaintvalue.voidSets the designated parameter to the given Javalongvalue.voidCallableStatement.setNCharacterStream(String parameterName, Reader value) Sets the designated parameter to aReaderobject.voidCallableStatement.setNCharacterStream(String parameterName, Reader value, long length) Sets the designated parameter to aReaderobject.voidSets the designated parameter to aReaderobject.voidSets the designated parameter to aReaderobject.voidSets the designated parameter to ajava.sql.NClobobject.voidCallableStatement.setNString(String parameterName, String value) Sets the designated parameter to the givenStringobject.voidPreparedStatement.setNString(int parameterIndex, String value) Sets the designated parameter to the givenStringobject.voidSets the designated parameter to SQLNULL.voidSets the designated parameter to SQLNULL.voidSets the designated parameter to SQLNULL.voidSets the value of the designated parameter with the given object.voidSets the value of the designated parameter with the given object.voidSets the value of the designated parameter with the given object.default voidSets the value of the designated parameter with the given object.default voidCallableStatement.setObject(String parameterName, Object x, SQLType targetSqlType, int scaleOrLength) Sets the value of the designated parameter with the given object.voidSets the designated parameter to the givenjava.sql.RowIdobject.Connection.setSavepoint(String name) Creates a savepoint with the given name in the current transaction and returns the newSavepointobject that represents it.voidSets the given schema name to access.voidSets the designated parameter to the given Javashortvalue.voidSets the designated parameter to the givenjava.sql.SQLXMLobject.voidSets the designated parameter to the given JavaStringvalue.intWrites the given JavaStringto theCLOBvalue that thisClobobject designates at the positionpos.intWriteslencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.voidSets the designated parameter to the given JavaStringvalue.voidSets the XML value designated by this SQLXML instance to the given String representation.voidSets the designated parameter to the givenjava.sql.Timevalue.voidSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidCallableStatement.setTimestamp(String parameterName, Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidCallableStatement.setTimestamp(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidSets the designated parameter to the givenjava.net.URLobject.voidResultSet.updateArray(String columnLabel, Array x) Updates the designated column with ajava.sql.Arrayvalue.voidResultSet.updateAsciiStream(String columnLabel, InputStream x) Updates the designated column with an ascii stream value.voidResultSet.updateAsciiStream(String columnLabel, InputStream x, int length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidResultSet.updateAsciiStream(String columnLabel, InputStream x, long length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidResultSet.updateBigDecimal(String columnLabel, BigDecimal x) Updates the designated column with ajava.sql.BigDecimalvalue.voidResultSet.updateBinaryStream(String columnLabel, InputStream x) Updates the designated column with a binary stream value.voidResultSet.updateBinaryStream(String columnLabel, InputStream x, int length) Updates the designated column with a binary stream value, which will have the specified number of bytes.voidResultSet.updateBinaryStream(String columnLabel, InputStream x, long length) Updates the designated column with a binary stream value, which will have the specified number of bytes.voidResultSet.updateBlob(String columnLabel, InputStream inputStream) Updates the designated column using the given input stream.voidResultSet.updateBlob(String columnLabel, InputStream inputStream, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.voidResultSet.updateBlob(String columnLabel, Blob x) Updates the designated column with ajava.sql.Blobvalue.voidResultSet.updateBoolean(String columnLabel, boolean x) Updates the designated column with abooleanvalue.voidResultSet.updateByte(String columnLabel, byte x) Updates the designated column with abytevalue.voidResultSet.updateBytes(String columnLabel, byte[] x) Updates the designated column with a byte array value.voidResultSet.updateCharacterStream(String columnLabel, Reader reader) Updates the designated column with a character stream value.voidResultSet.updateCharacterStream(String columnLabel, Reader reader, int length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet.updateCharacterStream(String columnLabel, Reader reader, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet.updateClob(String columnLabel, Reader reader) Updates the designated column using the givenReaderobject.voidResultSet.updateClob(String columnLabel, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidResultSet.updateClob(String columnLabel, Clob x) Updates the designated column with ajava.sql.Clobvalue.voidResultSet.updateDate(String columnLabel, Date x) Updates the designated column with ajava.sql.Datevalue.voidResultSet.updateDouble(String columnLabel, double x) Updates the designated column with adoublevalue.voidResultSet.updateFloat(String columnLabel, float x) Updates the designated column with afloatvalue.voidUpdates the designated column with anintvalue.voidResultSet.updateLong(String columnLabel, long x) Updates the designated column with alongvalue.voidResultSet.updateNCharacterStream(String columnLabel, Reader reader) Updates the designated column with a character stream value.voidResultSet.updateNCharacterStream(String columnLabel, Reader reader, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet.updateNClob(String columnLabel, Reader reader) Updates the designated column using the givenReaderobject.voidResultSet.updateNClob(String columnLabel, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidResultSet.updateNClob(String columnLabel, NClob nClob) Updates the designated column with ajava.sql.NClobvalue.voidResultSet.updateNString(int columnIndex, String nString) Updates the designated column with aStringvalue.voidResultSet.updateNString(String columnLabel, String nString) Updates the designated column with aStringvalue.voidResultSet.updateNull(String columnLabel) Updates the designated column with anullvalue.voidResultSet.updateObject(String columnLabel, Object x) Updates the designated column with anObjectvalue.voidResultSet.updateObject(String columnLabel, Object x, int scaleOrLength) Updates the designated column with anObjectvalue.default voidResultSet.updateObject(String columnLabel, Object x, SQLType targetSqlType) Updates the designated column with anObjectvalue.default voidResultSet.updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) Updates the designated column with anObjectvalue.voidUpdates the designated column with ajava.sql.Refvalue.voidResultSet.updateRowId(String columnLabel, RowId x) Updates the designated column with aRowIdvalue.voidResultSet.updateShort(String columnLabel, short x) Updates the designated column with ashortvalue.voidResultSet.updateSQLXML(String columnLabel, SQLXML xmlObject) Updates the designated column with ajava.sql.SQLXMLvalue.voidResultSet.updateString(int columnIndex, String x) Updates the designated column with aStringvalue.voidResultSet.updateString(String columnLabel, String x) Updates the designated column with aStringvalue.voidResultSet.updateTime(String columnLabel, Time x) Updates the designated column with ajava.sql.Timevalue.voidResultSet.updateTimestamp(String columnLabel, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.Specifies the username to be used when creating a connectionstatic ClientInfoStatusReturns the enum constant of this class with the specified name.static DateConverts a string in JDBC date escape format to aDatevalue.static JDBCTypeReturns the enum constant of this class with the specified name.static PseudoColumnUsageReturns the enum constant of this class with the specified name.static RowIdLifetimeReturns the enum constant of this class with the specified name.static TimeConverts a string in JDBC time escape format to aTimevalue.static TimestampConverts aStringobject in JDBC timestamp escape format to aTimestampvalue.voidSQLOutput.writeNString(String x) Writes the next attribute to the stream as aStringin the Java programming language.voidSQLOutput.writeString(String x) Writes the next attribute to the stream as aStringin the Java programming language.Modifier and TypeMethodDescriptionRetrieves a slice of the SQLARRAYvalue designated by thisArrayobject, beginning with the specifiedindexand containing up tocountsuccessive elements of the SQL array.Retrieves the contents of the SQLARRAYvalue designated by thisArrayobject.Object[]Struct.getAttributes(Map<String, Class<?>> map) Produces the ordered values of the attributes of the SQL structured type that thisStructobject represents.Returns an object representing the value of OUT parameterparameterIndexand usesmapfor the custom mapping of the parameter value.Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custom mapping of the parameter value.Retrieves the referenced object and maps it to a Java type using the given type map.Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.Array.getResultSet(long index, int count, Map<String, Class<?>> map) Retrieves a result set holding the elements of the subarray that starts at indexindexand contains up tocountsuccessive elements.Array.getResultSet(Map<String, Class<?>> map) Retrieves a result set that contains the elements of the SQLARRAYvalue designated by thisArrayobject.voidConnection.setTypeMap(Map<String, Class<?>> map) Installs the givenTypeMapobject as the type map for thisConnectionobject.ModifierConstructorDescriptionBatchUpdateException(String reason, int[] updateCounts) Constructs aBatchUpdateExceptionobject initialized with a givenreasonandupdateCounts.BatchUpdateException(String reason, int[] updateCounts, Throwable cause) Constructs aBatchUpdateExceptionobject initialized with a givenreason,causeandupdateCounts.BatchUpdateException(String reason, String SQLState, int[] updateCounts) Constructs aBatchUpdateExceptionobject initialized with a givenreason,SQLStateandupdateCounts.BatchUpdateException(String reason, String SQLState, int[] updateCounts, Throwable cause) Constructs aBatchUpdateExceptionobject initialized with a givenreason,SQLState,cause, andupdateCounts.BatchUpdateException(String reason, String SQLState, int vendorCode, int[] updateCounts) Constructs aBatchUpdateExceptionobject initialized with a givenreason,SQLState,vendorCodeandupdateCounts.BatchUpdateException(String reason, String SQLState, int vendorCode, int[] updateCounts, Throwable cause) Constructs aBatchUpdateExceptionobject initialized with a givenreason,SQLState,vendorCodecauseandupdateCounts.BatchUpdateException(String reason, String SQLState, int vendorCode, long[] updateCounts, Throwable cause) Constructs aBatchUpdateExceptionobject initialized with a givenreason,SQLState,vendorCodecauseandupdateCounts.DriverPropertyInfo(String name, String value) Constructs aDriverPropertyInfoobject with a given name and value.SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,vendorCodeandfailedProperties.SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,cause,vendorCodeandfailedProperties.SQLClientInfoException(String reason, String SQLState, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLStateandfailedProperties.SQLClientInfoException(String reason, String SQLState, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,causeandfailedProperties.SQLClientInfoException(String reason, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreasonandfailedProperties.SQLClientInfoException(String reason, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,causeandfailedProperties.SQLDataException(String reason) Constructs aSQLDataExceptionobject with a givenreason.SQLDataException(String reason, String SQLState) Constructs aSQLDataExceptionobject with a givenreasonandSQLState.SQLDataException(String reason, String SQLState, int vendorCode) Constructs aSQLDataExceptionobject with a givenreason,SQLStateandvendorCode.SQLDataException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLDataExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLDataException(String reason, String SQLState, Throwable cause) Constructs aSQLDataExceptionobject with a givenreason,SQLStateandcause.SQLDataException(String reason, Throwable cause) Constructs aSQLDataExceptionobject with a givenreasonandcause.SQLException(String reason) Constructs aSQLExceptionobject with a givenreason.SQLException(String reason, String SQLState) Constructs aSQLExceptionobject with a givenreasonandSQLState.SQLException(String reason, String SQLState, int vendorCode) Constructs aSQLExceptionobject with a givenreason,SQLStateandvendorCode.SQLException(String reason, String sqlState, int vendorCode, Throwable cause) Constructs aSQLExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLException(String reason, String sqlState, Throwable cause) Constructs aSQLExceptionobject with a givenreason,SQLStateandcause.SQLException(String reason, Throwable cause) Constructs aSQLExceptionobject with a givenreasonandcause.Constructs aSQLFeatureNotSupportedExceptionobject with a givenreason.SQLFeatureNotSupportedException(String reason, String SQLState) Constructs aSQLFeatureNotSupportedExceptionobject with a givenreasonandSQLState.SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode) Constructs aSQLFeatureNotSupportedExceptionobject with a givenreason,SQLStateandvendorCode.SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLFeatureNotSupportedExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLFeatureNotSupportedException(String reason, String SQLState, Throwable cause) Constructs aSQLFeatureNotSupportedExceptionobject with a givenreason,SQLStateandcause.SQLFeatureNotSupportedException(String reason, Throwable cause) Constructs aSQLFeatureNotSupportedExceptionobject with a givenreasonandcause.Constructs aSQLIntegrityConstraintViolationExceptionwith a givenreason.SQLIntegrityConstraintViolationException(String reason, String SQLState) Constructs aSQLIntegrityConstraintViolationExceptionobject with a givenreasonandSQLState.SQLIntegrityConstraintViolationException(String reason, String SQLState, int vendorCode) Constructs aSQLIntegrityConstraintViolationExceptionobject with a givenreason,SQLStateandvendorCode.SQLIntegrityConstraintViolationException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLIntegrityConstraintViolationExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLIntegrityConstraintViolationException(String reason, String SQLState, Throwable cause) Constructs aSQLIntegrityConstraintViolationExceptionobject with a givenreason,SQLStateandcause.SQLIntegrityConstraintViolationException(String reason, Throwable cause) Constructs aSQLIntegrityConstraintViolationExceptionobject with a givenreasonandcause.Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreason.SQLInvalidAuthorizationSpecException(String reason, String SQLState) Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreasonandSQLState.SQLInvalidAuthorizationSpecException(String reason, String SQLState, int vendorCode) Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreason,SQLStateandvendorCode.SQLInvalidAuthorizationSpecException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLInvalidAuthorizationSpecException(String reason, String SQLState, Throwable cause) Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreason,SQLStateandcause.SQLInvalidAuthorizationSpecException(String reason, Throwable cause) Constructs aSQLInvalidAuthorizationSpecExceptionobject with a givenreasonandcause.Constructs aSQLNonTransientConnectionExceptionobject with a givenreason.SQLNonTransientConnectionException(String reason, String SQLState) Constructs aSQLNonTransientConnectionExceptionobject with a givenreasonandSQLState.SQLNonTransientConnectionException(String reason, String SQLState, int vendorCode) Constructs aSQLNonTransientConnectionExceptionobject with a givenreason,SQLStateandvendorCode.SQLNonTransientConnectionException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLNonTransientConnectionExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLNonTransientConnectionException(String reason, String SQLState, Throwable cause) Constructs aSQLNonTransientConnectionExceptionobject with a givenreason,SQLStateandcause.SQLNonTransientConnectionException(String reason, Throwable cause) Constructs aSQLNonTransientConnectionExceptionobject with a givenreasonandcause.SQLNonTransientException(String reason) Constructs aSQLNonTransientExceptionobject with a givenreason.SQLNonTransientException(String reason, String SQLState) Constructs aSQLNonTransientExceptionobject with a givenreasonandSQLState.SQLNonTransientException(String reason, String SQLState, int vendorCode) Constructs aSQLNonTransientExceptionobject with a givenreason,SQLStateandvendorCode.SQLNonTransientException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLNonTransientExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLNonTransientException(String reason, String SQLState, Throwable cause) Constructs aSQLNonTransientExceptionobject with a givenreason,SQLStateandcause.SQLNonTransientException(String reason, Throwable cause) Constructs aSQLNonTransientExceptionobject with a givenreasonandcause.SQLPermission(String name) Creates a newSQLPermissionobject with the specified name.SQLPermission(String name, String actions) Creates a newSQLPermissionobject with the specified name.SQLRecoverableException(String reason) Constructs aSQLRecoverableExceptionobject with a givenreason.SQLRecoverableException(String reason, String SQLState) Constructs aSQLRecoverableExceptionobject with a givenreasonandSQLState.SQLRecoverableException(String reason, String SQLState, int vendorCode) Constructs aSQLRecoverableExceptionobject with a givenreason,SQLStateandvendorCode.SQLRecoverableException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLRecoverableExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLRecoverableException(String reason, String SQLState, Throwable cause) Constructs aSQLRecoverableExceptionobject with a givenreason,SQLStateandcause.SQLRecoverableException(String reason, Throwable cause) Constructs aSQLRecoverableExceptionobject with a givenreasonandcause.SQLSyntaxErrorException(String reason) Constructs aSQLSyntaxErrorExceptionobject with a givenreason.SQLSyntaxErrorException(String reason, String SQLState) Constructs aSQLSyntaxErrorExceptionobject with a givenreasonandSQLState.SQLSyntaxErrorException(String reason, String SQLState, int vendorCode) Constructs aSQLSyntaxErrorExceptionobject with a givenreason,SQLStateandvendorCode.SQLSyntaxErrorException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLSyntaxErrorExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLSyntaxErrorException(String reason, String SQLState, Throwable cause) Constructs aSQLSyntaxErrorExceptionobject with a givenreason,SQLStateandcause.SQLSyntaxErrorException(String reason, Throwable cause) Constructs aSQLSyntaxErrorExceptionobject with a givenreasonandcause.SQLTimeoutException(String reason) Constructs aSQLTimeoutExceptionobject with a givenreason.SQLTimeoutException(String reason, String SQLState) Constructs aSQLTimeoutExceptionobject with a givenreasonandSQLState.SQLTimeoutException(String reason, String SQLState, int vendorCode) Constructs aSQLTimeoutExceptionobject with a givenreason,SQLStateandvendorCode.SQLTimeoutException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLTimeoutExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLTimeoutException(String reason, String SQLState, Throwable cause) Constructs aSQLTimeoutExceptionobject with a givenreason,SQLStateandcause.SQLTimeoutException(String reason, Throwable cause) Constructs aSQLTimeoutExceptionobject with a givenreasonandcause.Constructs aSQLTransactionRollbackExceptionobject with a givenreason.SQLTransactionRollbackException(String reason, String SQLState) Constructs aSQLTransactionRollbackExceptionobject with a givenreasonandSQLState.SQLTransactionRollbackException(String reason, String SQLState, int vendorCode) Constructs aSQLTransactionRollbackExceptionobject with a givenreason,SQLStateandvendorCode.SQLTransactionRollbackException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLTransactionRollbackExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLTransactionRollbackException(String reason, String SQLState, Throwable cause) Constructs aSQLTransactionRollbackExceptionobject with a givenreason,SQLStateandcause.SQLTransactionRollbackException(String reason, Throwable cause) Constructs aSQLTransactionRollbackExceptionobject with a givenreasonandcause.Constructs aSQLTransientConnectionExceptionobject with a givenreason.SQLTransientConnectionException(String reason, String SQLState) Constructs aSQLTransientConnectionExceptionobject with a givenreasonandSQLState.SQLTransientConnectionException(String reason, String SQLState, int vendorCode) Constructs aSQLTransientConnectionExceptionobject with a givenreason,SQLStateandvendorCode.SQLTransientConnectionException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLTransientConnectionExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLTransientConnectionException(String reason, String SQLState, Throwable cause) Constructs aSQLTransientConnectionExceptionobject with a givenreason,SQLStateandcause.SQLTransientConnectionException(String reason, Throwable cause) Constructs aSQLTransientConnectionExceptionobject with a givenreasonandcause.SQLTransientException(String reason) Constructs aSQLTransientExceptionobject with a givenreason.SQLTransientException(String reason, String SQLState) Constructs aSQLTransientExceptionobject with a givenreasonandSQLState.SQLTransientException(String reason, String SQLState, int vendorCode) Constructs aSQLTransientExceptionobject with a givenreason,SQLStateandvendorCode.SQLTransientException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLTransientExceptionobject with a givenreason,SQLState,vendorCodeandcause.SQLTransientException(String reason, String SQLState, Throwable cause) Constructs aSQLTransientExceptionobject with a givenreason,SQLStateandcause.SQLTransientException(String reason, Throwable cause) Constructs aSQLTransientExceptionobject with a givenreasonandcause.SQLWarning(String reason) Constructs aSQLWarningobject with a givenreason.SQLWarning(String reason, String SQLState) Constructs aSQLWarningobject with a givenreasonandSQLState.SQLWarning(String reason, String SQLState, int vendorCode) Constructs aSQLWarningobject with a givenreason,SQLStateandvendorCode.SQLWarning(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aSQLWarningobject with a givenreason,SQLState,vendorCodeandcause.SQLWarning(String reason, String SQLState, Throwable cause) Constructs aSQLWarningobject with a givenreason,SQLStateandcause.SQLWarning(String reason, Throwable cause) Constructs aSQLWarningobject with a givenreasonandcause.ModifierConstructorDescriptionSQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,vendorCodeandfailedProperties.SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,cause,vendorCodeandfailedProperties.SQLClientInfoException(String reason, String SQLState, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLStateandfailedProperties.SQLClientInfoException(String reason, String SQLState, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,SQLState,causeandfailedProperties.SQLClientInfoException(String reason, Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenreasonandfailedProperties.SQLClientInfoException(String reason, Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givenreason,causeandfailedProperties.SQLClientInfoException(Map<String, ClientInfoStatus> failedProperties) Constructs aSQLClientInfoExceptionobject initialized with a givenfailedProperties.SQLClientInfoException(Map<String, ClientInfoStatus> failedProperties, Throwable cause) Constructs aSQLClientInfoExceptionobject initialized with a givencauseandfailedProperties. -
Uses of String in java.text
Modifier and TypeMethodDescriptionfinal StringFormats aDateinto a date-time string.final StringFormats an object to produce a string.static StringCreates a MessageFormat with the given pattern and uses it to format the given arguments.final StringNumberFormat.format(double number) Specialization of format.final StringNumberFormat.format(long number) Specialization of format.String[]DateFormatSymbols.getAmPmStrings()Gets ampm strings.DecimalFormatSymbols.getCurrencySymbol()Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.String[]DateFormatSymbols.getEras()Gets era strings.DecimalFormatSymbols.getExponentSeparator()Returns the string used to separate the mantissa from the exponent.DecimalFormatSymbols.getInfinity()Gets the string used to represent infinity.DecimalFormatSymbols.getInternationalCurrencySymbol()Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.DateFormatSymbols.getLocalPatternChars()Gets localized date-time pattern characters.String[]DateFormatSymbols.getMonths()Gets month strings.protected StringAttributedCharacterIterator.Attribute.getName()Returns the name of the attribute.DecimalFormatSymbols.getNaN()Gets the string used to represent "not a number".DecimalFormat.getNegativePrefix()Get the negative prefix.DecimalFormat.getNegativeSuffix()Get the negative suffix.DecimalFormat.getPositivePrefix()Get the positive prefix.DecimalFormat.getPositiveSuffix()Get the positive suffix.RuleBasedCollator.getRules()Gets the table-based rules for the collation object.String[]DateFormatSymbols.getShortMonths()Gets short month strings.String[]DateFormatSymbols.getShortWeekdays()Gets short weekday strings.CollationKey.getSourceString()Returns the String that this CollationKey represents.String[]DateFormatSymbols.getWeekdays()Gets weekday strings.String[][]DateFormatSymbols.getZoneStrings()Gets time zone strings.static StringNormalizer.normalize(CharSequence src, Normalizer.Form form) Normalize a sequence of char values.DecimalFormat.toLocalizedPattern()Synthesizes a localized pattern string that represents the current state of this Format object.SimpleDateFormat.toLocalizedPattern()Returns a localized pattern string describing this date format.ChoiceFormat.toPattern()Gets the pattern.DecimalFormat.toPattern()Synthesizes a pattern string that represents the current state of this Format object.MessageFormat.toPattern()Returns a pattern representing the current state of the message format.SimpleDateFormat.toPattern()Returns a pattern string describing this date format.Annotation.toString()Returns the String representation of this Annotation.AttributedCharacterIterator.Attribute.toString()Returns a string representation of the object.Bidi.toString()Display the bidi internal state, used in debugging.FieldPosition.toString()Return a string representation of this FieldPosition.ParsePosition.toString()Return a string representation of this ParsePosition.Modifier and TypeMethodDescriptionvoidDecimalFormat.applyLocalizedPattern(String pattern) Apply the given pattern to this Format object.voidSimpleDateFormat.applyLocalizedPattern(String pattern) Applies the given localized pattern string to this date format.voidChoiceFormat.applyPattern(String newPattern) Sets the pattern.voidDecimalFormat.applyPattern(String pattern) Apply the given pattern to this Format object.voidMessageFormat.applyPattern(String pattern) Sets the pattern used by this message format.voidSimpleDateFormat.applyPattern(String pattern) Applies the given pattern string to this date format.abstract intCompares the source string to the target string according to the collation rules for this Collator.intCompares the character data stored in two different strings based on the collation rules.booleanConvenience method for comparing the equality of two strings based on this Collator's collation rules.static StringCreates a MessageFormat with the given pattern and uses it to format the given arguments.RuleBasedCollator.getCollationElementIterator(String source) Returns a CollationElementIterator for the given String.abstract CollationKeyCollator.getCollationKey(String source) Transforms the String into a series of bits that can be compared bitwise to other CollationKeys.RuleBasedCollator.getCollationKey(String source) Transforms the string into a series of characters that can be compared with CollationKey.compareTo.ChoiceFormat.parse(String text, ParsePosition status) Parses a Number from the input text.CompactNumberFormat.parse(String text, ParsePosition pos) Parses a compact number from a string to produce aNumber.DateF
GraphicsEnvironment.getAvailableFontFamilyNames()