Uses of Class
java.lang.String
| Package | Description |
|---|---|
| com.sun.jarsigner |
This package comprises the interfaces and classes used to define the
signing mechanism used by the
jarsigner tool. |
| com.sun.java.accessibility.util |
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
|
| com.sun.jdi |
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.
|
| com.sun.jdi.connect |
This package defines connections between the virtual machine
using the JDI and the target virtual machine.
|
| com.sun.jdi.connect.spi |
This package comprises the interfaces and classes used to
develop new
TransportService
implementations. |
| com.sun.jdi.event |
This package defines JDI events and event processing.
|
| com.sun.jdi.request |
This package is used to request that a JDI
event be sent under specified conditions.
|
| com.sun.management |
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. |
| com.sun.net.httpserver |
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
|
| com.sun.nio.sctp |
A Java API for Stream Control Transport Protocol.
|
| com.sun.security.auth |
Provides implementations of
Principal. |
| com.sun.security.auth.login |
Provides an implementation of
Configuration. |
| com.sun.security.auth.module |
Provides implementations of
LoginModule. |
| com.sun.security.jgss |
This package defines classes and interfaces for the JDK extensions
to the GSS-API.
|
| com.sun.source.doctree |
Provides interfaces to represent documentation comments as abstract syntax
trees (AST).
|
| com.sun.source.tree |
Provides interfaces to represent source code as abstract syntax
trees (AST).
|
| com.sun.source.util |
Provides utilities for operations on abstract syntax trees (AST).
|
| com.sun.tools.attach |
Provides the API to attach to a Java™ virtual machine.
|
| com.sun.tools.attach.spi |
Only developers who are defining new attach providers should need to make
direct use of this package.
|
| com.sun.tools.javac |
This package provides a legacy entry point for the javac tool.
|
| com.sun.tools.jconsole |
This package contains the JConsole API.
|
| java.applet |
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
|
| java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
| java.awt.color |
Provides classes for color spaces.
|
| java.awt.datatransfer |
Provides interfaces and classes for transferring data between and within
applications.
|
| java.awt.desktop |
Provides interfaces and classes for interaction with various desktop
capabilities.
|
| java.awt.dnd |
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.
|
| java.awt.event |
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
|
| java.awt.font |
Provides classes and interface relating to fonts.
|
| java.awt.geom |
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
|
| java.awt.im.spi |
Provides interfaces that enable the development of input methods that can be
used with any Java runtime environment.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| java.awt.image.renderable |
Provides classes and interfaces for producing rendering-independent images.
|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| java.beans |
Contains classes related to developing beans -- components based on
the JavaBeans™ architecture.
|
| java.beans.beancontext |
Provides classes and interfaces relating to bean context.
|
| java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
| java.lang.annotation |
Provides library support for the Java programming language
annotation facility.
|
| java.lang.constant |
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. |
| java.lang.instrument |
Provides services that allow Java programming language agents to instrument
programs running on the JVM.
|
| java.lang.invoke |
The
java.lang.invoke package provides low-level primitives for interacting
with the Java Virtual Machine. |
| java.lang.management |
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
|
| java.lang.module |
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
|
| java.lang.reflect |
Provides classes and interfaces for obtaining reflective information about
classes and objects.
|
| java.lang.runtime |
The
java.lang.runtime package provides low-level runtime support
for the Java language. |
| java.math |
Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger) and arbitrary-precision decimal
arithmetic (BigDecimal). |
| java.net |
Provides the classes for implementing networking applications.
|
| java.net.http |
HTTP Client and WebSocket APIs
|
| java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
| java.nio.channels |
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.
|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
|
| java.nio.charset.spi |
Service-provider classes for the
java.nio.charset package. |
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| java.nio.file.spi |
Service-provider classes for the
java.nio.file package. |
| java.rmi |
Provides the RMI package.
|
| java.rmi.activation |
Provides support for RMI Object Activation.
|
| java.rmi.dgc |
Provides classes and interface for RMI distributed
garbage-collection (DGC).
|
| java.rmi.registry |
Provides a class and two interfaces for the RMI registry.
|
| java.rmi.server |
Provides classes and interfaces for supporting the server
side of RMI.
|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
| java.security.spec |
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
|
| java.sql |
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java™ programming language.
|
| java.text |
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
| java.time.zone |
Support for time-zones and their rules.
|
| java.util |
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.
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.concurrent.atomic |
A small toolkit of classes that support lock-free thread-safe
programming on single variables.
|
| java.util.concurrent.locks |
Interfaces and classes providing a framework for locking and waiting
for conditions that is distinct from built-in synchronization and
monitors.
|
| java.util.jar |
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.
|
| java.util.logging |
Provides the classes and interfaces of
the Java™ 2 platform's core logging facilities.
|
| java.util.prefs |
This package allows applications to store and retrieve user and system
preference and configuration data.
|
| java.util.regex |
Classes for matching character sequences against patterns specified
by regular expressions.
|
| java.util.spi |
Service provider classes for the classes in the java.util package.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
|
| javax.accessibility |
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
|
| javax.annotation.processing |
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic
operations.
|
| javax.crypto.spec |
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
|
| javax.imageio |
The main package of the Java Image I/O API.
|
| javax.imageio.event |
A package of the Java Image I/O API dealing with synchronous notification of
events during the reading and writing of images.
|
| javax.imageio.metadata |
A package of the Java Image I/O API dealing with reading and writing
metadata.
|
| javax.imageio.plugins.jpeg |
Classes supporting the built-in JPEG plug-in.
|
| javax.imageio.plugins.tiff |
Public classes used by the built-in TIFF plug-ins.
|
| javax.imageio.spi |
A package of the Java Image I/O API containing the plug-in interfaces for
readers, writers, transcoders, and streams, and a runtime registry.
|
| javax.imageio.stream |
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
|
| javax.lang.model |
Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java
programming language.
|
| javax.lang.model.element |
Interfaces used to model elements of the Java programming language.
|
| javax.lang.model.type |
Interfaces used to model Java programming language types.
|
| javax.lang.model.util |
Utilities to assist in the processing of
program elements and
types.
|
| javax.management |
Provides the core classes for the Java Management Extensions.
|
| javax.management.loading |
Provides the classes which implement advanced dynamic
loading.
|
| javax.management.modelmbean |
Provides the definition of the ModelMBean classes.
|
| javax.management.monitor |
Provides the definition of the monitor classes.
|
| javax.management.openmbean |
Provides the open data types and Open MBean descriptor classes.
|
| javax.management.relation |
Provides the definition of the Relation Service.
|
| javax.management.remote |
Interfaces for remote access to
JMX MBean servers.
|
| javax.management.remote.rmi |
The RMI connector is a connector for the JMX Remote API that
uses RMI to transmit client requests to a remote MBean server.
|
| javax.management.timer |
Provides the definition of the Timer MBean.
|
| javax.naming |
Provides the classes and interfaces for accessing naming services.
|
| javax.naming.directory |
Extends the
javax.naming package to provide functionality
for accessing directory services. |
| javax.naming.event |
Provides support for event notification when accessing naming and
directory services.
|
| javax.naming.ldap |
Provides support for LDAPv3 extended operations and controls.
|
| javax.naming.ldap.spi | |
| javax.naming.spi |
Provides the means for dynamically plugging in support for accessing
naming and directory services through the
javax.naming
and related packages. |
| javax.net |
Provides classes for networking applications.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.print |
Provides the principal classes and interfaces for the Java™ Print
Service API.
|
| javax.print.attribute |
Provides classes and interfaces that describe the types of Java™ Print
Service attributes and how they can be collected into attribute sets.
|
| javax.print.attribute.standard |
Package
javax.print.attribute.standard contains classes for specific
printing attributes. |
| javax.print.event |
Package
javax.print.event contains event classes and listener
interfaces. |
| javax.rmi.ssl |
Provides implementations of
RMIClientSocketFactory
and RMIServerSocketFactory over
the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols. |
| javax.script |
The scripting API consists of interfaces and classes that define
Java™ Scripting Engines and provides
a framework for their use in Java applications.
|
| javax.security.auth |
This package provides a framework for authentication and
authorization.
|
| javax.security.auth.callback |
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).
|
| javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network
authentication protocol.
|
| javax.security.auth.login |
This package provides a pluggable authentication framework.
|
| javax.security.auth.spi |
This package provides the interface to be used for
implementing pluggable authentication modules.
|
| javax.security.auth.x500 |
This package contains the classes that should be used to store
X500 Principal and X500 Private Credentials in a
Subject.
|
| javax.security.cert |
Provides classes for public key certificates.
|
| javax.security.sasl |
Contains class and interfaces for supporting SASL.
|
| javax.smartcardio |
Java™ Smart Card I/O API.
|
| javax.sound.midi |
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
|
| javax.sound.sampled |
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
|
| javax.sql |
Provides the API for server side data source access and processing from
the Java™ programming language.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet
implementations. |
| javax.sql.rowset.serial |
Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
|
| javax.sql.rowset.spi |
The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.border |
Provides classes and interface for drawing specialized borders around a Swing
component.
|
| javax.swing.colorchooser |
Contains classes and interfaces used by the
JColorChooser component. |
| javax.swing.event |
Provides for events fired by Swing components.
|
| javax.swing.filechooser |
Contains classes and interfaces used by the
JFileChooser component. |
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
|
| javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
| javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable. |
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors. |
| javax.swing.text.html.parser |
Provides the default HTML parser, along with support classes.
|
| javax.swing.text.rtf |
Provides a class (
RTFEditorKit) for creating Rich-Text-Format text
editors. |
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree. |
| javax.swing.undo |
Allows developers to provide support for undo/redo in applications such as
text editors.
|
| javax.tools |
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
|
| javax.transaction.xa |
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.
|
| javax.xml |
Defines constants for XML processing.
|
| javax.xml.catalog |
Provides the classes for implementing
XML Catalogs OASIS Standard V1.1, 7 October 2005.
|
| javax.xml.crypto |
Common classes for XML cryptography.
|
| javax.xml.crypto.dom |
DOM-specific classes for the
javax.xml.crypto package. |
| javax.xml.crypto.dsig |
Classes for generating and validating XML digital
signatures.
|
| javax.xml.crypto.dsig.keyinfo |
Classes for parsing and processing
KeyInfo elements and structures. |
| javax.xml.crypto.dsig.spec |
Parameter classes for XML digital signatures.
|
| javax.xml.datatype |
Defines XML/Java Type Mappings.
|
| javax.xml.namespace |
Defines XML Namespace processing.
|
| javax.xml.parsers |
Provides the classes for processing XML documents with a SAX (Simple API for XML)
parser or a DOM (Document Object Model) Document builder.
|
| javax.xml.stream |
Defines interfaces and classes for the Streaming API for XML (StAX).
|
| javax.xml.stream.events |
Defines event interfaces for the Streaming API for XML (StAX).
|
| javax.xml.transform |
Defines the generic APIs for processing transformation instructions,
and performing a transformation from source to result.
|
| javax.xml.transform.dom |
Provides DOM specific transformation classes.
|
| javax.xml.transform.sax |
Provides SAX specific transformation classes.
|
| javax.xml.transform.stax |
Provides StAX specific transformation classes.
|
| javax.xml.transform.stream |
Provides stream and URI specific transformation classes.
|
| javax.xml.validation |
Provides an API for validation of XML documents.
|
| javax.xml.xpath |
Provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment.
|
| jdk.dynalink |
Contains interfaces and classes that are used to link an
invokedynamic call site. |
| jdk.dynalink.beans |
Contains the linker for ordinary Java objects.
|
| jdk.dynalink.linker |
Contains interfaces and classes needed by language runtimes to implement
their own language-specific object models and type conversions.
|
| jdk.dynalink.linker.support |
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.
|
| jdk.incubator.foreign |
Classes to support low-level, safe and efficient memory access.
|
| jdk.javadoc.doclet |
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.
|
| jdk.jfr |
This package provides classes to create events and control Flight Recorder.
|
| jdk.jfr.consumer |
This package contains classes for consuming Flight Recorder data.
|
| jdk.jshell |
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
|
| jdk.jshell.execution |
Provides implementation support for building JShell execution engines.
|
| jdk.jshell.spi |
Defines the Service Provider Interface for pluggable JShell execution engines.
|
| jdk.jshell.tool |
Provides a mechanism to launch an instance of a Java™ shell tool.
|
| jdk.management.jfr |
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
|
| jdk.nashorn.api.scripting |
This package provides the
javax.script integration, which is the preferred way to use Nashorn. |
| jdk.nashorn.api.tree |
Nashorn parser API provides interfaces to represent ECMAScript source code
as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.
|
| jdk.net |
Platform specific socket options for the
java.net and java.nio.channels
socket classes. |
| jdk.security.jarsigner |
This package defines APIs for signing jar files.
|
| netscape.javascript |
Provides Java code the ability to access the JavaScript engine and the
HTML DOM in the web browser.
|
| org.ietf.jgss |
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.
|
| org.w3c.dom |
Provides the interfaces for the Document Object Model (DOM).
|
| org.w3c.dom.bootstrap |
Provides a factory for obtaining instances of
DOMImplementation. |
| org.w3c.dom.css |
Provides interfaces for DOM Level 2 Style Specification.
|
| org.w3c.dom.events |
Provides interfaces for DOM Level 2 Events.
|
| org.w3c.dom.html |
Provides interfaces for DOM Level 2 HTML Specification.
|
| org.w3c.dom.ls |
Provides interfaces for DOM Level 3 Load and Save.
|
| org.w3c.dom.ranges |
Provides interfaces for DOM Level 2 Range.
|
| org.w3c.dom.stylesheets |
Provides interfaces for DOM Level 2 Style Specification.
|
| org.w3c.dom.xpath |
Provides interfaces for DOM Level 3 XPath Specification.
|
| org.xml.sax |
Provides the interfaces for the Simple API for XML (SAX).
|
| org.xml.sax.ext |
Provides interfaces to SAX2 facilities that
conformant SAX drivers won't necessarily support.
|
| org.xml.sax.helpers |
Provides helper classes, including
support for bootstrapping SAX-based applications.
|
-
Uses of String in com.sun.jarsigner
Methods in com.sun.jarsigner that return String Modifier and Type Method Description String[]ContentSignerParameters. getCommandLine()Deprecated.Retrieves the command-line arguments passed to the jarsigner tool.StringContentSignerParameters. getSignatureAlgorithm()Deprecated.Retrieves the name of the signature algorithm.default StringContentSignerParameters. getTSADigestAlg()Deprecated.Retreives the message digest algorithm that is used to generate the message imprint to be sent to the TSA server.default StringContentSignerParameters. getTSAPolicyID()Deprecated.Retrieves the TSAPolicyID for a Timestamping Authority (TSA). -
Uses of String in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return String Modifier and Type Method Description StringTranslator. getAccessibleDescription()Get the accessible description of this object.StringTranslator. getAccessibleName()Get the accessible name of this object.StringAccessibilityListenerList. toString()Return a string representation of theAccessibilityListenerList.Methods in com.sun.java.accessibility.util with parameters of type String Modifier and Type Method Description voidTranslator. 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 String Modifier and Type Method Description StringPathSearchingVirtualMachine. baseDirectory()Get the base directory used for path searching.StringClassNotLoadedException. className()StringArrayType. componentSignature()Gets the JNI signature of the components of this array class.StringArrayType. componentTypeName()Returns a text representation of the component type of this array.StringReferenceType. defaultStratum()Returns the default stratum for this reference type.StringVirtualMachine. description()Returns text information on the target VM and the debugger support that mirrors it.StringLocalVariable. genericSignature()Gets the generic signature for this variable if there is one.StringReferenceType. genericSignature()Gets the generic signature for this type if there is one.StringTypeComponent. genericSignature()Gets the generic signature for this TypeComponent if there is one.StringVirtualMachine. getDefaultStratum()Return this VM's default stratum.StringLocalVariable. name()Gets the name of the local variable.StringModuleReference. name()Returns the module name.StringReferenceType. name()Gets the fully qualified name of this type.StringThreadGroupReference. name()Returns the name of this thread group.StringThreadReference. name()Returns the name of this thread.StringType. name()StringTypeComponent. name()Gets the name of this type component.StringVirtualMachine. name()Returns the name of the target VM as reported by the propertyjava.vm.name.StringMethod. returnTypeName()Returns a text representation of the return type, as specified in the declaration of this method.StringLocalVariable. signature()Gets the JNI signature of the local variable.StringType. signature()Returns the JNI-style signature for this type.StringTypeComponent. signature()Gets the JNI-style signature for this type component.StringReferenceType. sourceDebugExtension()Get the source debug extension of this type.StringLocation. sourceName()Gets an identifing name for the source corresponding to this location.StringLocation. sourceName(String stratum)Gets an identifing name for the source corresponding to this location.StringReferenceType. sourceName()Gets an identifying name for the source corresponding to the declaration of this type.StringLocation. sourcePath()Gets the path to the source corresponding to this location.StringLocation. sourcePath(String stratum)Gets the path to the source corresponding to this location.StringMirror. toString()Returns a String describing this mirrorStringField. typeName()Returns a text representation of the type of this field.StringLocalVariable. typeName()Returns a text representation of the type of this variable.StringStringReference. value()Returns the StringReference as a String.StringVirtualMachine. 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 String Modifier and Type Method Description List<String>Method. argumentTypeNames()Returns a list containing a text representation of the type of each formal parameter of this method.List<String>ReferenceType. availableStrata()Return the available strata for this reference type.List<String>PathSearchingVirtualMachine. bootClassPath()Get the boot class path for this virtual machine.List<String>PathSearchingVirtualMachine. classPath()Get the class path for this virtual machine.List<String>ReferenceType. sourceNames(String stratum)Gets the identifying names for all the source corresponding to the declaration of this type.List<String>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 String Modifier and Type Method Description List<Location>Method. allLineLocations(String stratum, String sourceName)Returns a list containing aLocationobject for each executable source line in this method.List<Location>ReferenceType. allLineLocations(String stratum, String sourceName)Returns a list containing aLocationobject for each executable source line in this reference type.List<ReferenceType>VirtualMachine. classesByName(String className)Returns the loaded reference types that match a given name.MethodClassType. concreteMethodByName(String name, String signature)Returns a the single non-abstractMethodvisible from this class that has the given name and signature.FieldReferenceType. fieldByName(String fieldName)Finds the visibleFieldwith the given non-ambiguous name.intLocation. lineNumber(String stratum)The line number of this Location.List<Location>Method. locationsOfLine(String stratum, String sourceName, int lineNumber)Returns a List containing allLocationobjects that map to the given line number and source name.List<Location>ReferenceType. locationsOfLine(String stratum, String sourceName, int lineNumber)Returns a List containing allLocationobjects that map to the given line number.List<Method>ReferenceType. methodsByName(String name)Returns a List containing each visibleMethodthat has the given name.List<Method>ReferenceType. methodsByName(String name, String signature)Returns a List containing each visibleMethodthat has the given name and signature.StringReferenceVirtualMachine. mirrorOf(String value)Creates a string in this virtual machine.voidVirtualMachine. setDefaultStratum(String stratum)Set this VM's default stratum (seeLocationfor a discussion of strata).StringLocation. sourceName(String stratum)Gets an identifing name for the source corresponding to this location.List<String>ReferenceType. sourceNames(String stratum)Gets the identifying names for all the source corresponding to the declaration of this type.StringLocation. sourcePath(String stratum)Gets the path to the source corresponding to this location.List<String>ReferenceType. sourcePaths(String stratum)Gets the paths to the source corresponding to the declaration of this type.List<LocalVariable>Method. variablesByName(String name)Returns a list containing eachLocalVariableof a given name in this method.LocalVariableStackFrame. visibleVariableByName(String name)Finds aLocalVariablethat matches the given name and is visible at the current frame location. -
Uses of String in com.sun.jdi.connect
Methods in com.sun.jdi.connect that return String Modifier and Type Method Description StringConnector.Argument. description()Returns a human-readable description of this argument and its purpose.StringConnector. description()Returns a human-readable description of this connector and its purpose.StringConnector.Argument. label()Returns a short human-readable label for this argument.StringConnector.Argument. name()Returns a short, unique identifier for the argument.StringConnector. name()Returns a short identifier for the connector.StringTransport. name()Returns a short identifier for the transport.StringListeningConnector. startListening(Map<String,? extends Connector.Argument> arguments)Listens for one or more connections initiated by target VMs.StringConnector.BooleanArgument. stringValueOf(boolean value)Return the string representation of thevalueparameter.StringConnector.IntegerArgument. stringValueOf(int value)Return the string representation of thevalueparameter.StringConnector.Argument. value()Returns the current value of the argument.Methods in com.sun.jdi.connect that return types with arguments of type String Modifier and Type Method Description List<String>IllegalConnectorArgumentsException. argumentNames()Return aListcontaining the names of the invalid or inconsistent arguments.List<String>Connector.SelectedArgument. choices()Return the possible values for the argumentMap<String,Connector.Argument>Connector. defaultArguments()Returns the arguments accepted by this Connector and their default values.Methods in com.sun.jdi.connect with parameters of type String Modifier and Type Method Description booleanConnector.Argument. isValid(String value)Performs basic sanity check of argument.booleanConnector.BooleanArgument. isValid(String value)Performs basic sanity check of argument.booleanConnector.IntegerArgument. isValid(String value)Performs basic sanity check of argument.booleanConnector.SelectedArgument. isValid(String value)Performs basic sanity check of argument.booleanConnector.StringArgument. isValid(String value)Performs basic sanity check of argument.voidConnector.Argument. setValue(String value)Sets the value of the argument.Method parameters in com.sun.jdi.connect with type arguments of type String Modifier and Type Method Description VirtualMachineListeningConnector. accept(Map<String,? extends Connector.Argument> arguments)Waits for a target VM to attach to this connector.VirtualMachineAttachingConnector. attach(Map<String,? extends Connector.Argument> arguments)Attaches to a running application and returns a mirror of its VM.VirtualMachineLaunchingConnector. launch(Map<String,? extends Connector.Argument> arguments)Launches an application and connects to its VM.StringListeningConnector. 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 String Constructor Description IllegalConnectorArgumentsException(String s, String name)Construct 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 String Constructor Description IllegalConnectorArgumentsException(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 String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description abstract ConnectionTransportService. attach(String address, long attachTimeout, long handshakeTimeout)Attaches 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 String Constructor Description ClosedConnectionException(String message)Constructs aClosedConnectionExceptionwith the specified detail message. -
Uses of String in com.sun.jdi.event
Methods in com.sun.jdi.event that return String Modifier and Type Method Description StringClassUnloadEvent. className()Returns the name of the class that has been unloaded.StringClassUnloadEvent. classSignature()Returns the JNI-style 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 String Modifier and Type Method Description voidClassPrepareRequest. 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 String Constructor Description DuplicateRequestException(String s)InvalidRequestStateException(String s) -
Uses of String in com.sun.management
Fields in com.sun.management declared as String Modifier and Type Field Description static StringGarbageCollectionNotificationInfo. GARBAGE_COLLECTION_NOTIFICATIONNotification type denoting that the Java virtual machine has completed a garbage collection cycle.Methods in com.sun.management that return String Modifier and Type Method Description StringGarbageCollectionNotificationInfo. getGcAction()Returns the action performed by the garbage collectorStringGarbageCollectionNotificationInfo. getGcCause()Returns the cause of the garbage collectionStringGarbageCollectionNotificationInfo. getGcName()Returns the name of the garbage collector used to perform the collectionStringVMOption. getName()Returns the name of this VM option.StringVMOption. getValue()Returns the value of this VM option at the time when thisVMOptionwas created.Methods in com.sun.management that return types with arguments of type String Modifier and Type Method Description Map<String,MemoryUsage>GcInfo. getMemoryUsageAfterGc()Returns the memory usage of all memory pools at the end of this GC.Map<String,MemoryUsage>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 String Modifier and Type Method Description voidHotSpotDiagnosticMXBean. dumpHeap(String outputFile, boolean live)Dumps the heap to theoutputFilefile in the same format as the hprof heap dump.VMOptionHotSpotDiagnosticMXBean. 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.static VMOption.OriginVMOption.Origin. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in com.sun.management with parameters of type String Constructor Description GarbageCollectionNotificationInfo(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 String Modifier and Type Field Description protected StringBasicAuthenticator. realmMethods in com.sun.net.httpserver that return String Modifier and Type Method Description abstract StringFilter. description()returns a short description of this FilterString[]HttpsParameters. getCipherSuites()Returns a copy of the array of ciphersuites or null if none have been set.StringHeaders. getFirst(String key)returns the first value from the List of String values for the given key (if at least one exists).StringHttpPrincipal. getName()returns the contents of this principal in the form realm:usernameabstract StringHttpContext. getPath()returns the path this context was created withabstract 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 or null if none have been set.StringBasicAuthenticator. getRealm()returns the realm this BasicAuthenticator was created withStringHttpPrincipal. getRealm()returns the realm this object was created with.abstract StringHttpExchange. getRequestMethod()Get the request methodStringHttpPrincipal. getUsername()returns the username this object was created with.StringHttpPrincipal. toString()returns the same string as getName()Methods in com.sun.net.httpserver that return types with arguments of type String Modifier and Type Method Description abstract Map<String,Object>HttpContext. getAttributes()returns a mutable Map, which can be used to pass configuration and other data to Filter modules and to the context's exchange handler.Methods in com.sun.net.httpserver with parameters of type String Modifier and Type Method Description voidHeaders. add(String key, String value)adds the given value to the list of headers for the given key.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.abstract HttpContextHttpServer. createContext(String path)Creates a HttpContext without initially specifying a handler.abstract HttpContextHttpServer. createContext(String path, HttpHandler handler)Creates a HttpContext.abstract ObjectHttpExchange. getAttribute(String name)Filter modules may store arbitrary objects with HttpExchange instances as an out-of-band communication mechanism.StringHeaders. getFirst(String key)returns the first value from the List of String values for the given key (if at least one exists).abstract voidHttpServer. removeContext(String path)Removes the context identified by the given path from the server.voidHeaders. set(String key, String value)sets the given value as the sole header value for the given key.abstract voidHttpExchange. setAttribute(String name, Object value)Filter modules may store arbitrary objects with HttpExchange instances 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.Constructors in com.sun.net.httpserver with parameters of type String Constructor Description BasicAuthenticator(String realm)Creates a BasicAuthenticator for the given HTTP realm.BasicAuthenticator(String realm, Charset charset)Creates a BasicAuthenticator for the given HTTP realm and using the givenCharsetto decode the Basic authentication credentials (username and password).HttpPrincipal(String username, String realm)creates a HttpPrincipal from the given username and realm -
Uses of String in com.sun.nio.sctp
Methods in com.sun.nio.sctp that return String Modifier and Type Method Description StringSctpStandardSocketOptions.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 String Modifier and Type Method Description static AssociationChangeNotification.AssocChangeEventAssociationChangeNotification.AssocChangeEvent. valueOf(String name)Returns the enum constant of this type with the specified name.static HandlerResultHandlerResult. valueOf(String name)Returns the enum constant of this type with the specified name.static PeerAddressChangeNotification.AddressChangeEventPeerAddressChangeNotification.AddressChangeEvent. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in com.sun.nio.sctp with parameters of type String Constructor Description IllegalReceiveException(String msg)Constructs an instance of this class with the specified message.IllegalUnbindException(String msg)Constructs an instance of this class with the specified detailed message.InvalidStreamException(String msg)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 String Modifier and Type Method Description StringLdapPrincipal. getName()Returns the name originally used to create this principal.StringNTDomainPrincipal. getName()Return the Windows NT domain name for thisNTDomainPrincipal.StringNTSid. getName()Return a string version of thisNTSid.StringNTUserPrincipal. getName()Return the Windows NT username for thisNTPrincipal.StringUnixNumericGroupPrincipal. getName()Return the user's group identification number (GID) for thisUnixNumericGroupPrincipal.StringUnixNumericUserPrincipal. getName()Return the user identification number (UID) for thisUnixNumericUserPrincipal.StringUnixPrincipal. getName()Return the Unix username for thisUnixPrincipal.StringUserPrincipal. getName()Returns the name of this principal.StringLdapPrincipal. toString()Creates a string representation of this principal's name in the format defined by RFC 2253.StringNTDomainPrincipal. toString()Return a string representation of thisNTDomainPrincipal.StringNTNumericCredential. toString()Return a string representation of thisNTNumericCredential.StringNTSid. toString()Return a string representation of thisNTSid.StringNTSidDomainPrincipal. toString()Return a string representation of thisNTSidDomainPrincipal.StringNTSidGroupPrincipal. toString()Return a string representation of thisNTSidGroupPrincipal.StringNTSidPrimaryGroupPrincipal. toString()Return a string representation of thisNTSidPrimaryGroupPrincipal.StringNTSidUserPrincipal. toString()Return a string representation of thisNTSidUserPrincipal.StringNTUserPrincipal. toString()Return a string representation of thisNTPrincipal.StringUnixNumericGroupPrincipal. toString()Return a string representation of thisUnixNumericGroupPrincipal.StringUnixNumericUserPrincipal. toString()Return a string representation of thisUnixNumericUserPrincipal.StringUnixPrincipal. toString()Return a string representation of thisUnixPrincipal.StringUserPrincipal. toString()Returns a string representation of this principal.Constructors in com.sun.security.auth with parameters of type String Constructor Description LdapPrincipal(String name)Creates an LDAP principal.NTDomainPrincipal(String name)Create anNTDomainPrincipalwith a Windows NT domain name.NTSid(String stringSid)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.NTSidPrimaryGroupPrincipal(String 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).UnixNumericUserPrincipal(String name)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 String Modifier and Type Method Description AppConfigurationEntry[]ConfigFile. 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 String Modifier and Type Field Description StringJndiLoginModule. GROUP_PROVIDERStringJndiLoginModule. USER_PROVIDERJNDI Providerprotected StringUnixSystem. usernameMethods in com.sun.security.auth.module that return String Modifier and Type Method Description StringNTSystem. getDomain()Get the domain for the current NT user.StringNTSystem. 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.StringNTSystem. getName()Get the username for the current NT user.StringNTSystem. getPrimaryGroupID()Get a printable primary group SID for the current NT user.StringUnixSystem. getUsername()Get the username for the current Unix user.StringNTSystem. getUserSID()Get a printable SID for the current NT user.Method parameters in com.sun.security.auth.module with type arguments of type String Modifier and Type Method Description voidJndiLoginModule. 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 String Modifier and Type Method Description static InquireTypeInquireType. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in com.sun.security.jgss with parameters of type String Constructor Description InquireSecContextPermission(String name)Constructs a newInquireSecContextPermissionobject with the specified name. -
Uses of String in com.sun.source.doctree
Fields in com.sun.source.doctree declared as String Modifier and Type Field Description StringDocTree.Kind. tagNameThe name of the tag, if any, associated with this kind of node.Methods in com.sun.source.doctree that return String Modifier and Type Method Description StringCommentTree. getBody()Returns the text of the comment.StringTextTree. getBody()Returns the text.StringReferenceTree. getSignature()Returns the signature of the Java language element being referenced, as found in@seeand similar nodes.StringBlockTagTree. getTagName()Returns the name of the tag.StringInlineTagTree. getTagName()Returns the name of the tag.StringDocTypeTree. getText()Returns the text of the doctype declaration.Methods in com.sun.source.doctree with parameters of type String Modifier and Type Method Description static AttributeTree.ValueKindAttributeTree.ValueKind. valueOf(String name)Returns the enum constant of this type with the specified name.static DocTree.KindDocTree.Kind. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in com.sun.source.tree
Methods in com.sun.source.tree with parameters of type String Modifier and Type Method Description static CaseTree.CaseKindCaseTree.CaseKind. valueOf(String name)Returns the enum constant of this type with the specified name.static LambdaExpressionTree.BodyKindLambdaExpressionTree.BodyKind. valueOf(String name)Returns the enum constant of this type with the specified name.static MemberReferenceTree.ReferenceModeMemberReferenceTree.ReferenceMode. valueOf(String name)Returns the enum constant of this type with the specified name.static ModuleTree.ModuleKindModuleTree.ModuleKind. valueOf(String name)Returns the enum constant of this type with the specified name.static Tree.KindTree.Kind. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in com.sun.source.util
Methods in com.sun.source.util that return String Modifier and Type Method Description abstract StringTrees. getDocComment(TreePath path)Returns the doc comment, if any, for the Tree node identified by a given TreePath.StringPlugin. getName()Returns the user-friendly name of this plug-in.Methods in com.sun.source.util with parameters of type String Modifier and Type Method Description abstract DocCommentTreeDocTrees. getDocCommentTree(Element e, String relativePath)Returns the doc comment tree of the given file whose path is specified relative to the given element.voidPlugin. init(JavacTask task, String... args)Initializes the plug-in for a given compilation task.CommentTreeDocTreeFactory. newCommentTree(String text)Create a newCommentTree, to represent an HTML comment.DocTypeTreeDocTreeFactory. newDocTypeTree(String text)Create a newDocTypeTree, to represent aDOCTYPEHTML declaration.ErroneousTreeDocTreeFactory. newErroneousTree(String text, Diagnostic<JavaFileObject> diag)Create a newErroneousTreeobject, to represent some unparseable input.ReferenceTreeDocTreeFactory. newReferenceTree(String signature)Create a newReferenceTreeobject, to represent a reference to an API element.TextTreeDocTreeFactory. newTextTree(String text)Create a newTextTreeobject, to represent some plain text.static TaskEvent.KindTaskEvent.Kind. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in com.sun.tools.attach
Methods in com.sun.tools.attach that return String Modifier and Type Method Description StringVirtualMachineDescriptor. displayName()Return the display name component of this descriptor.StringVirtualMachine. id()Returns the identifier for this Java virtual machine.StringVirtualMachineDescriptor. id()Return the identifier component of this descriptor.abstract StringVirtualMachine. startLocalManagementAgent()Starts the local JMX management agent in the target virtual machine.StringVirtualMachine. toString()Returns the string representation of theVirtualMachine.StringVirtualMachineDescriptor. toString()Returns the string representation of theVirtualMachineDescriptor.Methods in com.sun.tools.attach with parameters of type String Modifier and Type Method Description static VirtualMachineVirtualMachine. attach(String id)Attaches to a Java virtual machine.voidVirtualMachine. loadAgent(String agent)Loads an agent.abstract voidVirtualMachine. loadAgent(String agent, String options)Loads 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 String Constructor Description AgentInitializationException(String s)Constructs 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.AgentLoadException(String s)Constructs anAgentLoadExceptionwith the specified detail message.AttachNotSupportedException(String s)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.VirtualMachine(AttachProvider provider, String id)Initializes a new instance of this class.VirtualMachineDescriptor(AttachProvider provider, String id)Creates a virtual machine descriptor from the given components.VirtualMachineDescriptor(AttachProvider provider, String id, String displayName)Creates a virtual machine descriptor from the given components. -
Uses of String in com.sun.tools.attach.spi
Methods in com.sun.tools.attach.spi that return String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description static intMain. compile(String[] args)Programmatic 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. main(String[] args)Main entry point for the launcher. -
Uses of String in com.sun.tools.jconsole
Fields in com.sun.tools.jconsole declared as String Modifier and Type Field Description static StringJConsoleContext. CONNECTION_STATE_PROPERTYTheConnectionStatebound property name.Methods in com.sun.tools.jconsole that return types with arguments of type String Modifier and Type Method Description abstract Map<String,JPanel>JConsolePlugin. getTabs()Returns the tabs to be added in JConsole window.Methods in com.sun.tools.jconsole with parameters of type String Modifier and Type Method Description static JConsoleContext.ConnectionStateJConsoleContext.ConnectionState. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in java.applet
Methods in java.applet that return String Modifier and Type Method Description StringApplet. getAppletInfo()Deprecated.Returns information about this applet.StringApplet. getParameter(String name)Deprecated.Returns the value of the named parameter in the HTML tag.StringAppletStub. getParameter(String name)Deprecated.Returns the value of the named parameter in the HTML tag.String[][]Applet. getParameterInfo()Deprecated.Returns information about the parameters that are understood by this applet.Methods in java.applet that return types with arguments of type String Modifier and Type Method Description Iterator<String>AppletContext. getStreamKeys()Deprecated.Finds all the keys of the streams in this applet context.Methods in java.applet with parameters of type String Modifier and Type Method Description AppletAppletContext. getApplet(String name)Deprecated.Finds and returns the applet in the document represented by this applet context with the given name.AudioClipApplet. getAudioClip(URL url, String name)Deprecated.Returns theAudioClipobject specified by theURLandnamearguments.ImageApplet. getImage(URL url, String name)Deprecated.Returns anImageobject that can then be painted on the screen.StringApplet. getParameter(String name)Deprecated.Returns the value of the named parameter in the HTML tag.StringAppletStub. getParameter(String name)Deprecated.Returns the value of the named parameter in the HTML tag.InputStreamAppletContext. getStream(String key)Deprecated.Returns the stream to which specified key is associated within this applet context.voidApplet. play(URL url, String name)Deprecated.Plays the audio clip given theURLand a specifier that is relative to it.voidAppletContext. setStream(String key, InputStream stream)Deprecated.Associates the specified stream with the specified key in this applet context.voidAppletContext. showDocument(URL url, String target)Deprecated.Requests that the browser or applet viewer show the Web page indicated by theurlargument.voidApplet. showStatus(String msg)Deprecated.Requests that the argument string be displayed in the "status window".voidAppletContext. showStatus(String status)Deprecated.Requests that the argument string be displayed in the "status window". -
Uses of String in java.awt
Fields in java.awt declared as String Modifier and Type Field Description static StringBorderLayout. AFTER_LAST_LINESynonym for PAGE_END.static StringBorderLayout. AFTER_LINE_ENDSSynonym for LINE_END.static StringBorderLayout. BEFORE_FIRST_LINESynonym for PAGE_START.static StringBorderLayout. BEFORE_LINE_BEGINSSynonym for LINE_START.static StringBorderLayout. CENTERThe center layout constraint (middle of container).static StringFont. DIALOGA String constant for the canonical family name of the logical font "Dialog".static StringFont. DIALOG_INPUTA String constant for the canonical family name of the logical font "DialogInput".static StringBorderLayout. EASTThe east layout constraint (right side of container).static StringBorderLayout. LINE_ENDThe component goes at the end of the line direction for the layout.static StringBorderLayout. LINE_STARTThe component goes at the beginning of the line direction for the layout.static 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 StringBorderLayout. NORTHThe north layout constraint (top of container).static StringBorderLayout. PAGE_ENDThe component comes after the last line of the layout's content.static StringBorderLayout. PAGE_STARTThe component comes before the first line of the layout's content.static StringFont. SANS_SERIFA String constant for the canonical family name of the logical font "SansSerif".static StringFont. SERIFA String constant for the canonical family name of the logical font "Serif".static StringBorderLayout. SOUTHThe south layout constraint (bottom of container).static StringBorderLayout. WESTThe west layout constraint (left side of container).Fields in java.awt with type parameters of type String Modifier and Type Field Description protected Map<String,Object>Toolkit. desktopPropertiesThe desktop properties.Methods in java.awt that return String Modifier and Type Method Description StringButton.AccessibleAWTButton. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringCheckbox.AccessibleAWTCheckbox. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringCheckboxMenuItem.AccessibleAWTCheckboxMenuItem. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringChoice.AccessibleAWTChoice. getAccessibleActionDescription(int i)Returns a description of the specified action of the object.StringMenuItem.AccessibleAWTMenuItem. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringComponent.AccessibleAWTComponent. getAccessibleDescription()Gets the accessible description of this object.StringMenuComponent.AccessibleAWTMenuComponent. getAccessibleDescription()Gets the accessible description of this object.StringButton.AccessibleAWTButton. getAccessibleName()Get the accessible name of this object.StringComponent.AccessibleAWTComponent. getAccessibleName()Gets the accessible name of this object.StringLabel.AccessibleAWTLabel. getAccessibleName()Get the accessible name of this object.StringMenuComponent.AccessibleAWTMenuComponent. getAccessibleName()Gets the accessible name of this object.StringMenuItem.AccessibleAWTMenuItem. getAccessibleName()Get the accessible name of this object.StringButton. getActionCommand()Returns the command name of the action event fired by this button.StringMenuItem. getActionCommand()Gets the command name of the action event that is fired by this menu item.StringTrayIcon. getActionCommand()Returns the command name of the action event fired by this tray icon.StringTextComponent.AccessibleAWTTextComponent. getAfterIndex(int part, int index)Returns the String after a given index.StringTextComponent.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.StringTextComponent.AccessibleAWTTextComponent. getBeforeIndex(int part, int index)Returns the String before a given index.StringFileDialog. getDirectory()Gets the directory of this file dialog.StringFont. getFamily()Returns the family name of thisFont.StringFont. getFamily(Locale l)Returns the family name of thisFont, localized for the specified locale.StringFileDialog. getFile()Gets the selected file of this file dialog.StringJobAttributes. getFileName()Specifies the file name for the output file for jobs using these attributes.abstract String[]Toolkit. getFontList()Deprecated.StringFont. getFontName()Returns the font face name of thisFont.StringFont. 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.StringChoice. getItem(int index)Gets the string at the specified index in thisChoicemenu.StringList. getItem(int index)Gets the item associated with the specified index.String[]List. getItems()Gets the items in the list.StringButton. getLabel()Gets the label of this button.StringCheckbox. getLabel()Gets the label of this check box.StringMenuItem. getLabel()Gets the label for this menu item.StringHeadlessException. getMessage()Returns the detail message string of thisHeadlessException.StringComponent. getName()Gets the name of the component.StringCursor. getName()Returns the name of this cursor.StringFont. getName()Returns the logical name of thisFont.StringMenuComponent. getName()Gets the name of the menu component.StringJobAttributes. 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.StringFont. getPSName()Returns the postscript name of thisFont.StringChoice. getSelectedItem()Gets a representation of the current choice as a string.StringList. getSelectedItem()Gets the selected item on this scrolling list.String[]List. getSelectedItems()Gets the selected items on this scrolling list.StringTextComponent.AccessibleAWTTextComponent. getSelectedText()Returns the portion of the text that is selected.StringTextComponent. getSelectedText()Returns the selected text from the text that is presented by this text component.StringLabel. getText()Gets the text of this label.StringTextComponent. getText()Returns the text that is presented by this text component.StringDialog. getTitle()Gets the title of the dialog.StringFrame. getTitle()Gets the title of the frame.StringTrayIcon. getToolTip()Returns the tooltip string associated with thisTrayIcon.StringWindow. getWarningString()Gets the warning string that is displayed with this window.StringAWTEvent. 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.StringCheckboxMenuItem. 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.StringMenu. paramString()Returns a string representing the state of thisMenu.protected StringMenuComponent. paramString()Returns a string representing the state of thisMenuComponent.StringMenuItem. 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.StringScrollPane. paramString()Returns a string representing the state of thisScrollPane.StringScrollPaneAdjustable. 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.StringAWTEvent. toString()Returns a String representation of this object.StringAWTKeyStroke. toString()Returns a string that displays and identifies this object's properties.StringBorderLayout. toString()Returns a string representation of the state of this border layout.StringCardLayout. toString()Returns a string representation of the state of this card layout.StringCheckboxGroup. toString()Returns a string representation of this check box group, including the value of its current selection.StringColor. toString()Returns a string representation of thisColor.StringComponent. toString()Returns a string representation of this component and its values.StringCursor. toString()Returns a string representation of this cursor.StringDimension. toString()Returns a string representation of the values of thisDimensionobject'sheightandwidthfields.StringEvent. toString()Deprecated.NOTE: TheEventclass is obsolete and is available only for backwards compatibility.StringFlowLayout. toString()Returns a string representation of thisFlowLayoutobject and its values.StringFont. toString()Converts thisFontobject to aStringrepresentation.StringFontMetrics. toString()Returns a representation of thisFontMetricsobject's values as aString.StringGraphics. toString()Returns aStringobject representing thisGraphicsobject's value.StringGridBagLayout. toString()Returns a string representation of this grid bag layout's values.StringGridLayout. toString()Returns the string representation of this grid layout's values.StringInsets. toString()Returns a string representation of thisInsetsobject.StringJobAttributes. toString()Returns a string representation of this JobAttributes.StringMenuComponent. toString()Returns a representation of this menu component as a string.StringMenuShortcut. toString()Returns an internationalized description of the MenuShortcut.StringPageAttributes. toString()Returns a string representation of this PageAttributes.StringPoint. toString()Returns a string representation of this point and its location in the(x,y)coordinate space.StringRectangle. toString()Returns aStringrepresenting thisRectangleand its values.StringRenderingHints. toString()Returns a rather long string representation of the hashmap which contains the mappings of keys to values for thisRenderingHintsobject.StringRobot. toString()Returns a string representation of this Robot.StringScrollPaneAdjustable. toString()Returns a string representation of this scrollbar and its values.StringSystemColor. toString()Returns a string representation of thisColor's values.Methods in java.awt with parameters of type String Modifier and Type Method Description voidChoice. add(String item)Adds an item to thisChoicemenu.ComponentContainer. add(String name, Component comp)Adds the specified component to this container.voidList. add(String item)Adds the specified item to the end of scrolling list.voidList. add(String item, int index)Adds the specified item to the scrolling list at the position indicated by the index.voidMenu. add(String label)Adds an item with the specified label to this menu.voidChoice. addItem(String item)Obsolete as of Java 2 platform v1.1.voidList. addItem(String item)Deprecated.replaced byadd(String).voidList. addItem(String item, int index)Deprecated.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.voidTextArea. append(String str)Appends 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.CursorToolkit. createCustomCursor(Image cursor, Point hotSpot, String name)Creates a new custom cursor object.GlyphVectorFont. 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 ColorColor. decode(String nm)Converts aStringto an integer and returns the specified opaqueColor.static FontFont. decode(String str)Returns 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 ColorColor. getColor(String nm)Finds a color in the system properties.static ColorColor. getColor(String nm, int v)Finds a color in the system properties.static ColorColor. getColor(String nm, Color v)Finds a color in the system properties.ObjectToolkit. getDesktopProperty(String propertyName)Obtains a value for the specified desktop property.static FontFont. getFont(String nm)Returns aFontobject from the system properties list.static FontFont. getFont(String nm, Font font)Gets the specifiedFontfrom the system properties list.abstract ImageToolkit. getImage(String filename)Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.LineMetricsFont. getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)Returns aLineMetricsobject created with the specified arguments.LineMetricsFont. getLineMetrics(String str, FontRenderContext frc)LineMetricsFontMetrics. getLineMetrics(String str, int beginIndex, int limit, Graphics context)LineMetricsFontMetrics. getLineMetrics(String str, Graphics context)PrintJobToolkit. 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.PropertyChangeListener[]Component. getPropertyChangeListeners(String propertyName)Returns an array of all the listeners which have been associated with the named property.PropertyChangeListener[]KeyboardFocusManager. getPropertyChangeListeners(String propertyName)Returns an array of all thePropertyChangeListeners associated with the named property.PropertyChangeListener[]SystemTray. getPropertyChangeListeners(String propertyName)Returns an array of all the listeners that have been associated with the named property.PropertyChangeListener[]Toolkit. getPropertyChangeListeners(String propertyName)Returns an array of all property change listeners associated with the specified name of a desktop property.Rectangle2DFont. getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)Returns the logical bounds of the specifiedStringin the specifiedFontRenderContext.Rectangle2DFont. getStringBounds(String str, FontRenderContext frc)Returns the logical bounds of the specifiedStringin the specifiedFontRenderContext.Rectangle2DFontMetrics. getStringBounds(String str, int beginIndex, int limit, Graphics context)Returns the bounds of the specifiedStringin the specifiedGraphicscontext.Rectangle2DFontMetrics. 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.VetoableChangeListener[]KeyboardFocusManager. getVetoableChangeListeners(String propertyName)Returns an array of all theVetoableChangeListeners associated with the named property.voidChoice. insert(String item, int index)Inserts the item into this choice at the specified position.voidMenu. insert(String label, int index)Inserts a menu item with the specified label into this menu at the specified position.voidTextArea. insert(String str, int pos)Inserts 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.voidChoice. remove(String item)Removes the first occurrence ofitemfrom theChoicemenu.voidList. remove(String item)Removes 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.voidChoice. select(String str)Sets 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 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.voidFileDialog. setFile(String file)Sets 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.voidButton. setLabel(String label)Sets the button's label to be the specified string.voidCheckbox. setLabel(String label)Sets this check box's label to be the string argument.voidMenuItem. setLabel(String label)Sets the label for this menu item to the specified label.voidComponent. setName(String name)Sets the name of the component to the specified string.voidMenuComponent. setName(String name)Sets the name of the component to the specified string.voidJobAttributes. setPrinter(String printer)Specifies the destination printer for jobs using these attributes.voidLabel. setText(String text)Sets the text for this label to the specified text.voidTextComponent. setText(String t)Sets the text that is presented by this text component to be the specified text.voidTextField. setText(String t)Sets the text that is presented by this text component to be the specified text.voidDialog. setTitle(String title)Sets the title of the Dialog.voidFileDialog. setTitle(String title)Sets the title of the Dialog.voidFrame. setTitle(String title)Sets the title for this frame to the specified string.voidTrayIcon. setToolTip(String tooltip)Sets the tooltip string for thisTrayIcon.voidCardLayout. show(Container parent, String name)Flips 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.static Component.BaselineResizeBehaviorComponent.BaselineResizeBehavior. valueOf(String name)Returns the enum constant of this type with the specified name.static Desktop.ActionDesktop.Action. valueOf(String name)Returns the enum constant of this type with the specified name.static Dialog.ModalExclusionTypeDialog.ModalExclusionType. valueOf(String name)Returns the enum constant of this type with the specified name.static Dialog.ModalityTypeDialog.ModalityType. valueOf(String name)Returns the enum constant of this type with the specified name.static GraphicsDevice.WindowTranslucencyGraphicsDevice.WindowTranslucency. valueOf(String name)Returns the enum constant of this type with the specified name.static MultipleGradientPaint.ColorSpaceTypeMultipleGradientPaint.ColorSpaceType. valueOf(String name)Returns the enum constant of this type with the specified name.static MultipleGradientPaint.CycleMethodMultipleGradientPaint.CycleMethod. valueOf(String name)Returns the enum constant of this type with the specified name.static Taskbar.FeatureTaskbar.Feature. valueOf(String name)Returns the enum constant of this type with the specified name.static Taskbar.StateTaskbar.State. valueOf(String name)Returns the enum constant of this type with the specified name.static TrayIcon.MessageTypeTrayIcon.MessageType. valueOf(String name)Returns the enum constant of this type with the specified name.static Window.TypeWindow.Type. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.awt with parameters of type String Constructor Description AWTError(String msg)Constructs 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.Button(String label)Constructs a button with the specified label.Checkbox(String label)Creates a check box with the specified label.Checkbox(String label, boolean state)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.Cursor(String name)Creates a new custom cursor object with the specified name.Dialog(Dialog owner, String title)Constructs an initially invisible, modelessDialogwith the specified ownerDialogand title.Dialog(Dialog owner, String title, boolean modal)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.Dialog(Frame owner, String title)Constructs an initially invisible, modelessDialogwith the specified ownerFrameand title.Dialog(Frame owner, String title, boolean modal)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.Dialog(Window owner, String title)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.Font(String name, int style, int size)Creates a newFontfrom the specified name, style and point size.FontFormatException(String reason)Report a FontFormatException for the reason specified.Frame(String title)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.IllegalComponentStateException(String s)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.Label(String text)Constructs a new label with the specified string of text, left justified.Label(String text, int alignment)Constructs a new label that presents the specified string of text with the specified alignment.Menu(String label)Constructs a new menu with the specified label.Menu(String label, boolean tearOff)Constructs a new menu with the specified label, indicating whether the menu can be torn off.MenuItem(String label)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.PopupMenu(String label)Creates a new popup menu with the specified name.TextArea(String text)Constructs a new text area with the specified text.TextArea(String text, int rows, int columns)Constructs a new text area with the specified text, and with the specified number of rows and columns.TextArea(String text, int rows, int columns, int scrollbars)Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.TextField(String text)Constructs a new text field initialized with the specified text.TextField(String text, int columns)Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns.TrayIcon(Image image, String tooltip)Creates aTrayIconwith the specified image and tooltip text.TrayIcon(Image image, String tooltip, PopupMenu popup)Creates aTrayIconwith the specified image, tooltip and popup menu. -
Uses of String in java.awt.color
Methods in java.awt.color that return String Modifier and Type Method Description StringColorSpace. getName(int idx)Returns the name of the component given the component index.Methods in java.awt.color with parameters of type String Modifier and Type Method Description static ICC_ProfileICC_Profile. getInstance(String fileName)Constructs anICC_Profilecorresponding to the data in a file.voidICC_Profile. write(String fileName)Write thisICC_Profileto a file.Constructors in java.awt.color with parameters of type String Constructor Description CMMException(String s)Constructs aCMMExceptionwith the specified detail message.ProfileDataException(String s)Constructs aProfileDataExceptionwith the specified detail message. -
Uses of String in java.awt.datatransfer
Fields in java.awt.datatransfer declared as String Modifier and Type Field Description static 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 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 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 String Modifier and Type Method Description static 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.StringDataFlavor. getDefaultRepresentationClassAsString()Returns the name of the default representation class.StringDataFlavor. getHumanPresentableName()Returns the human presentable name for the data format that thisDataFlavorrepresents.StringDataFlavor. getMimeType()Returns the MIME type string for thisDataFlavor.StringClipboard. getName()Returns the name of this clipboard object.StringDataFlavor. getParameter(String paramName)Returns the human presentable name for thisDataFlavorifparamNameequals "humanPresentableName".StringDataFlavor. getPrimaryType()Returns the primary MIME type for thisDataFlavor.StringDataFlavor. 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 onwardsStringDataFlavor. toString()String representation of thisDataFlavorand its parameters.Methods in java.awt.datatransfer that return types with arguments of type String Modifier and Type Method Description Map<String,DataFlavor>FlavorMap. getFlavorsForNatives(String[] natives)Returns aMapof the specifiedStringnatives to their correspondingDataFlavor.Map<String,DataFlavor>SystemFlavorMap. getFlavorsForNatives(String[] natives)Returns aMapof the specifiedStringnatives to their most preferredDataFlavor.List<String>FlavorTable. getNativesForFlavor(DataFlavor flav)Returns aListofStringnatives to which the specifiedDataFlavorcorresponds.List<String>SystemFlavorMap. getNativesForFlavor(DataFlavor flav)Returns aListofStringnatives to which the specifiedDataFlavorcan be translated by the data transfer subsystem.Map<DataFlavor,String>FlavorMap. getNativesForFlavors(DataFlavor[] flavors)Returns aMapof the specifiedDataFlavors to their correspondingStringnative.Map<DataFlavor,String>SystemFlavorMap. getNativesForFlavors(DataFlavor[] flavors)Returns aMapof the specifiedDataFlavors to their most preferredStringnative.Methods in java.awt.datatransfer with parameters of type String Modifier and Type Method Description voidSystemFlavorMap. 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.booleanDataFlavor. equals(String s)Deprecated.As inconsistent withhashCode()contract, useDataFlavor.isMimeTypeEqual(String)instead.List<DataFlavor>FlavorTable. getFlavorsForNative(String nat)Returns aListofDataFlavors to which the specifiedStringcorresponds.List<DataFlavor>SystemFlavorMap. getFlavorsForNative(String nat)Returns aListofDataFlavors to which the specifiedStringnative can be translated by the data transfer subsystem.Map<String,DataFlavor>FlavorMap. getFlavorsForNatives(String[] natives)Returns aMapof the specifiedStringnatives to their correspondingDataFlavor.Map<String,DataFlavor>SystemFlavorMap. getFlavorsForNatives(String[] natives)Returns aMapof the specifiedStringnatives to their most preferredDataFlavor.StringDataFlavor. 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 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 String Constructor Description Clipboard(String name)Creates 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.MimeTypeParseException(String s)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 String Modifier and Type Method Description StringOpenFilesEvent. getSearchTerm()Gets the search term.Methods in java.awt.desktop with parameters of type String Modifier and Type Method Description static QuitStrategyQuitStrategy. valueOf(String name)Returns the enum constant of this type with the specified name.static UserSessionEvent.ReasonUserSessionEvent.Reason. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.awt.desktop with parameters of type String Constructor Description OpenFilesEvent(List<File> files, String searchTerm)Constructs anOpenFilesEvent. -
Uses of String in java.awt.dnd
Constructors in java.awt.dnd with parameters of type String Constructor Description InvalidDnDOperationException(String msg)Create an Exception with its own descriptive message -
Uses of String in java.awt.event
Methods in java.awt.event that return String Modifier and Type Method Description StringActionEvent. 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".StringActionEvent. paramString()Returns a parameter string identifying this action event.StringComponentEvent. paramString()Returns a parameter string identifying this event.StringContainerEvent. paramString()Returns a parameter string identifying this event.StringFocusEvent. paramString()Returns a parameter string identifying this event.StringHierarchyEvent. paramString()Returns a parameter string identifying this event.StringInputMethodEvent. paramString()Returns a parameter string identifying this event.StringInvocationEvent. paramString()Returns a parameter string identifying this event.StringItemEvent. paramString()Returns a parameter string identifying this item event.StringKeyEvent. paramString()Returns a parameter string identifying this event.StringMouseEvent. paramString()Returns a parameter string identifying this event.StringMouseWheelEvent. paramString()Returns a parameter string identifying this event.StringTextEvent. paramString()Returns a parameter string identifying this text event.StringWindowEvent. paramString()Returns a parameter string identifying this event.Methods in java.awt.event with parameters of type String Modifier and Type Method Description static FocusEvent.CauseFocusEvent.Cause. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.awt.event with parameters of type String Constructor Description ActionEvent(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 String Modifier and Type Method Description String[]MultipleMaster. getDesignAxisNames()Returns the name for each design axis.StringNumericShaper. toString()Returns aStringthat describes this shaper.StringTextHitInfo. toString()Returns aStringrepresenting the hit for debugging use only.StringTextLayout. toString()Returns debugging information for thisTextLayout.Methods in java.awt.font with parameters of type String Modifier and Type Method Description byte[]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.RangeNumericShaper.Range. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.awt.font with parameters of type String Constructor Description TextAttribute(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 String Modifier and Type Method Description StringAffineTransform. toString()Returns aStringthat represents the value of thisObject.StringPoint2D.Double. toString()Returns aStringthat represents the value of thisPoint2D.StringPoint2D.Float. toString()Returns aStringthat represents the value of thisPoint2D.StringRectangle2D.Double. toString()Returns theStringrepresentation of thisRectangle2D.StringRectangle2D.Float. toString()Returns theStringrepresentation of thisRectangle2D.Constructors in java.awt.geom with parameters of type String Constructor Description IllegalPathStateException(String s)Constructs anIllegalPathStateExceptionwith the specified detail message.NoninvertibleTransformException(String s)Constructs an instance ofNoninvertibleTransformExceptionwith the specified detail message. -
Uses of String in java.awt.im.spi
Methods in java.awt.im.spi that return String Modifier and Type Method Description StringInputMethodDescriptor. 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 String Modifier and Type Method Description JFrameInputMethodContext. createInputMethodJFrame(String title, boolean attachToInputContext)Creates a top-level Swing JFrame for use by the input method.WindowInputMethodContext. 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 String Modifier and Type Method Description String[]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.StringBufferedImage. toString()Returns aStringrepresentation of thisBufferedImageobject and its values.StringColorModel. toString()Returns theStringrepresentation of the contents of thisColorModelobject.StringDirectColorModel. toString()Returns aStringthat represents thisDirectColorModel.StringIndexColorModel. toString()Returns theStringrepresentation of the contents of thisColorModelobject.Methods in java.awt.image with parameters of type String Modifier and Type Method Description ObjectAbstractMultiResolutionImage. 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).ObjectBufferedImage. getProperty(String name)Returns a property of the image by name.ObjectBufferedImage. getProperty(String name, ImageObserver observer)Returns a property of the image by name.ObjectRenderedImage. getProperty(String name)Gets a property from the property set of this image.Constructors in java.awt.image with parameters of type String Constructor Description ImagingOpException(String s)Constructs anImagingOpExceptionobject with the specified message.RasterFormatException(String s)Constructs a newRasterFormatExceptionwith the specified message. -
Uses of String in java.awt.image.renderable
Fields in java.awt.image.renderable declared as String Modifier and Type Field Description static 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 String Modifier and Type Method Description String[]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 String Modifier and Type Method Description ObjectContextualRenderedImageFactory. getProperty(ParameterBlock paramBlock, String name)Gets the appropriate instance of the property specified by the name parameter.ObjectRenderableImage. getProperty(String name)Gets a property from the property set of this image.ObjectRenderableImageOp. 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 String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description static 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 String Constructor Description PrinterAbortException(String msg)Constructs 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 String Modifier and Type Field Description static StringDesignMode. PROPERTYNAMEThe standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.Methods in java.beans that return String Modifier and Type Method Description static StringIntrospector. decapitalize(String name)Utility method to take a string and convert it to normal Java variable name capitalization.StringdefaultEventSet()StringdefaultProperty()Stringdescription()Theshort descriptionfor thedescriptorof the annotated property.Stringdescription()Theshort descriptionfor thebean descriptorof the annotated class.String[]enumerationValues()The array of names for the public static fields that contains the valid values of the annotated property.StringEventHandler. 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.StringPropertyEditor. getAsText()Gets the property value as text.StringPropertyEditorSupport. 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.StringFeatureDescriptor. getDisplayName()Gets the localized display name of this feature.static String[]PropertyEditorManager. getEditorSearchPath()Gets the package names that will be searched for property editors.StringEventHandler. getEventPropertyName()Returns the property of the event that should be used in the action applied to the target.StringPropertyEditor. getJavaInitializationString()Returns a fragment of Java code that can be used to set a property to match the editors current state.StringPropertyEditorSupport. getJavaInitializationString()This method is intended for use when generating Java code to set the value of the property.StringEventHandler. getListenerMethodName()Returns the name of the method that will trigger the action.StringStatement. getMethodName()Returns the name of the method to invoke.StringFeatureDescriptor. getName()Gets the programmatic name of this feature.StringPropertyChangeEvent. getPropertyName()Gets the programmatic name of the property that was changed.StringPropertyChangeListenerProxy. getPropertyName()Returns the name of the named property associated with the listener.StringVetoableChangeListenerProxy. getPropertyName()Returns the name of the named property associated with the listener.StringFeatureDescriptor. 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.StringExpression. toString()Prints the value of this expression using a Java-style syntax.StringFeatureDescriptor. toString()Returns a string representation of the object.StringPropertyChangeEvent. toString()Returns a string representation of the object.StringStatement. toString()Prints the value of this statement using a Java-style syntax.String[]value()The getter names.Methods in java.beans that return types with arguments of type String Modifier and Type Method Description Enumeration<String>FeatureDescriptor. attributeNames()Gets an enumeration of the locale-independent names of this feature.Methods in java.beans with parameters of type String Modifier and Type Method Description voidPropertyChangeSupport. 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> TEventHandler. create(Class<T> listenerInterface, Object target, String action)Creates 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.PropertyChangeListener[]PropertyChangeSupport. getPropertyChangeListeners(String propertyName)Returns an array of all the listeners which have been associated with the named property.ObjectFeatureDescriptor. getValue(String attributeName)Retrieve a named attribute with this feature.VetoableChangeListener[]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.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext), because the Applet API is deprecated.ImageSimpleBeanInfo. loadImage(String resourceName)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.voidPropertyEditor. setAsText(String text)Set the property value by parsing a given String.voidPropertyEditorSupport. setAsText(String text)Sets 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.voidFeatureDescriptor. setName(String name)Sets the programmatic name of this feature.voidFeatureDescriptor. setShortDescription(String text)You can associate a short descriptive string with a feature.voidFeatureDescriptor. setValue(String attributeName, Object value)Associate a named attribute with this feature.Constructors in java.beans with parameters of type String Constructor Description DefaultPersistenceDelegate(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.Statement(Object target, String methodName, Object[] arguments)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 String Modifier and Type Method Description voidBeanContextChild. 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.URLBeanContext. getResource(String name, BeanContextChild bcc)Analagous tojava.lang.ClassLoader.getResource(), this method allows aBeanContextimplementation to interpose behavior between the childComponentand underlyingClassLoader.URLBeanContextSupport. getResource(String name, BeanContextChild bcc)InputStreamBeanContext. getResourceAsStream(String name, BeanContextChild bcc)Analagous tojava.lang.ClassLoader.getResourceAsStream(), this method allows aBeanContextimplementation to interpose behavior between the childComponentand underlyingClassLoader.InputStreamBeanContextSupport. getResourceAsStream(String name, BeanContextChild bcc)ObjectBeanContext. instantiateChild(String beanName)Instantiate the javaBean named as a child of thisBeanContext.ObjectBeanContextSupport. 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
Fields in java.io declared as String Modifier and Type Field Description protected StringStringBufferInputStream. bufferDeprecated.The string from which bytes are read.StringInvalidClassException. classnameName of the invalid class.static StringFile. pathSeparatorThe system-dependent path-separator character, represented as a string for convenience.static StringFile. separatorThe system-dependent default name-separator character, represented as a string for convenience.StringStreamTokenizer. svalIf the current token is a word token, this field contains a string giving the characters of the word token.Methods in java.io that return String Modifier and Type Method Description StringFile. getAbsolutePath()Returns the absolute pathname string of this abstract pathname.StringFilePermission. getActions()Returns the "canonical string representation" of the actions.StringFile. getCanonicalPath()Returns the canonical pathname string of this abstract pathname.StringInputStreamReader. getEncoding()Returns the name of the character encoding being used by this stream.StringOutputStreamWriter. getEncoding()Returns the name of the character encoding being used by this stream.StringInvalidClassException. getMessage()Produce the message and include the classname, if present.StringWriteAbortedException. getMessage()Produce the message and include the message from the nested exception, if there is one.StringFile. getName()Returns the name of the file or directory denoted by this abstract pathname.StringObjectStreamClass. getName()Returns the name of the class described by this descriptor.StringObjectStreamField. getName()Get the name of this field.StringFile. getParent()Returns the pathname string of this abstract pathname's parent, ornullif this pathname does not name a parent directory.StringFile. getPath()Converts this abstract pathname into a pathname string.StringObjectStreamField. 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.StringBufferedReader. readLine()Reads a line of text.StringConsole. readLine()Reads a single line of text from the console.StringConsole. readLine(String fmt, Object... args)Provides a formatted prompt, then reads a single line of text from the console.StringDataInput. readLine()Reads the next line of text from the input stream.StringDataInputStream. readLine()Deprecated.This method does not properly convert bytes to characters.StringLineNumberReader. readLine()Read a line of text.StringObjectInputStream. readLine()Deprecated.This method does not properly convert bytes to characters.StringRandomAccessFile. readLine()Reads the next line of text from this file.StringDataInput. readUTF()Reads in a string that has been encoded using a modified UTF-8 format.StringDataInputStream. readUTF()See the general contract of thereadUTFmethod ofDataInput.static StringDataInputStream. readUTF(DataInput in)Reads from the streamina representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as aString.StringObjectInputStream. readUTF()Reads a String in modified UTF-8 format.StringRandomAccessFile. readUTF()Reads in a string from this file.StringByteArrayOutputStream. toString()Converts the buffer's contents into a string decoding bytes using the platform's default character set.StringByteArrayOutputStream. toString(int hibyte)Deprecated.This method does not properly convert bytes into characters.StringByteArrayOutputStream. toString(String charsetName)Converts the buffer's contents into a string by decoding the bytes using the namedcharset.StringByteArrayOutputStream. toString(Charset charset)Converts the buffer's contents into a string by decoding the bytes using the specifiedcharset.StringCharArrayWriter. toString()Converts input data to a string.StringFile. toString()Returns the pathname string of this abstract pathname.StringObjectStreamClass. toString()Return a string describing this ObjectStreamClass.StringObjectStreamField. toString()Return a string that describes this field.StringStreamTokenizer. toString()Returns the string representation of the current stream token and the line number it occurs on.StringStringWriter. toString()Return the buffer's current value as a string.Methods in java.io that return types with arguments of type String Modifier and Type Method Description Stream<String>BufferedReader. lines()Returns aStream, the elements of which are lines read from thisBufferedReader.Methods in java.io with parameters of type String Modifier and Type Method Description booleanFilenameFilter. accept(File dir, String name)Tests 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 booleanObjectInputStream.GetField. defaulted(String name)Return true if the named field is defaulted and has no value in this stream.ConsoleConsole. format(String fmt, Object... args)Writes a formatted string to this console's output stream using the specified format string and arguments.PrintStreamPrintStream. format(String format, Object... args)Writes a formatted string to this output stream using the specified format string and arguments.PrintStreamPrintStream. format(Locale l, String format, Object... args)Writes a formatted string to this output stream using the specified format string and arguments.PrintWriterPrintWriter. format(String format, Object... args)Writes a formatted string to this writer using the specified format string and arguments.PrintWriterPrintWriter. format(Locale l, String format, Object... args)Writes a formatted string to this writer using the specified format string and arguments.abstract booleanObjectInputStream.GetField. get(String name, boolean val)Get the value of the named boolean field from the persistent field.abstract byteObjectInputStream.GetField. get(String name, byte val)Get the value of the named byte field from the persistent field.abstract charObjectInputStream.GetField. get(String name, char val)Get the value of the named char field from the persistent field.abstract doubleObjectInputStream.GetField. get(String name, double val)Get the value of the named double field from the persistent field.abstract floatObjectInputStream.GetField. get(String name, float val)Get the value of the named float field from the persistent field.abstract intObjectInputStream.GetField. get(String name, int val)Get the value of the named int field from the persistent field.abstract longObjectInputStream.GetField. get(String name, long val)Get the value of the named long field from the persistent field.abstract shortObjectInputStream.GetField. get(String name, short val)Get the value of the named short field from the persistent field.abstract ObjectObjectInputStream.GetField. get(String name, Object val)Get the value of the named Object field from the persistent field.ObjectStreamFieldObjectStreamClass. getField(String name)Get the field of this class by name.voidPrintStream. print(String s)Prints a string.voidPrintWriter. print(String s)Prints a string.ConsoleConsole. printf(String format, Object... args)A convenience method to write a formatted string to this console's output stream using the specified format string and arguments.PrintStreamPrintStream. printf(String format, Object... args)A convenience method to write a formatted string to this output stream using the specified format string and arguments.PrintStreamPrintStream. printf(Locale l, String format, Object... args)A convenience method to write a formatted string to this output stream using the specified format string and arguments.PrintWriterPrintWriter. printf(String format, Object... args)A convenience method to write a formatted string to this writer using the specified format string and arguments.PrintWriterPrintWriter. printf(Locale l, String format, Object... args)A convenience method to write a formatted string to this writer using the specified format string and arguments.voidPrintStream. println(String x)Prints a String and then terminate the line.voidPrintWriter. println(String x)Prints a String and then terminates the line.abstract voidObjectOutputStream.PutField. put(String name, boolean val)Put the value of the named boolean field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, byte val)Put the value of the named byte field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, char val)Put the value of the named char field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, double val)Put the value of the named double field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, float val)Put the value of the named float field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, int val)Put the value of the named int field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, long val)Put the value of the named long field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, short val)Put the value of the named short field into the persistent field.abstract voidObjectOutputStream.PutField. put(String name, Object val)Put the value of the named Object field into the persistent field.StringConsole. readLine(String fmt, Object... args)Provides a formatted prompt, then reads a single line of text from the console.char[]Console. readPassword(String fmt, Object... args)Provides a formatted prompt, then reads a password or passphrase from the console with echoing disabled.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.StringByteArrayOutputStream. toString(String charsetName)Converts the buffer's contents into a string by decoding the bytes using the namedcharset.static ObjectInputFilter.StatusObjectInputFilter.Status. valueOf(String name)Returns the enum constant of this type with the specified name.voidBufferedWriter. write(String s, int off, int len)Writes a portion of a String.voidCharArrayWriter. write(String str, int off, int len)Write a portion of a string to the buffer.voidFilterWriter. write(String str, int off, int len)Writes a portion of a string.voidOutputStreamWriter. write(String str, int off, int len)Writes a portion of a string.voidPrintWriter. write(String s)Writes a string.voidPrintWriter. write(String s, int off, int len)Writes a portion of a string.voidStringWriter. write(String str)Write a string.voidStringWriter. write(String str, int off, int len)Write a portion of a string.voidWriter. write(String str)Writes a string.voidWriter. write(String str, int off, int len)Writes a portion of a string.voidDataOutput. writeBytes(String s)Writes a string to the output stream.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.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.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.voidRandomAccessFile. writeChars(String s)Writes a string to the file as a sequence of characters.voidDataOutput. writeUTF(String s)Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the strings.voidDataOutputStream. writeUTF(String str)Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.voidObjectOutputStream. writeUTF(String str)Primitive data write of this String in modified UTF-8 format.voidRandomAccessFile. writeUTF(String str)Writes a string to the file using modified UTF-8 encoding in a machine-independent manner.Constructors in java.io with parameters of type String Constructor Description CharConversionException(String s)This provides a detailed message.EOFException(String s)Constructs anEOFExceptionwith the specified detail message.File(File parent, String child)Creates a newFileinstance from a parent abstract pathname and a child pathname string.File(String pathname)Creates a newFileinstance by converting the given pathname string into an abstract pathname.File(String parent, String child)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.FileNotFoundException(String s)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 platform's default charset.FileReader(String fileName, Charset charset)Creates a newFileReader, given the name of the file to read and the charset.FileWriter(String fileName)Constructs aFileWritergiven a file name, using the platform's default charsetFileWriter(String fileName, boolean append)Constructs aFileWritergiven a file name and a boolean indicating whether to append the data written, using the platform's default charset.FileWriter(String fileName, Charset charset)Constructs 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.InterruptedIOException(String s)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.InvalidObjectException(String reason)Constructs anInvalidObjectException.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.ObjectStreamException(String message)Create an ObjectStreamException with the specified argument.ObjectStreamField(String name, Class<?> type)Create a Serializable field with the specified type.ObjectStreamField(String name, Class<?> type, boolean unshared)Creates an ObjectStreamField representing a serializable field with the given name and type.OutputStreamWriter(OutputStream out, String charsetName)Creates an OutputStreamWriter that uses the named charset.PrintStream(File file, String csn)Creates a new print stream, without automatic line flushing, with the specified file and charset.PrintStream(OutputStream out, boolean autoFlush, String encoding)Creates a new print stream, with the specified OutputStream, line flushing, and character encoding.PrintStream(String fileName)Creates a new print stream, without automatic line flushing, with the specified file name.PrintStream(String fileName, String csn)Creates a new print stream, without automatic line flushing, with the specified file name and charset.PrintStream(String fileName, Charset charset)Creates a new print stream, without automatic line flushing, with the specified file name and charset.PrintWriter(File file, String csn)Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.PrintWriter(String fileName)Creates a new PrintWriter, without automatic line flushing, with the specified file name.PrintWriter(String fileName, String csn)Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.PrintWriter(String fileName, Charset charset)Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.RandomAccessFile(File file, String mode)Creates a random access file stream to read from, and optionally to write to, the file specified by 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.StringBufferInputStream(String s)Deprecated.Creates a string input stream to read data from the specified string.StringReader(String s)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.UnsupportedEncodingException(String s)Constructs an UnsupportedEncodingException with a detail message.UTFDataFormatException(String s)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
Fields in java.lang with type parameters of type String Modifier and Type Field Description static Comparator<String>String. CASE_INSENSITIVE_ORDERA Comparator that ordersStringobjects as bycompareToIgnoreCase.Methods in java.lang that return String Modifier and Type Method Description static StringSystem. clearProperty(String key)Removes the system property indicated by the specified key.StringString. concat(String str)Concatenates the specified string to the end of this string.StringEnumConstantNotPresentException. 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).StringClass. descriptorString()Returns the type descriptor string for this class.protected StringClassLoader. findLibrary(String libname)Returns the absolute path name of a native library.static StringString. format(String format, Object... args)Returns a formatted string using the specified format string and arguments.static StringString. format(Locale l, String format, Object... args)Returns a formatted string using the specified locale, format string, and arguments.StringString. formatted(Object... args)Associated with text blocks, a preview feature of the Java language.
Formats using this string as the format string, and the supplied arguments.StringClass. getCanonicalName()Returns the canonical name of the underlying class as defined by the Java Language Specification.StringStackTraceElement. getClassLoaderName()Returns the name of the class loader of the class containing the execution point represented by this stack trace element.StringStackTraceElement. getClassName()Returns the fully qualified name of the class containing the execution point represented by this stack trace element.StringStackWalker.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 StringSystem. getenv(String name)Gets the value of the specified environment variable.StringStackTraceElement. getFileName()Returns the name of the source file containing the execution point represented by this stack trace element.StringStackWalker.StackFrame. getFileName()Returns the name of the source file containing the execution point represented by this stack frame.StringPackage. getImplementationTitle()Return the title of this package.StringPackage. getImplementationVendor()Returns the vendor that implemented this package,nullis returned if it is not known.StringPackage. getImplementationVersion()Return the version of this implementation.StringThrowable. getLocalizedMessage()Creates a localized description of this throwable.StringNullPointerException. getMessage()Returns the detail message string of this throwable.StringThrowable. getMessage()Returns the detail message string of this throwable.StringStackTraceElement. getMethodName()Returns the name of the method containing the execution point represented by this stack trace element.StringStackWalker.StackFrame. getMethodName()Gets the name of the method represented by this stack frame.StringStackTraceElement. getModuleName()Returns the module name of the module containing the execution point represented by this stack trace element.StringStackTraceElement. 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 Unicode name of the specified charactercodePoint, or null if the code point isunassigned.StringClass. getName()Returns the name of the entity (class, interface, array class, primitive type, or void) represented by thisClassobject, as aString.StringClassLoader. getName()Returns the name of this class loader ornullif this class loader is not named.StringModule. getName()Returns the module name ornullif this module is an unnamed module.StringPackage. getName()Return the name of this package.StringSystem.Logger. getName()Returns the name of this logger.StringSystem.Logger.Level. getName()Returns the name of this level.StringThread. getName()Returns this thread's name.StringThreadGroup. getName()Returns the name of this thread group.StringClass. 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.StringClass. getSimpleName()Returns the simple name of the underlying class as given in the source code.StringPackage. getSpecificationTitle()Return the title of the specification that this package implements.StringPackage. getSpecificationVendor()Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package.StringPackage. getSpecificationVersion()Returns the version number of the specification that this package implements.StringClass. getTypeName()Return an informative string for the name of this type.StringString. indent(int n)Adjusts the indentation of each line of this string based on the value ofn, and normalizes line termination characters.StringString. intern()Returns a canonical representation for the string object.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.StringEnum. name()Returns the name of this enum constant, exactly as declared in its enum declaration.StringString. repeat(int count)Returns a string whose value is the concatenation of this string repeatedcounttimes.StringString. replace(char oldChar, char newChar)Returns a string resulting from replacing all occurrences ofoldCharin this string withnewChar.StringString. replace(CharSequence target, CharSequence replacement)Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.StringString. replaceAll(String regex, String replacement)Replaces each substring of this string that matches the given regular expression with the given replacement.StringString. replaceFirst(String regex, String replacement)Replaces the first substring of this string that matches the given regular expression with the given replacement.StringString. 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.Stringsince()Returns the version in which the annotated element became deprecated.String[]String. split(String regex)Splits this string around matches of the given regular expression.String[]String. split(String regex, int limit)Splits this string around matches of the given regular expression.StringString. strip()Returns a string whose value is this string, with all leading and trailing white space removed.StringString. stripIndent()Associated with text blocks, a preview feature of the Java language.
Returns a string whose value is this string, with incidental white space removed from the beginning and end of every line.StringString. stripLeading()Returns a string whose value is this string, with all leading white space removed.StringString. stripTrailing()Returns a string whose value is this string, with all trailing white space removed.StringString. substring(int beginIndex)Returns a string that is a substring of this string.StringString. substring(int beginIndex, int endIndex)Returns a string that is a substring of this string.StringStringBuffer. substring(int start)StringStringBuffer. 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.StringClass. 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.StringString. toLowerCase()Converts all of the characters in thisStringto lower case using the rules of the default locale.StringString. 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.StringBoolean. toString()Returns aStringobject representing this Boolean's value.static StringBoolean. toString(boolean b)Returns aStringobject representing the specified boolean.StringByte. toString()Returns aStringobject representing thisByte's value.static StringByte. toString(byte b)Returns a newStringobject representing the specifiedbyte.StringCharacter.Subset. toString()Returns the name of this subset.StringCharacter. 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).StringCharSequence. toString()Returns a string containing the characters in this sequence in the same order as this sequence.StringClass. toString()Converts the object to a string.StringDouble. toString()Returns a string representation of thisDoubleobject.static StringDouble. toString(double d)Returns a string representation of thedoubleargument.StringEnum. toString()Returns the name of this enum constant, as contained in the declaration.StringFloat. toString()Returns a string representation of thisFloatobject.static StringFloat. toString(float f)Returns a string representation of thefloatargument.StringInteger. 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.StringLong. 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.StringModule. toString()Returns the string representation of this module.StringModuleLayer. toString()Returns a string describing this module layer.StringObject. toString()Returns a string representation of the object.StringPackage. toString()Returns the string representation of this Package.abstract StringRecord. toString()Obeys the general contract ofObject.toString.StringRuntime.Version. toString()Returns a string representation of this version.StringShort. toString()Returns aStringobject representing thisShort's value.static StringShort. toString(short s)Returns a newStringobject representing the specifiedshort.StringStackTraceElement. toString()Returns a string representation of this stack trace element.StringString. toString()This object (which is already a string!)StringThread. toString()Returns a string representation of this thread, including the thread's name, priority, and thread group.StringThreadGroup. toString()Returns a string representation of this Thread group.StringThrowable. 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.StringString. toUpperCase()Converts all of the characters in thisStringto upper case using the rules of the default locale.StringString. toUpperCase(Locale locale)Converts all of the characters in thisStringto upper case using the rules of the givenLocale.StringString. translateEscapes()Associated with text blocks, a preview feature of the Java language.
Returns a string whose value is this string, with escape sequences translated as if in a string literal.StringString. 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).StringTypeNotPresentException. typeName()Returns the fully qualified name of the unavailable type.String[]value()The set of warnings that are to be suppressed by the compiler in the annotated element.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 StringString. valueOf(Object obj)Returns the string representation of theObjectargument.Methods in java.lang that return types with arguments of type String Modifier and Type Method Description List<String>ProcessBuilder. command()Returns this process builder's operating system program and arguments.Optional<String>ProcessHandle.Info. command()Returns the executable pathname of the process.Optional<String>ProcessHandle.Info. commandLine()Returns the command line of the process.Optional<String>String. describeConstable()Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.Map<String,String>ProcessBuilder. environment()Returns a string map view of this process builder's environment.Map<String,String>ProcessBuilder. environment()Returns a string map view of this process builder's environment.static Map<String,String>System. getenv()Returns an unmodifiable string map view of the current system environment.static Map<String,String>System. getenv()Returns an unmodifiable string map view of the current system environment.Set<String>Module. getPackages()Returns the set of package names for the packages in this module.Stream<String>String. lines()Returns a stream of lines extracted from this string, separated by line terminators.Optional<String>Runtime.Version. optional()Returns optional additional identifying build information.Optional<String>Runtime.Version. pre()Returns the optional pre-release information.Optional<String>ProcessHandle.Info. user()Return the user of the process.Methods in java.lang with parameters of type String Modifier and Type Method Description ModuleModule. 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.ControllerModuleLayer.Controller. addExports(Module source, String pn, Module target)Updates modulesourcein the layer to export a package to moduletarget.ModuleModule. addOpens(String pn, Module other)If this module has opened a package to at least the caller module then update this module to open the package to the given module.ModuleLayer.ControllerModuleLayer.Controller. addOpens(Module source, String pn, Module target)Updates modulesourcein the layer to open a package to moduletarget.StringBufferStringBuffer. append(String str)StringBuilderStringBuilder. append(String str)voidSecurityManager. checkAccept(String host, int port)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)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)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)Throws aSecurityExceptionif the calling thread is not allowed to delete the specified file.voidSecurityManager. checkExec(String cmd)Throws aSecurityExceptionif the calling thread is not allowed to create a subprocess.voidSecurityManager. checkLink(String lib)Throws aSecurityExceptionif the calling thread is not allowed to dynamic link the library code specified by the string argument file.voidSecurityManager. checkPackageAccess(String pkg)Throws aSecurityExceptionif the calling thread is not allowed to access the specified package.voidSecurityManager. checkPackageDefinition(String pkg)Throws aSecurityExceptionif the calling thread is not allowed to define classes in the specified package.voidSecurityManager. checkPropertyAccess(String key)Throws aSecurityExceptionif the calling thread is not allowed to access the system property with the specifiedkeyname.voidSecurityManager. checkRead(String file)Throws aSecurityExceptionif the calling thread is not allowed to read the file specified by the string argument.voidSecurityManager. checkRead(String file, Object context)Throws aSecurityExceptionif the specified security context is not allowed to read the file specified by the string argument.voidSecurityManager. checkSecurityAccess(String target)Determines whether the permission with the specified permission target name should be granted or denied.voidSecurityManager. checkWrite(String file)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 Unicode character name.ProcessBuilderProcessBuilder. command(String... command)Sets this process builder's operating system program and arguments.intString. compareTo(String anotherString)Compares two strings lexicographically.intString. compareToIgnoreCase(String str)Compares two strings lexicographically, ignoring case differences.static booleanCompiler. compileClasses(String string)Deprecated, for removal: This API element is subject to removal in a future version.Compiles all classes whose name matches the specified string.StringString. concat(String str)Concatenates the specified string to the end of this string.static ByteByte. decode(String nm)Decodes aStringinto aByte.static IntegerInteger. decode(String nm)Decodes aStringinto anInteger.static LongLong. decode(String nm)Decodes aStringinto aLong.static ShortShort. decode(String nm)Decodes aStringinto aShort.protected Class<?>ClassLoader. defineClass(String name, byte[] b, int off, int len)Converts an array of bytes into an instance of classClass.protected 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 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.booleanString. endsWith(String suffix)Tests if this string ends with the specified suffix.booleanString. equalsIgnoreCase(String anotherString)Compares thisStringto anotherString, ignoring case considerations.ProcessRuntime. exec(String command)Executes the specified string command in a separate process.ProcessRuntime. exec(String[] cmdarray)Executes the specified command and arguments in a separate process.ProcessRuntime. exec(String[] cmdarray, String[] envp)Executes the specified command and arguments in a separate process with the specified environment.ProcessRuntime. exec(String[] cmdarray, String[] envp, File dir)Executes the specified command and arguments in a separate process with the specified environment and working directory.ProcessRuntime. exec(String command, String[] envp)Executes the specified string command in a separate process with the specified environment.ProcessRuntime. exec(String command, String[] envp, File dir)Executes the specified string command in a separate process with the specified environment and working directory.protected Class<?>ClassLoader. findClass(String name)Finds the class with the specified binary name.protected Class<?>ClassLoader. findClass(String moduleName, String name)Finds the class with the given binary name in a module defined to this class loader.protected StringClassLoader. findLibrary(String libname)Returns the absolute path name of a native library.protected Class<?>ClassLoader. findLoadedClass(String name)Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.ClassLoaderModuleLayer. findLoader(String name)Returns theClassLoaderfor the module with the given name.Optional<Module>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 Class<?>ClassLoader. findSystemClass(String name)Finds a class with the specified binary name, loading it if necessary.static StringString. format(String format, Object... args)Returns a formatted string using the specified format string and arguments.static StringString. format(Locale l, String format, Object... args)Returns a formatted string using the specified locale, format string, and arguments.static Character.UnicodeBlockCharacter.UnicodeBlock. forName(String blockName)Returns the UnicodeBlock with the given name.static Character.UnicodeScriptCharacter.UnicodeScript. forName(String scriptName)Returns the UnicodeScript constant with the given Unicode script name or the script name alias.static Class<?>Class. forName(Module module, String name)Returns theClasswith the given binary name in the given module.static Class<?>Class. forName(String className)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[]String. getBytes(String charsetName)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.FieldClass. getDeclaredField(String name)Returns aFieldobject that reflects the specified declared field of the class or interface represented by thisClassobject.MethodClass. getDeclaredMethod(String name, Class<?>... parameterTypes)Returns aMethodobject that reflects the specified declared method of the class or interface represented by thisClassobject.PackageClassLoader. getDefinedPackage(String name)Returns aPackageof the given name that has been defined by this class loader.static StringSystem. getenv(String name)Gets the value of the specified environment variable.FieldClass. getField(String name)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.LoggerSystem.LoggerFinder. getLocalizedLogger(String name, ResourceBundle bundle, Module module)Returns a localizable instance ofLoggerfor the givenmodule.static System.LoggerSystem. getLogger(String name)Returns 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.LoggerSystem.LoggerFinder. getLogger(String name, Module module)Returns an instance ofLoggerfor the givenmodule.static LongLong. getLong(String nm)Determines thelongvalue of the system property with the specified name.static LongLong. getLong(String nm, long val)Determines thelongvalue of the system property with the specified name.static LongLong. getLong(String nm, Long val)Returns thelongvalue of the system property with the specified name.MethodClass. getMethod(String name, Class<?>... parameterTypes)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.URLClass. getResource(String name)Finds a resource with a given name.URLClassLoader. getResource(String name)Finds the resource with the given name.InputStreamClass. getResourceAsStream(String name)Finds a resource with a given name.InputStreamClassLoader. getResourceAsStream(String name)Returns an input stream for reading the specified resource.InputStreamModule. getResourceAsStream(String name)Returns an input stream for reading a resource in this module.Enumeration<URL>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.intString. indexOf(String str)Returns the index within this string of the first occurrence of the specified substring.intString. indexOf(String str, int fromIndex)Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.intStringBuffer. indexOf(String str)intStringBuffer. indexOf(String str, int fromIndex)intStringBuilder. indexOf(String str)intStringBuilder. indexOf(String str, int fromIndex)StringBufferStringBuffer. insert(int offset, String str)StringBuilderStringBuilder. insert(int offset, String str)booleanPackage. 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.booleanModule. isOpen(String pn)Returnstrueif this module has opened a package unconditionally.booleanModule. isOpen(String pn, Module other)Returnstrueif 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)voidRuntime. load(String filename)Loads the native library specified by the filename argument.static voidSystem. load(String filename)Loads the native library specified by the filename argument.Class<?>ClassLoader. loadClass(String name)Loads the class with the specified binary name.protected Class<?>ClassLoader. loadClass(String name, boolean resolve)Loads the class with the specified binary name.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.booleanString. matches(String regex)Tells whether or not this string matches the given regular expression.static <E extends Enum<E>>
Enum.EnumDesc<E>Enum.EnumDesc. of(ClassDesc enumClass, String constantName)Returns a nominal descriptor for the specifiedenumclass and namestatic Runtime.VersionRuntime.Version. parse(String s)Parses 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 byteByte. parseByte(String s)Parses the string argument as a signed decimalbyte.static byteByte. parseByte(String s, int radix)Parses 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 intInteger. parseInt(String s)Parses the string argument as a signed decimal integer.static intInteger. parseInt(String s, int radix)Parses the string argument as a signed integer in the radix specified by the second argument.static longLong. parseLong(String s)Parses the string argument as a signed decimallong.static longLong. parseLong(String s, int radix)Parses 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.StringBufferStringBuffer. replace(int start, int end, String str)StringBuilderStringBuilder. replace(int start, int end, String str)StringString. replaceAll(String regex, String replacement)Replaces each substring of this string that matches the given regular expression with the given replacement.StringString. replaceFirst(String regex, String replacement)Replaces the first substring of this string that matches the given regular expression with the given replacement.Stream<URL>ClassLoader. resources(String name)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.voidThread. setName(String name)Changes 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[]String. split(String regex)Splits this string around matches of the given regular expression.String[]String. split(String regex, int limit)Splits this string around matches of the given regular expression.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 BooleanBoolean. valueOf(String s)Returns aBooleanwith a value represented by the specified string.static ByteByte. valueOf(String s)Returns aByteobject holding the value given by the specifiedString.static ByteByte. valueOf(String s, int radix)Returns aByteobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static Character.UnicodeScriptCharacter.UnicodeScript. valueOf(String name)Returns the enum constant of this type with the specified name.static DoubleDouble. valueOf(String s)Returns aDoubleobject holding thedoublevalue represented by the argument strings.static <T extends Enum<T>>
TEnum. valueOf(Class<T> enumType, String name)Returns the enum constant of the specified enum type with the specified name.static FloatFloat. valueOf(String s)Returns aFloatobject holding thefloatvalue represented by the argument strings.static IntegerInteger. valueOf(String s)Returns anIntegerobject holding the value of the specifiedString.static IntegerInteger. valueOf(String s, int radix)Returns anIntegerobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static LongLong. valueOf(String s)Returns aLongobject holding the value of the specifiedString.static LongLong. valueOf(String s, int radix)Returns aLongobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static ProcessBuilder.Redirect.TypeProcessBuilder.Redirect.Type. valueOf(String name)Returns the enum constant of this type with the specified name.static ShortShort. valueOf(String s)Returns aShortobject holding the value given by the specifiedString.static ShortShort. valueOf(String s, int radix)Returns aShortobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.static StackWalker.OptionStackWalker.Option. valueOf(String name)Returns the enum constant of this type with the specified name.static System.Logger.LevelSystem.Logger.Level. valueOf(String name)Returns the enum constant of this type with the specified name.static Thread.StateThread.State. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.lang with type arguments of type String Modifier and Type Method Description ProcessBuilderProcessBuilder. command(List<String> command)Sets this process builder's operating system program and arguments.ModuleLayerModuleLayer. 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.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.<R> RString. transform(Function<? super String,? extends R> f)This method allows the application of a function tothisstring.Constructors in java.lang with parameters of type String Constructor Description AbstractMethodError(String s)Constructs anAbstractMethodErrorwith the specified detail message.ArithmeticException(String s)Constructs anArithmeticExceptionwith the specified detail message.ArrayIndexOutOfBoundsException(String s)Constructs anArrayIndexOutOfBoundsExceptionclass with the specified detail message.ArrayStoreException(String s)Constructs anArrayStoreExceptionwith the specified detail message.AssertionError(String message, Throwable cause)Constructs a newAssertionErrorwith the specified detail message and cause.Boolean(String s)Deprecated.It is rarely appropriate to use this constructor.BootstrapMethodError(String s)Constructs aBootstrapMethodErrorwith the specified detail message.BootstrapMethodError(String s, Throwable cause)Constructs aBootstrapMethodErrorwith the specified detail message and cause.Byte(String s)Deprecated.It is rarely appropriate to use this constructor.ClassCastException(String s)Constructs aClassCastExceptionwith the specified detail message.ClassCircularityError(String s)Constructs aClassCircularityErrorwith the specified detail message.ClassFormatError(String s)Constructs aClassFormatErrorwith the specified detail message.ClassLoader(String name, ClassLoader parent)Creates a new class loader of the specified name and using the specified parent class loader for delegation.ClassNotFoundException(String s)Constructs aClassNotFoundExceptionwith the specified detail message.ClassNotFoundException(String s, Throwable ex)Constructs aClassNotFoundExceptionwith the specified detail message and optional exception that was raised while loading the class.CloneNotSupportedException(String s)Constructs aCloneNotSupportedExceptionwith the specified detail message.Double(String s)Deprecated.It is rarely appropriate to use this constructor.Enum(String name, int ordinal)Sole constructor.EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)Constructs anEnumConstantNotPresentExceptionfor the specified constant.Error(String message)Constructs a new error with the specified detail message.Error(String message, Throwable cause)Constructs a new error with the specified detail message and cause.Error(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new error with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.Exception(String message)Constructs a new exception with the specified detail message.Exception(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.Exception(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.ExceptionInInitializerError(String s)Constructs anExceptionInInitializerErrorwith the specified detail message string.Float(String s)Deprecated.It is rarely appropriate to use this constructor.IllegalAccessError(String s)Constructs anIllegalAccessErrorwith the specified detail message.IllegalAccessException(String s)Constructs anIllegalAccessExceptionwith a detail message.IllegalArgumentException(String s)Constructs anIllegalArgumentExceptionwith the specified detail message.IllegalArgumentException(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.IllegalCallerException(String s)Constructs an IllegalCallerException with the specified detail message.IllegalCallerException(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.IllegalMonitorStateException(String s)Constructs anIllegalMonitorStateExceptionwith the specified detail message.IllegalStateException(String s)Constructs an IllegalStateException with the specified detail message.IllegalStateException(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.IllegalThreadStateException(String s)Constructs anIllegalThreadStateExceptionwith the specified detail message.IncompatibleClassChangeError(String s)Constructs anIncompatibleClassChangeErrorwith the specified detail message.IndexOutOfBoundsException(String s)Constructs anIndexOutOfBoundsExceptionwith the specified detail message.InstantiationError(String s)Constructs anInstantiationErrorwith the specified detail message.InstantiationException(String s)Constructs anInstantiationExceptionwith the specified detail message.Integer(String s)Deprecated.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.InterruptedException(String s)Constructs anInterruptedExceptionwith the specified detail message.LayerInstantiationException(String msg)Constructs aLayerInstantiationExceptionwith the given detail message.LayerInstantiationException(String msg, Throwable cause)Constructs aLayerInstantiationExceptionwith the given detail message and cause.LinkageError(String s)Constructs aLinkageErrorwith the specified detail message.LinkageError(String s, Throwable cause)Constructs aLinkageErrorwith the specified detail message and cause.Long(String s)Deprecated.It is rarely appropriate to use this constructor.NegativeArraySizeException(String s)Constructs aNegativeArraySizeExceptionwith the specified detail message.NoClassDefFoundError(String s)Constructs aNoClassDefFoundErrorwith the specified detail message.NoSuchFieldError(String s)Constructs aNoSuchFieldErrorwith the specified detail message.NoSuchFieldException(String s)Constructor with a detail message.NoSuchMethodError(String s)Constructs aNoSuchMethodErrorwith the specified detail message.NoSuchMethodException(String s)Constructs aNoSuchMethodExceptionwith a detail message.NullPointerException(String s)Constructs aNullPointerExceptionwith the specified detail message.NumberFormatException(String s)Constructs aNumberFormatExceptionwith the specified detail message.OutOfMemoryError(String s)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.RuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.RuntimePermission(String name)Creates a new RuntimePermission with the specified name.RuntimePermission(String name, String actions)Creates a new RuntimePermission object with the specified name.SecurityException(String s)Constructs aSecurityExceptionwith the specified detail message.SecurityException(String message, Throwable cause)Creates aSecurityExceptionwith the specified detail message and cause.Short(String s)Deprecated.It is rarely appropriate to use this constructor.StackOverflowError(String s)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.String(byte[] bytes, int offset, int length, String charsetName)Constructs a newStringby decoding the specified subarray of bytes using the specified charset.String(byte[] bytes, String charsetName)Constructs a newStringby decoding the specified array of bytes using the specified charset.String(String original)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.StringIndexOutOfBoundsException(String s)Constructs aStringIndexOutOfBoundsExceptionwith the specified detail message.Subset(String name)Constructs a newSubsetinstance.Thread(Runnable target, String name)Allocates a newThreadobject.Thread(String name)Allocates a newThreadobject.Thread(ThreadGroup group, Runnable target, String name)Allocates a newThreadobject so that it hastargetas its run object, has the specifiednameas its name, and belongs to the thread group referred to bygroup.Thread(ThreadGroup group, Runnable target, String name, long stackSize)Allocates a newThreadobject so that it hastargetas 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 target, String name, long stackSize, boolean inheritThreadLocals)Allocates a newThreadobject so that it hastargetas 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)Allocates a newThreadobject.ThreadGroup(String name)Constructs a new thread group.ThreadGroup(ThreadGroup parent, String name)Creates a new thread group.Throwable(String message)Constructs a new throwable with the specified detail message.Throwable(String message, Throwable cause)Constructs a new throwable with the specified detail message and cause.Throwable(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new throwable with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.TypeNotPresentException(String typeName, Throwable cause)Constructs aTypeNotPresentExceptionfor the named type with the specified cause.UnknownError(String s)Constructs anUnknownErrorwith the specified detail message.UnsatisfiedLinkError(String s)Constructs anUnsatisfiedLinkErrorwith the specified detail message.UnsupportedClassVersionError(String s)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.VerifyError(String s)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.Constructor parameters in java.lang with type arguments of type String Constructor Description ProcessBuilder(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 String Modifier and Type Method Description StringIncompleteAnnotationException. elementName()Returns the name of the missing element.StringAnnotationTypeMismatchException. foundType()Returns the type of data found in the incorrectly typed element.StringAnnotation. toString()Returns a string representation of this annotation.Methods in java.lang.annotation with parameters of type String Modifier and Type Method Description static ElementTypeElementType. valueOf(String name)Returns the enum constant of this type with the specified name.static RetentionPolicyRetentionPolicy. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.lang.annotation with parameters of type String Constructor Description AnnotationFormatError(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 type. -
Uses of String in java.lang.constant
Fields in java.lang.constant declared as String Modifier and Type Field Description static 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.Methods in java.lang.constant that return String Modifier and Type Method Description StringDynamicConstantDesc. constantName()Returns the name that would appear in theNameAndTypeoperand of theLDCfor this constant.StringClassDesc. descriptorString()Returns a field type descriptor string for this typedefault StringMethodTypeDesc. 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.StringDynamicCallSiteDesc. invocationName()Returns the invocation name that would appear in theNameAndTypeoperand of theinvokedynamic.StringDirectMethodHandleDesc. lookupDescriptor()Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode.StringDirectMethodHandleDesc. methodName()Returns the name of the method or field described by this nominal descriptor.default StringClassDesc. packageName()Returns the package name of this ClassDesc, if it describes a class or interface type.StringDynamicCallSiteDesc. 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.StringDynamicConstantDesc. 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 String Modifier and Type Method Description default ClassDescClassDesc. nested(String nestedName)default ClassDescClassDesc. nested(String firstNestedName, String... moreNestedNames)static ClassDescClassDesc. of(String name)Returns a ClassDesc for a class or interface type, given the name of the class or interface, such as"java.lang.String".static ClassDescClassDesc. of(String packageName, String className)Returns 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 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 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.KindDirectMethodHandleDesc.Kind. valueOf(String name)Returns the enum constant of this type with the specified name.DynamicCallSiteDescDynamicCallSiteDesc. 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 String Constructor Description DynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs)Creates a nominal descriptor for a dynamic constant. -
Uses of String in java.lang.instrument
Methods in java.lang.instrument with parameters of type String Modifier and Type Method Description voidInstrumentation. 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 String Modifier and Type Method Description voidInstrumentation. 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 String Constructor Description IllegalClassFormatException(String s)Constructs anIllegalClassFormatExceptionwith the specified detail message.UnmodifiableClassException(String s)Constructs anUnmodifiableClassExceptionwith the specified detail message.UnmodifiableModuleException(String msg)Constructs anUnmodifiableModuleExceptionwith the specified detail message. -
Uses of String in java.lang.invoke
Methods in java.lang.invoke that return String Modifier and Type Method Description StringMethodType. descriptorString()Return a field type descriptor string for this typeStringTypeDescriptor. descriptorString()Return the type descriptor string for this instance, which must be either a field type descriptor (JVMS 4.3.2) or method type descriptor (JVMS 4.3.3).StringSerializedLambda. getCapturingClass()Get the name of the class that captured this lambda.StringSerializedLambda. getFunctionalInterfaceClass()Get the name of the invoked type to which this lambda has been convertedStringSerializedLambda. getFunctionalInterfaceMethodName()Get the name of the primary method for the functional interface to which this lambda has been converted.StringSerializedLambda. getFunctionalInterfaceMethodSignature()Get the signature of the primary method for the functional interface to which this lambda has been converted.StringSerializedLambda. getImplClass()Get the name of the class containing the implementation method.StringSerializedLambda. getImplMethodName()Get the name of the implementation method.StringSerializedLambda. getImplMethodSignature()Get the signature of the implementation method.StringSerializedLambda. getInstantiatedMethodType()Get the signature of the primary functional interface method after type variables are substituted with their instantiation from the capture site.StringMethodHandleInfo. getName()Returns the name of the cracked method handle's underlying member.StringVarHandle.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.StringMethodType. toMethodDescriptorString()Produces a bytecode descriptor representation of the method type.StringMethodHandle. 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.StringMethodHandles.Lookup. toString()Displays the name of the class from which lookups are to be made.StringMethodType. toString()Returns a string representation of the method type, of the form"(PT0,PT1...)RT".StringVarHandle. toString()Returns a compact textual description of this VarHandle, including the type of variable described, and a description of its coordinates.StringVarHandle.VarHandleDesc. toString()Returns a compact textual description of this constant description.Methods in java.lang.invoke with parameters of type String Modifier and Type Method Description static CallSiteLambdaMetafactory. altMetafactory(MethodHandles.Lookup caller, String invokedName, MethodType invokedType, 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.MethodHandleMethodHandles.Lookup. bind(Object receiver, String name, MethodType type)Produces an early-bound method handle for a non-static method.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 VarHandleConstantBootstraps. fieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType)Finds aVarHandlefor an instance field.Class<?>MethodHandles.Lookup. findClass(String targetName)Looks up a class by name from the lookup context defined by thisLookupobject, as if resolved by anldcinstruction.MethodHandleMethodHandles.Lookup. findGetter(Class<?> refc, String name, Class<?> type)Produces a method handle giving read access to a non-static field.MethodHandleMethodHandles.Lookup. findSetter(Class<?> refc, String name, Class<?> type)Produces a method handle giving write access to a non-static field.MethodHandleMethodHandles.Lookup. findSpecial(Class<?> refc, String name, MethodType type, Class<?> specialCaller)Produces an early-bound method handle for a virtual method.MethodHandleMethodHandles.Lookup. findStatic(Class<?> refc, String name, MethodType type)Produces a method handle for a static method.MethodHandleMethodHandles.Lookup. findStaticGetter(Class<?> refc, String name, Class<?> type)Produces a method handle giving read access to a static field.MethodHandleMethodHandles.Lookup. findStaticSetter(Class<?> refc, String name, Class<?> type)Produces a method handle giving write access to a static field.VarHandleMethodHandles.Lookup. findStaticVarHandle(Class<?> decl, String name, Class<?> type)Produces a VarHandle giving access to a static fieldnameof typetypedeclared in a class of typedecl.VarHandleMethodHandles.Lookup. findVarHandle(Class<?> recv, String name, Class<?> type)Produces a VarHandle giving access to a non-static fieldnameof typetypedeclared in a class of typerecv.MethodHandleMethodHandles.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, given the spelling of its bytecode descriptor.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 invokedName, MethodType invokedType, MethodType samMethodType, MethodHandle implMethod, MethodType instantiatedMethodType)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.VarHandleDescVarHandle.VarHandleDesc. ofField(ClassDesc declaringClass, String name, ClassDesc fieldType)Returns 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.static VarHandle.AccessModeVarHandle.AccessMode. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.lang.invoke with parameters of type String Constructor Description LambdaConversionException(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.StringConcatException(String msg)Constructs an exception with a messageStringConcatException(String msg, Throwable cause)Constructs an exception with a message and a linked throwableWrongMethodTypeException(String s)Constructs aWrongMethodTypeExceptionwith the specified detail message. -
Uses of String in java.lang.management
Fields in java.lang.management declared as String Modifier and Type Field Description static StringManagementFactory. CLASS_LOADING_MXBEAN_NAMEString representation of theObjectNamefor theClassLoadingMXBean.static StringManagementFactory. COMPILATION_MXBEAN_NAMEString representation of theObjectNamefor theCompilationMXBean.static StringManagementFactory. GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aGarbageCollectorMXBean.static 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 StringManagementFactory. MEMORY_MANAGER_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aMemoryManagerMXBean.static StringManagementFactory. MEMORY_MXBEAN_NAMEString representation of theObjectNamefor theMemoryMXBean.static StringManagementFactory. MEMORY_POOL_MXBEAN_DOMAIN_TYPEThe domain name and the type key property in theObjectNamefor aMemoryPoolMXBean.static StringMemoryNotificationInfo. MEMORY_THRESHOLD_EXCEEDEDNotification type denoting that the memory usage of a memory pool has reached or exceeded its usage threshold value.static StringManagementFactory. OPERATING_SYSTEM_MXBEAN_NAMEString representation of theObjectNamefor theOperatingSystemMXBean.static StringManagementFactory. RUNTIME_MXBEAN_NAMEString representation of theObjectNamefor theRuntimeMXBean.static StringManagementFactory. THREAD_MXBEAN_NAMEString representation of theObjectNamefor theThreadMXBean.Methods in java.lang.management that return String Modifier and Type Method Description StringOperatingSystemMXBean. getArch()Returns the operating system architecture.StringRuntimeMXBean. getBootClassPath()Returns the boot class path that is used by the bootstrap class loader to search for class files.StringLockInfo. getClassName()Returns the fully qualified name of the class of the lock object.StringRuntimeMXBean. getClassPath()Returns the Java class path that is used by the system class loader to search for class files.StringRuntimeMXBean. getLibraryPath()Returns the Java library path.StringThreadInfo. getLockName()Returns thestring representationof an object for which the thread associated with thisThreadInfois blocked waiting.StringThreadInfo. getLockOwnerName()Returns the name of the thread which owns the object for which the thread associated with thisThreadInfois blocked waiting.StringPlatformLoggingMXBean. getLoggerLevel(String loggerName)Gets the name of the log level associated with the specified logger.StringRuntimeMXBean. 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.StringBufferPoolMXBean. getName()Returns the name representing this buffer pool.StringCompilationMXBean. getName()Returns the name of the Just-in-time (JIT) compiler.StringMemoryManagerMXBean. getName()Returns the name representing this memory manager.StringMemoryPoolMXBean. getName()Returns the name representing this memory pool.StringOperatingSystemMXBean. getName()Returns the operating system name.StringRuntimeMXBean. getName()Returns the name representing the running Java virtual machine.StringPlatformLoggingMXBean. getParentLoggerName(String loggerName)Returns the name of the parent for the specified logger.StringMemoryNotificationInfo. getPoolName()Returns the name of the memory pool that triggers this notification.StringRuntimeMXBean. getSpecName()Returns the Java virtual machine specification name.StringRuntimeMXBean. getSpecVendor()Returns the Java virtual machine specification vendor.StringRuntimeMXBean. getSpecVersion()Returns the Java virtual machine specification version.StringThreadInfo. getThreadName()Returns the name of the thread associated with thisThreadInfo.StringOperatingSystemMXBean. getVersion()Returns the operating system version.StringRuntimeMXBean. getVmName()Returns the Java virtual machine implementation name.StringRuntimeMXBean. getVmVendor()Returns the Java virtual machine implementation vendor.StringRuntimeMXBean. getVmVersion()Returns the Java virtual machine implementation version.StringLockInfo. toString()Returns a string representation of a lock.StringMemoryType. toString()Returns the string representation of thisMemoryType.StringMemoryUsage. toString()Returns a descriptive representation of this memory usage.StringThreadInfo. toString()Returns a string representation of this thread info.Methods in java.lang.management that return types with arguments of type String Modifier and Type Method Description List<String>RuntimeMXBean. getInputArguments()Returns the input arguments passed to the Java virtual machine which does not include the arguments to themainmethod.List<String>PlatformLoggingMXBean. getLoggerNames()Returns the list of the currently registered logger names.Map<String,String>RuntimeMXBean. getSystemProperties()Returns a map of names and values of all system properties.Map<String,String>RuntimeMXBean. getSystemProperties()Returns a map of names and values of all system properties.Methods in java.lang.management with parameters of type String Modifier and Type Method Description StringPlatformLoggingMXBean. getLoggerLevel(String loggerName)Gets the name of the log level associated with the specified logger.StringPlatformLoggingMXBean. 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 MemoryTypeMemoryType. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.lang.management with parameters of type String Constructor Description LockInfo(String className, int identityHashCode)Constructs 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 String Modifier and Type Method Description StringModuleDescriptor. name()Returns the module name.StringModuleDescriptor.Requires. name()Return the module name.StringResolvedModule. name()Returns the module name.StringModuleDescriptor.Provides. service()Returns the fully qualified class name of the service type.StringModuleDescriptor.Exports. source()Returns the package name.StringModuleDescriptor.Opens. source()Returns the package name.StringModuleDescriptor. toNameAndVersion()Returns a string containing the module name and, if present, its version.StringConfiguration. toString()Returns a string describing this configuration.StringModuleDescriptor.Exports. toString()Returns a string describing the exported package.StringModuleDescriptor.Opens. toString()Returns a string describing the open package.StringModuleDescriptor.Provides. toString()Returns a string describing this provides.StringModuleDescriptor.Requires. toString()Returns a string describing this module dependence.StringModuleDescriptor. toString()Returns a string describing the module.StringModuleDescriptor.Version. toString()Returns the string from which this version was parsed.StringResolvedModule. toString()Returns a string describing this resolved module.Methods in java.lang.module that return types with arguments of type String Modifier and Type Method Description Stream<String>ModuleReader. list()Lists the contents of the module, returning a stream of elements that are the names of all resources in the module.Optional<String>ModuleDescriptor. mainClass()Returns the module main class.Set<String>ModuleDescriptor. packages()Returns the set of packages in the module.List<String>ModuleDescriptor.Provides. providers()Returns the list of the fully qualified class names of the providers or provider factories.Optional<String>ModuleDescriptor.Requires. rawCompiledVersion()Returns the string with the possibly-unparseable version of the module if recorded at compile-time.Optional<String>ModuleDescriptor. rawVersion()Returns the string with the possibly-unparseable version of the moduleSet<String>ModuleDescriptor.Exports. targets()For a qualified export, returns the non-empty and immutable set of the module names to which the package is exported.Set<String>ModuleDescriptor.Opens. targets()For a qualified opens, returns the non-empty and immutable set of the module names to which the package is open.Set<String>ModuleDescriptor. uses()Returns the set of service dependences.Methods in java.lang.module with parameters of type String Modifier and Type Method Description ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(String pn)Adds an exported package.ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(String pn, Set<String> targets)Adds an exported package.ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(Set<ModuleDescriptor.Exports.Modifier> ms, String pn)Adds an exported package with the given (and possibly empty) set of modifiers.ModuleDescriptor.BuilderModuleDescriptor.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.Optional<ModuleReference>ModuleFinder. find(String name)Finds a reference to a module of a given name.Optional<URI>ModuleReader. find(String name)Finds a resource, returning a URI to the resource in the module.Optional<ResolvedModule>Configuration. findModule(String name)Finds a resolved module in this configuration, or if not in this configuration, the parent configurations.ModuleDescriptor.BuilderModuleDescriptor.Builder. mainClass(String mc)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.BuilderModuleDescriptor. newModule(String name)Instantiates 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>ModuleReader. open(String name)Opens a resource, returning an input stream to read the resource in the module.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(String pn)Adds an open package.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(String pn, Set<String> targets)Adds an open package.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(Set<ModuleDescriptor.Opens.Modifier> ms, String pn)Adds an open package with the given (and possibly empty) set of modifiers.ModuleDescriptor.BuilderModuleDescriptor.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.VersionModuleDescriptor.Version. parse(String v)Parses the given string as a version string.ModuleDescriptor.BuilderModuleDescriptor.Builder. provides(String service, List<String> providers)Provides implementations of a service.default Optional<ByteBuffer>ModuleReader. read(String name)Reads a resource, returning a byte buffer with the contents of the resource.ModuleDescriptor.BuilderModuleDescriptor.Builder. requires(String mn)Adds a dependence on a module with an empty set of modifiers.ModuleDescriptor.BuilderModuleDescriptor.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.BuilderModuleDescriptor.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.ModuleDescriptor.BuilderModuleDescriptor.Builder. uses(String service)Adds a service dependence.static ModuleDescriptor.Exports.ModifierModuleDescriptor.Exports.Modifier. valueOf(String name)Returns the enum constant of this type with the specified name.static ModuleDescriptor.ModifierModuleDescriptor.Modifier. valueOf(String name)Returns the enum constant of this type with the specified name.static ModuleDescriptor.Opens.ModifierModuleDescriptor.Opens.Modifier. valueOf(String name)Returns the enum constant of this type with the specified name.static ModuleDescriptor.Requires.ModifierModuleDescriptor.Requires.Modifier. valueOf(String name)Returns the enum constant of this type with the specified name.ModuleDescriptor.BuilderModuleDescriptor.Builder. version(String vs)Sets the module version.Method parameters in java.lang.module with type arguments of type String Modifier and Type Method Description ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(String pn, Set<String> targets)Adds an exported package.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(String pn, Set<String> targets)Adds an open package.ModuleDescriptor.BuilderModuleDescriptor.Builder. packages(Set<String> pns)Adds packages to the module.ModuleDescriptor.BuilderModuleDescriptor.Builder. provides(String service, List<String> providers)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.ConfigurationConfiguration. 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.ConfigurationConfiguration. 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 String Constructor Description FindException(String msg)Constructs aFindExceptionwith the given detail message.FindException(String msg, Throwable cause)Constructs aFindExceptionwith the given detail message and cause.InvalidModuleDescriptorException(String msg)Constructs anInvalidModuleDescriptorExceptionwith the specified detail message.ResolutionException(String msg)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 String Modifier and Type Method Description StringRecordComponent. getGenericSignature()Returns aStringthat describes the generic type signature for this record component.StringConstructor. getName()Returns the name of this constructor, as a string.abstract StringExecutable. getName()Returns the name of the executable represented by this object.StringField. getName()Returns the name of the field represented by thisFieldobject.StringMember. getName()Returns the simple name of the underlying member or constructor represented by this Member.StringMethod. getName()Returns the name of the method represented by thisMethodobject, as aString.StringParameter. getName()Returns the name of the parameter.StringRecordComponent. getName()Returns the name of this record component.StringTypeVariable. 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.StringConstructor. toGenericString()Returns a string describing thisConstructor, including type parameters.abstract StringExecutable. toGenericString()Returns a string describing thisExecutable, including any type parameters.StringField. toGenericString()Returns a string describing thisField, including its generic type.StringMethod. toGenericString()Returns a string describing thisMethod, including type parameters.StringConstructor. toString()Returns a string describing thisConstructor.StringField. toString()Returns a string describing thisField.StringMethod. toString()Returns a string describing thisMethod.static StringModifier. toString(int mod)Return a string describing the access modifier flags in the specified modifier.StringParameter. toString()Returns a string describing this parameter.StringRecordComponent. toString()Returns a string describing this record component.Constructors in java.lang.reflect with parameters of type String Constructor Description GenericSignatureFormatError(String message)Constructs a newGenericSignatureFormatErrorwith the specified message.InaccessibleObjectException(String msg)Constructs anInaccessibleObjectExceptionwith the given detail message.InvocationTargetException(Throwable target, String s)Constructs a InvocationTargetException with a target exception and a detail message.MalformedParameterizedTypeException(String 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 String Modifier and Type Method Description static 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. -
Uses of String in java.math
Methods in java.math that return String Modifier and Type Method Description StringBigDecimal. toEngineeringString()Returns a string representation of thisBigDecimal, using engineering notation if an exponent is needed.StringBigDecimal. toPlainString()Returns a string representation of thisBigDecimalwithout an exponent field.StringBigDecimal. toString()Returns the string representation of thisBigDecimal, using scientific notation if an exponent is needed.StringBigInteger. toString()Returns the decimal String representation of this BigInteger.StringBigInteger. toString(int radix)Returns the String representation of this BigInteger in the given radix.StringMathContext. toString()Returns the string representation of thisMathContext.Methods in java.math with parameters of type String Modifier and Type Method Description static RoundingModeRoundingMode. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.math with parameters of type String Constructor Description BigDecimal(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
Fields in java.net declared as String Modifier and Type Field Description protected StringHttpURLConnection. methodThe HTTP method (GET,POST,PUT,etc.).protected StringHttpURLConnection. responseMessageThe HTTP response message.Methods in java.net that return String Modifier and Type Method Description static StringURLDecoder. decode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding.static StringURLDecoder. decode(String s, String enc)Decodes anapplication/x-www-form-urlencodedstring using a specific encoding scheme.static StringURLDecoder. decode(String s, Charset charset)Decodes anapplication/x-www-form-urlencodedstring using a specific Charset.static StringURLEncoder. encode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding.static StringURLEncoder. encode(String s, String enc)Translates a string intoapplication/x-www-form-urlencodedformat using a specific encoding scheme.static StringURLEncoder. encode(String s, Charset charset)Translates a string intoapplication/x-www-form-urlencodedformat using a specific Charset.StringSocketPermission. getActions()Returns the canonical string representation of the actions.StringURLPermission. getActions()Returns the normalized method list and request header list, in the form:StringURI. getAuthority()Returns the decoded authority component of this URI.StringURL. getAuthority()Gets the authority part of thisURL.StringInetAddress. 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.StringHttpCookie. getComment()Returns the comment describing the purpose of this cookie, ornullif the cookie has no comment.StringHttpCookie. getCommentURL()Returns the comment URL describing the purpose of this cookie, ornullif the cookie has no comment URL.StringURLConnection. getContentEncoding()Returns the value of thecontent-encodingheader field.StringURLConnection. getContentType()Returns the value of thecontent-typeheader field.StringFileNameMap. 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.StringNetworkInterface. getDisplayName()Get the display name of this network interface.StringHttpCookie. getDomain()Returns the domain name set for this cookie.StringJarURLConnection. getEntryName()Return the entry name for this connection.StringURL. getFile()Gets the file name of thisURL.StringURI. getFragment()Returns the decoded fragment component of this URI.StringHttpURLConnection. getHeaderField(int n)Returns the value for thenth header field.StringURLConnection. getHeaderField(int n)Returns the value for thenth header field.StringURLConnection. getHeaderField(String name)Returns the value of the named header field.StringHttpURLConnection. getHeaderFieldKey(int n)Returns the key for thenth header field.StringURLConnection. getHeaderFieldKey(int n)Returns the key for thenth header field.StringURI. getHost()Returns the host component of this URI.StringURL. getHost()Gets the host name of thisURL, if applicable.StringInet4Address. getHostAddress()Returns the IP address string in textual presentation form.StringInet6Address. getHostAddress()Returns the IP address string in textual presentation.StringInetAddress. getHostAddress()Returns the IP address string in textual presentation.StringInetAddress. getHostName()Gets the host name for this IP address.StringInetSocketAddress. getHostName()Gets thehostname.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).StringURISyntaxException. getInput()Returns the input string.StringHttpRetryException. getLocation()Returns the value of the Location header field if the error resulted from redirection.StringURISyntaxException. getMessage()Returns a string describing the parse error.StringHttpCookie. getName()Returns the name of the cookie.StringNetworkInterface. getName()Get the name of this network interface.StringHttpCookie. getPath()Returns the path on the server to which the browser returns this cookie.StringURI. getPath()Returns the decoded path component of this URI.StringURL. getPath()Gets the path part of thisURL.StringHttpCookie. getPortlist()Returns the port list attribute of the cookieStringURL. getProtocol()Gets the protocol name of thisURL.StringURI. getQuery()Returns the decoded query component of this URI.StringURL. getQuery()Gets the query part of thisURL.StringURI. getRawAuthority()Returns the raw authority component of this URI.StringURI. getRawFragment()Returns the raw fragment component of this URI.StringURI. getRawPath()Returns the raw path component of this URI.StringURI. getRawQuery()Returns the raw query component of this URI.StringURI. getRawSchemeSpecificPart()Returns the raw scheme-specific part of this URI.StringURI. getRawUserInfo()Returns the raw user-information component of this URI.StringHttpRetryException. getReason()Returns a string explaining why the http request could not be retried.StringURISyntaxException. getReason()Returns a string explaining why the input string could not be parsed.StringURL. getRef()Gets the anchor (also known as the "reference") of thisURL.protected StringAuthenticator. getRequestingHost()Gets thehostnameof the site or proxy requesting authentication, ornullif not available.protected StringAuthenticator. getRequestingPrompt()Gets the prompt string given by the requestor.protected StringAuthenticator. getRequestingProtocol()Give the protocol that's requesting the connection.protected StringAuthenticator. getRequestingScheme()Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).StringHttpURLConnection. getRequestMethod()Get the request method.StringURLConnection. getRequestProperty(String key)Returns the value of the named general request property for this connection.StringHttpURLConnection. getResponseMessage()Gets the HTTP response message, if any, returned along with the response code from a server.StringURI. getScheme()Returns the scheme component of this URI.StringURI. getSchemeSpecificPart()Returns the decoded scheme-specific part of this URI.StringURI. getUserInfo()Returns the decoded user-information component of this URI.StringURL. getUserInfo()Gets the userInfo part of thisURL.StringPasswordAuthentication. getUserName()Returns the user name.StringHttpCookie. 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.StringProtocolFamily. name()Returns the name of the protocol family.StringSocketOption. name()Returns the name of the socket option.static StringIDN. toASCII(String input)Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringIDN. toASCII(String input, int flag)Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.StringURI. toASCIIString()Returns the content of this URI as a US-ASCII string.StringURL. toExternalForm()Constructs a string representation of thisURL.protected StringURLStreamHandler. toExternalForm(URL u)Converts aURLof a specific protocol to aString.StringHttpCookie. 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.StringInetAddress. toString()Converts this IP address to aString.StringInetSocketAddress. toString()Constructs a string representation of this InetSocketAddress.StringInterfaceAddress. toString()Converts this Interface address to aString.StringProxy. toString()Constructs a string representation of this Proxy.StringServerSocket. toString()Returns the implementation address and implementation port of this socket as aString.StringSocket. toString()Converts this socket to aString.StringSocketImpl. toString()Returns the address and port of this socket as aString.StringURI. toString()Returns the content of this URI as a string.StringURL. toString()Constructs a string representation of thisURL.StringURLConnection. toString()Returns aStringrepresentation of this URL connection.static StringIDN. toUnicode(String input)Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static StringIDN. toUnicode(String input, int flag)Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.Methods in java.net that return types with arguments of type String Modifier and Type Method Description abstract Map<String,List<String>>CookieHandler. get(URI uri, Map<String,List<String>> requestHeaders)Gets all the applicable cookies from a cookie cache for the specified uri in the request header.abstract Map<String,List<String>>CookieHandler. get(URI uri, Map<String,List<String>> requestHeaders)Gets all the applicable cookies from a cookie cache for the specified uri in the request header.Map<String,List<String>>URLConnection. getHeaderFields()Returns an unmodifiable Map of the header fields.Map<String,List<String>>URLConnection. getHeaderFields()Returns an unmodifiable Map of the header fields.abstract Map<String,List<String>>CacheResponse. getHeaders()Returns the response headers as a Map.abstract Map<String,List<String>>CacheResponse. getHeaders()Returns the response headers as a Map.Map<String,List<String>>URLConnection. getRequestProperties()Returns an unmodifiable Map of general request properties for this connection.Map<String,List<String>>URLConnection. getRequestProperties()Returns an unmodifiable Map of general request properties for this connection.Methods in java.net with parameters of type String Modifier and Type Method Description voidURLConnection. addRequestProperty(String key, String value)Adds a general request property specified by a key-value pair.protected abstract voidSocketImpl. connect(String host, int port)Connects this socket to the specified port on the named host.static URIURI. create(String str)Creates a URI by parsing the given string.ContentHandlerContentHandlerFactory. 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.URLStreamHandlerURLStreamHandlerFactory. createURLStreamHandler(String protocol)Creates a newURLStreamHandlerinstance with the specified protocol.static StringURLDecoder. decode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding.static StringURLDecoder. decode(String s, String enc)Decodes anapplication/x-www-form-urlencodedstring using a specific encoding scheme.static StringURLDecoder. decode(String s, Charset charset)Decodes 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 StringURLEncoder. encode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding.static StringURLEncoder. encode(String s, String enc)Translates a string intoapplication/x-www-form-urlencodedformat using a specific encoding scheme.static StringURLEncoder. encode(String s, Charset charset)Translates a string intoapplication/x-www-form-urlencodedformat using a specific Charset.protected Class<?>URLClassLoader. findClass(String name)Finds and loads the class with the specified name from the URL search path.URLURLClassLoader. findResource(String name)Finds the resource with the specified name on the URL search path.Enumeration<URL>URLClassLoader. findResources(String name)Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.abstract CacheResponseResponseCache. get(URI uri, String rqstMethod, Map<String,List<String>> rqstHeaders)Retrieve 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 name service on the system.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 InetAddressInetAddress. getByName(String host)Determines the IP address of a host, given the host's name.static NetworkInterfaceNetworkInterface. getByName(String name)Searches for the network interface with the specified name.StringFileNameMap. 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.StringURLConnection. getHeaderField(String name)Returns the value of the named header field.longURLConnection. getHeaderFieldDate(String name, long Default)Returns the value of the named field parsed as date.intURLConnection. getHeaderFieldInt(String name, int Default)Returns the value of the named field parsed as a number.longURLConnection. getHeaderFieldLong(String name, long Default)Returns the value of the named field parsed as a number.StringURLConnection. getRequestProperty(String key)Returns the value of the named general request property for this connection.InputStreamURLClassLoader. 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 List<HttpCookie>HttpCookie. parse(String header)Constructs cookies from set-cookie or set-cookie2 header string.protected voidURLStreamHandler. parseURL(URL u, String spec, int start, int limit)Parses 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.PasswordAuthenticationAuthenticator. requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)Ask this authenticator for a password.URIURI. resolve(String str)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.voidHttpCookie. setDomain(String pattern)Specifies the domain within which this cookie should be presented.voidHttpCookie. setPath(String uri)Specifies 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 voidURLStreamHandler. setURL(URL u, String protocol, String host, int port, String file, String ref)Deprecated.Use setURL(URL, String, String, int, String, String, String, String);protected 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.voidHttpCookie. setValue(String newValue)Assigns a new value to a cookie after the cookie is created.static StringIDN. toASCII(String input)Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringIDN. toASCII(String input, int flag)Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.static StringIDN. toUnicode(String input)Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static StringIDN. toUnicode(String input, int flag)Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.static Authenticator.RequestorTypeAuthenticator.RequestorType. valueOf(String name)Returns the enum constant of this type with the specified name.static Proxy.TypeProxy.Type. valueOf(String name)Returns the enum constant of this type with the specified name.static StandardProtocolFamilyStandardProtocolFamily. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.net with type arguments of type String Modifier and Type Method Description abstract Map<String,List<String>>CookieHandler. get(URI uri, Map<String,List<String>> requestHeaders)Gets all the applicable cookies from a cookie cache for the specified uri in the request header.abstract Map<String,List<String>>CookieHandler. get(URI uri, Map<String,List<String>> requestHeaders)Gets all the applicable cookies from a cookie cache for the specified uri in the request header.abstract CacheResponseResponseCache. get(URI uri, String rqstMethod, Map<String,List<String>> rqstHeaders)Retrieve the cached response based on the requesting uri, request method and request headers.abstract CacheResponseResponseCache. get(URI uri, String rqstMethod, Map<String,List<String>> rqstHeaders)Retrieve the cached response based on the requesting uri, request method and request headers.abstract voidCookieHandler. put(URI uri, Map<String,List<String>> responseHeaders)Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.abstract voidCookieHandler. put(URI uri, Map<String,List<String>> responseHeaders)Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.Constructors in java.net with parameters of type String Constructor Description BindException(String msg)Constructs a new BindException with the specified detail message as to why the bind error occurred.ConnectException(String msg)Constructs a new ConnectException with the specified detail message as to why the connect error occurred.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.MalformedURLException(String msg)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.NoRouteToHostException(String msg)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.PortUnreachableException(String msg)Constructs a newPortUnreachableExceptionwith a detail message.ProtocolException(String message)Constructs a newProtocolExceptionwith the specified detail message.Socket(String host, int port)Creates a stream socket and connects it to the specified port number on the named host.Socket(String host, int port, boolean stream)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.SocketPermission(String host, String action)Creates a new SocketPermission object with the specified actions.SocketTimeoutException(String msg)Constructs a new SocketTimeoutException with a detail message.UnknownHostException(String message)Constructs a newUnknownHostExceptionwith the specified detail message.UnknownServiceException(String msg)Constructs a newUnknownServiceExceptionwith the specified detail message.URI(String str)Constructs a URI by parsing the given string.URI(String scheme, String ssp, String fragment)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.URI(String scheme, String host, String path, String fragment)Constructs a hierarchical URI from the given components.URI(String scheme, String authority, String path, String query, String fragment)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.URL(String spec)Creates aURLobject from theStringrepresentation.URL(String protocol, String host, int port, String file)Creates aURLobject from the specifiedprotocol,host,portnumber, andfile.URL(String protocol, String host, int port, String file, URLStreamHandler handler)Creates aURLobject from the specifiedprotocol,host,portnumber,file, andhandler.URL(String protocol, String host, String file)Creates a URL from the specifiedprotocolname,hostname, andfilename.URL(URL context, String spec)Creates a URL by parsing the given spec within a specified context.URL(URL context, String spec, URLStreamHandler handler)Creates a URL by parsing the given spec with the specified handler within a specified context.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 String Modifier and Type Method Description 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.Methods in java.net.http that return String Modifier and Type Method Description StringWebSocket. getSubprotocol()Returns the subprotocol used by this WebSocket.abstract StringHttpRequest. method()Returns the request method for this request.StringHttpHeaders. toString()Returns this HTTP headers as a string.Methods in java.net.http that return types with arguments of type String Modifier and Type Method Description List<String>HttpHeaders. allValues(String name)Returns an unmodifiable List of all of the header string values of the given named header.Optional<String>HttpHeaders. firstValue(String name)Returns anOptionalcontaining the first header string value of the given named (and possibly multi-valued) header.Map<String,List<String>>HttpHeaders. map()Returns an unmodifiable multi Map view of this HttpHeaders.Map<String,List<String>>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>>HttpResponse.BodySubscribers. ofLines(Charset charset)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>HttpResponse.BodyHandlers. ofString(Charset charset)Returns aBodyHandler<String>that returns aBodySubscriber<String>obtained fromBodySubscribers.ofString(Charset).static HttpResponse.BodySubscriber<String>HttpResponse.BodySubscribers. ofString(Charset charset)Returns a body subscriber which stores the response body as aStringconverted using the givenCharset.Methods in java.net.http with parameters of type String Modifier and Type Method Description List<String>HttpHeaders. allValues(String name)Returns an unmodifiable List of all of the header string values of the given named header.Optional<String>HttpHeaders. firstValue(String name)Returns anOptionalcontaining the first header string value of the given named (and possibly multi-valued) header.OptionalLongHttpHeaders. 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.HttpRequest.BuilderHttpRequest.Builder. header(String name, String value)Adds the given name value pair to the set of headers for this request.WebSocket.BuilderWebSocket.Builder. header(String name, String value)Adds the given name-value pair to the list of additional HTTP headers sent during the opening handshake.HttpRequest.BuilderHttpRequest.Builder. headers(String... headers)Adds the given name value pairs to the set of headers for this request.HttpRequest.BuilderHttpRequest.Builder. method(String method, HttpRequest.BodyPublisher bodyPublisher)Sets the request method and request body of this builder to the given values.static HttpRequest.BodyPublisherHttpRequest.BodyPublishers. ofString(String body)Returns a request body publisher whose body is the givenString, converted using theUTF_8character set.static HttpRequest.BodyPublisherHttpRequest.BodyPublishers. ofString(String s, Charset charset)Returns a request body publisher whose body is the givenString, converted using the given character set.default CompletionStage<?>WebSocket.Listener. onClose(WebSocket webSocket, int statusCode, String reason)Receives a Close message indicating the WebSocket's input has been closed.CompletableFuture<WebSocket>WebSocket. sendClose(int statusCode, String reason)Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the reason.HttpRequest.BuilderHttpRequest.Builder. setHeader(String name, String value)Sets the given name value pair to the set of headers for this request.WebSocket.BuilderWebSocket.Builder. subprotocols(String mostPreferred, String... lesserPreferred)Sets a request for the given subprotocols.static HttpClient.RedirectHttpClient.Redirect. valueOf(String name)Returns the enum constant of this type with the specified name.static HttpClient.VersionHttpClient.Version. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.net.http with type arguments of type String Modifier and Type Method Description static 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 HttpHeadersHttpHeaders. of(Map<String,List<String>> headerMap, BiPredicate<String,String> filter)Returns an HTTP headers from the given map.static HttpHeadersHttpHeaders. of(Map<String,List<String>> headerMap, BiPredicate<String,String> filter)Returns an HTTP headers from the given map.static HttpHeadersHttpHeaders. of(Map<String,List<String>> headerMap, BiPredicate<String,String> filter)Returns an HTTP headers from the given map.static HttpHeadersHttpHeaders. of(Map<String,List<String>> headerMap, BiPredicate<String,String> filter)Returns an HTTP headers from the given map.Constructors in java.net.http with parameters of type String Constructor Description HttpConnectTimeoutException(String message)Constructs anHttpConnectTimeoutExceptionwith the given detail message.HttpTimeoutException(String message)Constructs anHttpTimeoutExceptionwith the given detail message. -
Uses of String in java.nio
Methods in java.nio that return String Modifier and Type Method Description StringByteBuffer. toString()Returns a string summarizing the state of this buffer.StringByteOrder. toString()Constructs a string describing this object.StringCharBuffer. toString()Returns a string containing the characters in this buffer.StringDoubleBuffer. toString()Returns a string summarizing the state of this buffer.StringFloatBuffer. toString()Returns a string summarizing the state of this buffer.StringIntBuffer. toString()Returns a string summarizing the state of this buffer.StringLongBuffer. toString()Returns a string summarizing the state of this buffer.StringShortBuffer. toString()Returns a string summarizing the state of this buffer.Methods in java.nio with parameters of type String Modifier and Type Method Description CharBufferCharBuffer. put(String src)Relative bulk put method (optional operation).CharBufferCharBuffer. put(String src, int start, int end)Relative bulk put method (optional operation). -
Uses of String in java.nio.channels
Methods in java.nio.channels that return String Modifier and Type Method Description StringFileChannel.MapMode. toString()Returns a string describing this file-mapping mode.StringFileLock. toString()Returns a string describing the range, type, and validity of this lock.Methods in java.nio.channels with parameters of type String Modifier and Type Method Description static 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 String Modifier and Type Method Description StringCharset. displayName()Returns this charset's human-readable name for the default locale.StringCharset. displayName(Locale locale)Returns this charset's human-readable name for the given locale.StringIllegalCharsetNameException. getCharsetName()Retrieves the illegal charset name.StringUnsupportedCharsetException. getCharsetName()Retrieves the name of the unsupported charset.StringMalformedInputException. getMessage()Returns the message.StringUnmappableCharacterException. getMessage()Returns the message.StringCharset. name()Returns this charset's canonical name.StringCharsetDecoder. replacement()Returns this decoder's replacement value.StringCharset. toString()Returns a string describing this charset.StringCoderResult. toString()Returns a string describing this coder result.StringCodingErrorAction. toString()Returns a string describing this action.Methods in java.nio.charset that return types with arguments of type String Modifier and Type Method Description Set<String>Charset. aliases()Returns a set containing this charset's aliases.static SortedMap<String,Charset>Charset. availableCharsets()Constructs a sorted map from canonical charset names to charset objects.Methods in java.nio.charset with parameters of type String Modifier and Type Method Description ByteBufferCharset. encode(String str)Convenience method that encodes a string into bytes in this charset.static CharsetCharset. forName(String charsetName)Returns 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.CharsetDecoderCharsetDecoder. replaceWith(String newReplacement)Changes this decoder's replacement value.Constructors in java.nio.charset with parameters of type String Constructor Description Charset(String canonicalName, String[] aliases)Initializes 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 String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description StringFileSystemException. getFile()Returns the file used to create this exception.StringInvalidPathException. getInput()Returns the input string.StringFileSystemException. getMessage()Returns the detail message string.StringInvalidPathException. getMessage()Returns a string describing the error.StringFileSystemException. getOtherFile()Returns the other file used to create this exception.StringFileSystemException. getReason()Returns the string explaining why the file system operation failed.StringInvalidPathException. 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.StringWatchEvent.Kind. name()Returns the name of the event kind.StringWatchEvent.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.StringPath. 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 String Modifier and Type Method Description static Stream<String>Files. lines(Path path)Read all lines from a file as aStream.static Stream<String>Files. lines(Path path, Charset cs)Read all lines from a file as aStream.static List<String>Files. readAllLines(Path path)Read all lines from a file.static List<String>Files. readAllLines(Path path, Charset cs)Read all lines from a file.static Map<String,Object>Files. readAttributes(Path path, String attributes, LinkOption... options)Reads a set of file attributes as a bulk operation.abstract Set<String>FileSystem. supportedFileAttributeViews()Returns the set of thenamesof the file attribute views supported by thisFileSystem.Methods in java.nio.file with parameters of type String Modifier and Type Method Description static 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 booleanPath. endsWith(String other)Tests if this path ends with aPath, constructed by converting the given path string, in exactly the manner specified by theendsWith(Path)method.static PathPaths. get(String first, String... more)Converts 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 PathFileSystem. getPath(String first, String... more)Converts 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 PathPath. of(String first, String... more)Returns aPathby converting a path string, or a sequence of strings that when joined form a path string.static Map<String,Object>Files. readAttributes(Path path, String attributes, LinkOption... options)Reads a set of file attributes as a bulk operation.default PathPath. resolve(String other)Converts 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 AccessModeAccessMode. valueOf(String name)Returns the enum constant of this type with the specified name.static FileVisitOptionFileVisitOption. valueOf(String name)Returns the enum constant of this type with the specified name.static FileVisitResultFileVisitResult. valueOf(String name)Returns the enum constant of this type with the specified name.static LinkOptionLinkOption. valueOf(String name)Returns the enum constant of this type with the specified name.static StandardCopyOptionStandardCopyOption. valueOf(String name)Returns the enum constant of this type with the specified name.static StandardOpenOptionStandardOpenOption. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.nio.file with type arguments of type String Modifier and Type Method Description static 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 String Constructor Description AccessDeniedException(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.DirectoryNotEmptyException(String dir)Constructs an instance of this class.FileAlreadyExistsException(String file)Constructs an instance of this class.FileAlreadyExistsException(String file, String other, String reason)Constructs an instance of this class.FileSystemAlreadyExistsException(String msg)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.FileSystemLoopException(String file)Constructs an instance of this class.FileSystemNotFoundException(String msg)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.ProviderMismatchException(String msg)Constructs an instance of this class.ProviderNotFoundException(String msg)Constructs an instance of this class. -
Uses of String in java.nio.file.attribute
Methods in java.nio.file.attribute that return String Modifier and Type Method Description StringUserPrincipalNotFoundException. getName()Returns the user principal name if this exception was created with the user principal name that was not found, otherwisenull.StringAclFileAttributeView. name()Returns the name of the attribute view.StringAttributeView. name()Returns the name of the attribute view.StringBasicFileAttributeView. name()Returns the name of the attribute view.StringDosFileAttributeView. name()Returns the name of the attribute view.StringFileAttribute. name()Returns the attribute name.StringFileOwnerAttributeView. name()Returns the name of the attribute view.StringPosixFileAttributeView. name()Returns the name of the attribute view.StringUserDefinedFileAttributeView. name()Returns the name of this attribute view.StringAclEntry. toString()Returns the string representation of this ACL entry.StringFileTime. 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 String Modifier and Type Method Description List<String>UserDefinedFileAttributeView. list()Returns a list containing the names of the user-defined attributes.Methods in java.nio.file.attribute with parameters of type String Modifier and Type Method Description voidUserDefinedFileAttributeView. delete(String name)Deletes 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.intUserDefinedFileAttributeView. size(String name)Returns the size of the value of a user-defined attribute.static AclEntryFlagAclEntryFlag. valueOf(String name)Returns the enum constant of this type with the specified name.static AclEntryPermissionAclEntryPermission. valueOf(String name)Returns the enum constant of this type with the specified name.static AclEntryTypeAclEntryType. valueOf(String name)Returns the enum constant of this type with the specified name.static PosixFilePermissionPosixFilePermission. valueOf(String name)Returns the enum constant of this type 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 String Constructor Description UserPrincipalNotFoundException(String name)Constructs an instance of this class. -
Uses of String in java.nio.file.spi
Methods in java.nio.file.spi that return String Modifier and Type Method Description abstract 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 String Modifier and Type Method Description abstract Map<String,Object>FileSystemProvider. 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 String Modifier and Type Method Description abstract Map<String,Object>FileSystemProvider. 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 String Modifier and Type Method Description abstract FileSystemFileSystemProvider. newFileSystem(URI uri, Map<String,?> env)Constructs a newFileSystemobject identified by a URI.FileSystemFileSystemProvider. 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
Methods in java.rmi that return String Modifier and Type Method Description StringRemoteException. getMessage()Returns the detail message, including the message from the cause, if any, of this exception.static String[]Naming. list(String name)Returns an array of the names bound in the registry.Methods in java.rmi with parameters of type String Modifier and Type Method Description static voidNaming. bind(String name, Remote obj)Binds the specifiednameto a remote object.static String[]Naming. list(String name)Returns an array of the names bound in the registry.static RemoteNaming. lookup(String name)Returns a reference, a stub, for the remote object associated with the specifiedname.static voidNaming. rebind(String name, Remote obj)Rebinds the specified name to a new remote object.static voidNaming. unbind(String name)Destroys the binding for the specified name that is associated with a remote object.Constructors in java.rmi with parameters of type String Constructor Description AccessException(String s)Constructs anAccessExceptionwith the specified detail message.AccessException(String s, Exception ex)Constructs anAccessExceptionwith the specified detail message and nested exception.AlreadyBoundException(String s)Constructs anAlreadyBoundExceptionwith the specified detail message.ConnectException(String s)Constructs aConnectExceptionwith the specified detail message.ConnectException(String s, Exception ex)Constructs aConnectExceptionwith the specified detail message and nested exception.ConnectIOException(String s)Constructs aConnectIOExceptionwith the specified detail message.ConnectIOException(String s, Exception ex)Constructs aConnectIOExceptionwith the specified detail message and nested exception.MarshalException(String s)Constructs aMarshalExceptionwith the specified detail message.MarshalException(String s, Exception ex)Constructs aMarshalExceptionwith the specified detail message and nested exception.NoSuchObjectException(String s)Constructs aNoSuchObjectExceptionwith the specified detail message.NotBoundException(String s)Constructs aNotBoundExceptionwith the specified detail message.RemoteException(String s)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.ServerException(String s)Constructs aServerExceptionwith the specified detail message.ServerException(String s, Exception ex)Constructs aServerExceptionwith the specified detail message and nested exception.ServerRuntimeException(String s, Exception ex)Deprecated.no replacementStubNotFoundException(String s)Constructs aStubNotFoundExceptionwith the specified detail message.StubNotFoundException(String s, Exception ex)Constructs aStubNotFoundExceptionwith the specified detail message and nested exception.UnexpectedException(String s)Constructs anUnexpectedExceptionwith the specified detail message.UnexpectedException(String s, Exception ex)Constructs aUnexpectedExceptionwith the specified detail message and nested exception.UnknownHostException(String s)Constructs anUnknownHostExceptionwith the specified detail message.UnknownHostException(String s, Exception ex)Constructs anUnknownHostExceptionwith the specified detail message and nested exception.UnmarshalException(String s)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.activation
Methods in java.rmi.activation that return String Modifier and Type Method Description StringActivationDesc. getClassName()Returns the class name for the object specified by this descriptor.StringActivationGroupDesc. getClassName()Returns the group's class name (possiblynull).String[]ActivationGroupDesc.CommandEnvironment. getCommandOptions()Fetch the configured java command options.StringActivationGroupDesc.CommandEnvironment. getCommandPath()Fetch the configured path-qualified java command name.StringActivationDesc. getLocation()Returns the code location for the object specified by this descriptor.StringActivationGroupDesc. getLocation()Returns the group's code location.StringActivationException. getMessage()Returns the detail message, including the message from the cause, if any, of this exception.Methods in java.rmi.activation with parameters of type String Modifier and Type Method Description static ActivationIDActivatable. exportObject(Remote obj, String location, MarshalledObject<?> data, boolean restart, int port)Registers an activation descriptor (with the specified location, data, and restart mode) for the specified object, and exports that object with the specified port.static ActivationIDActivatable. exportObject(Remote obj, String location, MarshalledObject<?> data, boolean restart, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)Registers an activation descriptor (with the specified location, data, and restart mode) for the specified object, and exports that object with the specified port, and the specified client and server socket factories.Constructors in java.rmi.activation with parameters of type String Constructor Description Activatable(String location, MarshalledObject<?> data, boolean restart, int port)Constructs an activatable remote object by registering an activation descriptor (with the specified location, data, and restart mode) for this object, and exporting the object with the specified port.Activatable(String location, MarshalledObject<?> data, boolean restart, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)Constructs an activatable remote object by registering an activation descriptor (with the specified location, data, and restart mode) for this object, and exporting the object with the specified port, and specified client and server socket factories.ActivateFailedException(String s)Constructs anActivateFailedExceptionwith the specified detail message.ActivateFailedException(String s, Exception ex)Constructs anActivateFailedExceptionwith the specified detail message and nested exception.ActivationDesc(String className, String location, MarshalledObject<?> data)Constructs an object descriptor for an object whose class name isclassName, that can be loaded from the codelocationand whose initialization information isdata.ActivationDesc(String className, String location, MarshalledObject<?> data, boolean restart)Constructs an object descriptor for an object whose class name isclassName, that can be loaded from the codelocationand whose initialization information isdata.ActivationDesc(ActivationGroupID groupID, String className, String location, MarshalledObject<?> data)Constructs an object descriptor for an object whose class name isclassNamethat can be loaded from the codelocationand whose initialization information isdata.ActivationDesc(ActivationGroupID groupID, String className, String location, MarshalledObject<?> data, boolean restart)Constructs an object descriptor for an object whose class name isclassNamethat can be loaded from the codelocationand whose initialization information isdata.ActivationException(String s)Constructs anActivationExceptionwith the specified detail message.ActivationException(String s, Throwable cause)Constructs anActivationExceptionwith the specified detail message and cause.ActivationGroupDesc(String className, String location, MarshalledObject<?> data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)Specifies an alternate group implementation and execution environment to be used for the group.CommandEnvironment(String cmdpath, String[] argv)Create a CommandEnvironment with all the necessary information.UnknownGroupException(String s)Constructs anUnknownGroupExceptionwith the specified detail message.UnknownObjectException(String s)Constructs anUnknownObjectExceptionwith the specified detail message. -
Uses of String in java.rmi.dgc
Methods in java.rmi.dgc that return String Modifier and Type Method Description StringVMID. toString()Return string representation of this VMID. -
Uses of String in java.rmi.registry
Methods in java.rmi.registry that return String Modifier and Type Method Description String[]Registry. list()Returns an array of the names bound in this registry.Methods in java.rmi.registry with parameters of type String Modifier and Type Method Description voidRegistry. bind(String name, Remote obj)Binds 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.RemoteRegistry. lookup(String name)Returns the remote reference bound to the specifiednamein this registry.voidRegistry. rebind(String name, Remote obj)Replaces the binding for the specifiednamein this registry with the supplied remote reference.RegistryRegistryHandler. registryStub(String host, int port)Deprecated.no replacement.voidRegistry. unbind(String name)Removes the binding for the specifiednamein this registry. -
Uses of String in java.rmi.server
Fields in java.rmi.server declared as String Modifier and Type Field Description static StringLoaderHandler. packagePrefixDeprecated.package of systemLoaderHandlerimplementation.static 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 String Modifier and Type Method Description static 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.StringServerRef. getClientHost()Deprecated.Returns the hostname of the current client.StringServerCloneException. getMessage()Returns the detail message, including the message from the cause, if any, of this exception.StringOperation. getOperation()Deprecated.no replacementStringRemoteRef. getRefClass(ObjectOutput out)Returns the class name of the ref type to be serialized onto the stream 'out'.StringRemoteRef. remoteToString()Returns a String that represents the reference of this remote object.StringLogStream. toString()Deprecated.no replacementStringObjID. toString()Returns a string representation of this object identifier.StringOperation. toString()Deprecated.no replacementStringRemoteObject. toString()Returns a String that represents the value of this remote object.StringUID. toString()Returns a string representation of thisUID.Methods in java.rmi.server with parameters of type String Modifier and Type Method Description SocketRMIClientSocketFactory. 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<?>LoaderHandler. loadClass(String name)Deprecated.no replacementClass<?>LoaderHandler. loadClass(URL codebase, String name)Deprecated.no replacementstatic Class<?>RMIClassLoader. loadClass(String name)Deprecated.replaced byloadClass(String,String)methodstatic Class<?>RMIClassLoader. loadClass(String codebase, String name)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<?>RMIClassLoader. loadClass(URL codebase, String name)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 LogStreamLogStream. log(String name)Deprecated.no replacementstatic intLogStream. parseLevel(String s)Deprecated.no replacementConstructors in java.rmi.server with parameters of type String Constructor Description ExportException(String s)Constructs anExportExceptionwith the specified detail message.ExportException(String s, Exception ex)Constructs anExportExceptionwith the specified detail message and nested exception.Operation(String op)Deprecated.no replacementServerCloneException(String s)Constructs aServerCloneExceptionwith the specified detail message.ServerCloneException(String s, Exception cause)Constructs aServerCloneExceptionwith the specified detail message and cause.ServerNotActiveException(String s)Constructs anServerNotActiveExceptionwith the specified detail message.SkeletonMismatchException(String s)Deprecated.no replacementSkeletonNotFoundException(String s)Deprecated.Constructs aSkeletonNotFoundExceptionwith the specified detail message.SkeletonNotFoundException(String s, Exception ex)Deprecated.Constructs aSkeletonNotFoundExceptionwith the specified detail message and nested exception.SocketSecurityException(String s)Deprecated.Constructs anSocketSecurityExceptionwith the specified detail message.SocketSecurityException(String s, Exception ex)Deprecated.Constructs anSocketSecurityExceptionwith the specified detail message and nested exception. -
Uses of String in java.security
Methods in java.security that return String Modifier and Type Method Description abstract 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.StringAllPermission. getActions()Returns the canonical string representation of the actions.StringBasicPermission. getActions()Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for a BasicPermission.abstract StringPermission. getActions()Returns the actions as a String.StringUnresolvedPermission. getActions()Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for an UnresolvedPermission.StringAlgorithmParameterGenerator. getAlgorithm()Returns the standard name of the algorithm this parameter generator is associated with.StringAlgorithmParameters. getAlgorithm()Returns the name of the algorithm associated with this parameter object.StringKey. getAlgorithm()Returns the standard algorithm name for this key.StringKeyFactory. getAlgorithm()Gets the name of the algorithm associated with thisKeyFactory.StringKeyPairGenerator. getAlgorithm()Returns the standard name of the algorithm for this key pair generator.StringMessageDigest. getAlgorithm()Returns a string that identifies the algorithm, independent of implementation details.StringProvider.Service. getAlgorithm()Return the name of the algorithm of this service.StringSecureRandom. getAlgorithm()Returns the name of the algorithm implemented by thisSecureRandomobject.StringSignature. getAlgorithm()Returns the name of the algorithm for this signature object.StringSignedObject. 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.StringProvider.Service. getAttribute(String name)Return the value of the specified attribute or null if this attribute is not set for this Service.StringKeyStore. getCertificateAlias(Certificate cert)Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.StringProvider.Service. getClassName()Return the name of the class implementing this service.static 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.StringCertificate. getFormat()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the coding format.StringKey. getFormat()Returns the name of the primary encoding format of this key, or null if this key does not support encoding.StringIdentity. getInfo()Deprecated, for removal: This API element is subject to removal in a future version.Returns general information previously specified for this identity.StringProvider. getInfo()Returns a human-readable description of the provider and its services.StringIdentity. getName()Deprecated, for removal: This API element is subject to removal in a future version.Returns this identity's name.StringKeyStore.Entry.Attribute. getName()Returns the attribute's name.StringPermission. getName()Returns the name of this Permission.StringPKCS12Attribute. getName()Returns the attribute's ASN.1 Object Identifier represented as a list of dot-separated integers.StringPrincipal. getName()Returns the name of this principal.StringProvider. getName()Returns the name of this provider.static StringSecurity. getProperty(String key)Gets a security property value.StringKeyStore.PasswordProtection. getProtectionAlgorithm()Gets the name of the protection algorithm.StringKeyStore. getType()Returns the type of this keystore.StringPolicy. getType()Return the type of this Policy.StringProvider.Service. getType()Get the type of this service.StringUnresolvedPermission. getUnresolvedActions()Get the actions for the underlying permission that has not been resolved.StringUnresolvedPermission. getUnresolvedName()Get the target name of the underlying permission that has not been resolved.StringUnresolvedPermission. getUnresolvedType()Get the type (class name) of the underlying permission that has not been resolved.StringKeyStore.Entry.Attribute. getValue()Returns the attribute's value.StringPKCS12Attribute. getValue()Returns the attribute's ASN.1 DER-encoded value as a string.StringProvider. getVersionStr()Returns the version string for this provider.StringAlgorithmParameters. toString()Returns a formatted string describing the parameters.StringCertificate. 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.StringCodeSigner. toString()Returns a string describing this code signer.StringCodeSource. toString()Returns a string describing this CodeSource, telling its URL and certificates.StringDigestInputStream. toString()Prints a string representation of this digest input stream and its associated message digest object.StringDigestOutputStream. toString()Prints a string representation of this digest output stream and its associated message digest object.StringDrbgParameters.Instantiation. toString()Returns a Human-readable string representation of thisInstantiation.StringIdentity. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a short string describing this identity, telling its name and its scope (if any).StringIdentity. toString(boolean detailed)Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this identity, with optionally more details than that provided by thetoStringmethod without any arguments.StringIdentityScope. 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.StringKeyStore.PrivateKeyEntry. toString()Returns a string representation of this PrivateKeyEntry.StringKeyStore.SecretKeyEntry. toString()Returns a string representation of this SecretKeyEntry.StringKeyStore.TrustedCertificateEntry. toString()Returns a string representation of this TrustedCertificateEntry.StringMessageDigest. toString()Returns a string representation of this message digest object.StringPermission. toString()Returns a string describing this Permission.StringPermissionCollection. toString()Returns a string describing this PermissionCollection object, providing information about all the permissions it contains.StringPKCS12Attribute. toString()Returns a string representation of thisPKCS12Attribute.StringPrincipal. toString()Returns a string representation of this principal.StringProtectionDomain. toString()Convert a ProtectionDomain to a String.StringProvider.Service. toString()Return a String representation of this service.StringProvider. toString()Returns a string with the name and the version string of this provider.StringSecureRandom. toString()Returns a Human-readable string representation of thisSecureRandom.StringSecureRandomSpi. toString()Returns a Human-readable string representation of thisSecureRandom.StringSignature. toString()Returns a string representation of this signature object, providing information that includes the state of the object and the name of the algorithm used.StringSigner. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string of information about the signer.StringTimestamp. toString()Returns a string describing this timestamp.StringUnresolvedPermission. toString()Returns a string describing this UnresolvedPermission.Methods in java.security that return types with arguments of type String Modifier and Type Method Description 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.static Set<String>Security. getAlgorithms(String serviceName)Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore).Map<String,KeyStore.ProtectionParameter>DomainLoadStoreParameter. getProtectionParams()Gets the keystore protection parameters for keystores in this domain.Methods in java.security with parameters of type String Modifier and Type Method Description ProviderProvider. configure(String configArg)Apply the supplied configuration argument to this provider instance and return the configured provider.booleanKeyStore. containsAlias(String alias)Checks if the given alias exists in this keystore.protected Class<?>SecureClassLoader. defineClass(String name, byte[] b, int off, int len, CodeSource cs)Converts an array of bytes into an instance of class Class, with an optional CodeSource.protected Class<?>SecureClassLoader. defineClass(String name, ByteBuffer b, CodeSource cs)Converts aByteBufferinto an instance of classClass, with an optional CodeSource.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.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.KeyStore.EntryKeyStoreSpi. 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)Returns true if 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)Returns true if 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.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.static Set<String>Security. getAlgorithms(String serviceName)Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore).StringProvider.Service. getAttribute(String name)Return the value of the specified attribute or null if this attribute is not set for this Service.CertificateKeyStore. getCertificate(String alias)Returns the certificate associated with the given alias.Certificate[]KeyStore. getCertificateChain(String alias)Returns the certificate chain associated with the given alias.DateKeyStore. getCreationDate(String alias)Returns the creation date of the entry identified by the given alias.byte[]AlgorithmParameters. getEncoded(String format)Returns the parameters encoded in the specified scheme.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 the identity in this scope with the specified name (if any).static AlgorithmParameterGeneratorAlgorithmParameterGenerator. getInstance(String algorithm)Returns an AlgorithmParameterGenerator object for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGeneratorAlgorithmParameterGenerator. getInstance(String algorithm, String provider)Returns an AlgorithmParameterGenerator object for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGeneratorAlgorithmParameterGenerator. getInstance(String algorithm, Provider provider)Returns an AlgorithmParameterGenerator object 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 a KeyFactory object that converts public/private keys of the specified algorithm.static KeyFactoryKeyFactory. getInstance(String algorithm, String provider)Returns a KeyFactory object that converts public/private keys of the specified algorithm.static KeyFactoryKeyFactory. getInstance(String algorithm, Provider provider)Returns a KeyFactory object that converts public/private keys of the specified algorithm.static KeyPairGeneratorKeyPairGenerator. getInstance(String algorithm)Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyPairGeneratorKeyPairGenerator. getInstance(String algorithm, String provider)Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyPairGeneratorKeyPairGenerator. getInstance(String algorithm, Provider provider)Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyStoreKeyStore. getInstance(String type)Returns a keystore object of the specified type.static KeyStoreKeyStore. getInstance(String type, String provider)Returns a keystore object of the specified type.static KeyStoreKeyStore. getInstance(String type, Provider provider)Returns a keystore object of the specified type.static MessageDigestMessageDigest. getInstance(String algorithm)Returns a MessageDigest object that implements the specified digest algorithm.static MessageDigestMessageDigest. getInstance(String algorithm, String provider)Returns a MessageDigest object that implements the specified digest algorithm.static MessageDigestMessageDigest. getInstance(String algorithm, Provider provider)Returns a MessageDigest object that implements the specified digest algorithm.static PolicyPolicy. getInstance(String type, Policy.Parameters params)Returns a Policy object of the specified type.static PolicyPolicy. getInstance(String type, Policy.Parameters params, String provider)Returns a Policy object of the specified type.static PolicyPolicy. getInstance(String type, Policy.Parameters params, Provider provider)Returns a Policy object 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 a Signature object that implements the specified signature algorithm.static SignatureSignature. getInstance(String algorithm, String provider)Returns a Signature object that implements the specified signature algorithm.static SignatureSignature. getInstance(String algorithm, Provider provider)Returns a Signature object that implements the specified signature algorithm.KeyKeyStore. getKey(String alias, char[] password)Returns the key associated with the given alias, using the given password to recover it.ObjectSignature. getParameter(String param)Deprecated.static StringSecurity. getProperty(String key)Gets a security property value.abstract KeyStore.ProtectionParameterKeyStore.Builder. getProtectionParameter(String alias)Returns the ProtectionParameters that 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, or null if no such providers have been installed.Provider.ServiceProvider. getService(String type, String algorithm)Get the service describing this Provider's implementation of the specified type of this algorithm or alias.voidAlgorithmParameters. init(byte[] params, String format)Imports the parameters fromparamsand decodes them according to the specified decoding scheme.booleanKeyStore. isCertificateEntry(String alias)Returns true if the entry identified by the given alias was created by a call tosetCertificateEntry, or created by a call tosetEntrywith aTrustedCertificateEntry.booleanKeyStore. isKeyEntry(String alias)Returns true if 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 new Builder object.static KeyStore.BuilderKeyStore.Builder. newInstance(String type, Provider provider, KeyStore.ProtectionParameter protection)Returns a new Builder object.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.voidKeyStore. setCertificateEntry(String alias, Certificate cert)Assigns the given trusted certificate to the given alias.voidKeyStore. setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)Saves a keystoreEntryunder the specified alias.voidIdentity. setInfo(String info)Deprecated, for removal: This API element is subject to removal in a future version.Specifies a general information string for this identity.voidKeyStore. setKeyEntry(String alias, byte[] key, Certificate[] chain)Assigns the given key (that has already been protected) to the given alias.voidKeyStore. setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Assigns the given key to the given alias, protecting it with the given password.voidSignature. setParameter(String param, Object value)Deprecated.UsesetParameter.static voidSecurity. setProperty(String key, String datum)Sets a security property value.static CryptoPrimitiveCryptoPrimitive. valueOf(String name)Returns the enum constant of this type with the specified name.static DrbgParameters.CapabilityDrbgParameters.Capability. valueOf(String name)Returns the enum constant of this type with the specified name.static KeyRep.TypeKeyRep.Type. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.security with type arguments of type String Modifier and Type Method Description static Provider[]Security. getProviders(Map<String,String> filter)Returns an array containing all installed providers that satisfy the specified selection criteria, or null if 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, or null if no such providers have been installed.Constructors in java.security with parameters of type String Constructor Description AccessControlException(String s)Constructs anAccessControlExceptionwith the specified, detailed message.AccessControlException(String s, Permission p)Constructs anAccessControlExceptionwith the specified, detailed message, and the requested permission that caused the exception.AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm)Creates an AlgorithmParameterGenerator object.AlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm)Creates an AlgorithmParameters object.AllPermission(String name, String actions)Creates a new AllPermission object.AuthProvider(String name, double version, String info)Deprecated.useAuthProvider(String, String, String)instead.AuthProvider(String name, String versionStr, String info)Constructs a provider with the specified name, version string, and information.BasicPermission(String name)Creates a new BasicPermission with the specified name.BasicPermission(String name, String actions)Creates a new BasicPermission object with the specified name.DigestException(String msg)Constructs a DigestException with the specified detail message.DigestException(String message, Throwable cause)Creates aDigestExceptionwith the specified detail message and cause.GeneralSecurityException(String msg)Constructs a GeneralSecurityException with the specified detail message.GeneralSecurityException(String message, Throwable cause)Creates aGeneralSecurityExceptionwith the specified detail message and cause.Identity(String name)Deprecated, for removal: This API element is subject to removal in a future version.Constructs an identity with 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 an identity with 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.InvalidAlgorithmParameterException(String msg)Constructs an InvalidAlgorithmParameterException with the specified detail message.InvalidAlgorithmParameterException(String message, Throwable cause)Creates anInvalidAlgorithmParameterExceptionwith the specified detail message and cause.InvalidKeyException(String msg)Constructs an InvalidKeyException with the specified detail message.InvalidKeyException(String message, Throwable cause)Creates anInvalidKeyExceptionwith the specified detail message and cause.InvalidParameterException(String msg)Constructs an InvalidParameterException with the specified detail message.KeyException(String msg)Constructs a KeyException with the specified detail message.KeyException(String message, Throwable cause)Creates aKeyExceptionwith the specified detail message and cause.KeyFactory(KeyFactorySpi keyFacSpi, Provider provider, String algorithm)Creates a KeyFactory object.KeyManagementException(String msg)Constructs a KeyManagementException with the specified detail message.KeyManagementException(String message, Throwable cause)Creates aKeyManagementExceptionwith the specified detail message and cause.KeyPairGenerator(String algorithm)Creates a KeyPairGenerator object for the specified algorithm.KeyRep(KeyRep.Type type, String algorithm, String format, byte[] encoded)Construct the alternate Key class.KeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type)Creates a KeyStore object of the given type, and encapsulates the given provider implementation (SPI object) in it.KeyStoreException(String msg)Constructs a KeyStoreException with the specified detail message.KeyStoreException(String message, Throwable cause)Creates aKeyStoreExceptionwith the specified detail message and cause.MessageDigest(String algorithm)Creates a message digest with the specified algorithm name.NoSuchAlgorithmException(String msg)Constructs a NoSuchAlgorithmException with the specified detail message.NoSuchAlgorithmException(String message, Throwable cause)Creates aNoSuchAlgorithmExceptionwith the specified detail message and cause.NoSuchProviderException(String msg)Constructs a NoSuchProviderException with 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.Provider(String name, double version, String info)Deprecated.useProvider(String, String, String)instead.Provider(String name, String versionStr, String info)Constructs a provider with the specified name, version string, and information.ProviderException(String s)Constructs a ProviderException with the specified detail message.ProviderException(String message, Throwable cause)Creates aProviderExceptionwith the specified detail message and cause.SecureClassLoader(String name, ClassLoader parent)Creates a newSecureClassLoaderof the specified name and using the specified parent class loader for delegation.SecurityPermission(String name)Creates a new SecurityPermission with the specified name.SecurityPermission(String name, String actions)Creates a new SecurityPermission object with the specified name.Service(Provider provider, String type, String algorithm, String className, List<String> aliases, Map<String,String> attributes)Construct a new service.Signature(String algorithm)Creates a Signature object for the specified algorithm.SignatureException(String msg)Constructs a SignatureException with the specified detail message.SignatureException(String message, Throwable cause)Creates aSignatureExceptionwith the specified detail message and cause.Signer(String name)Deprecated, for removal: This API element is subject to removal in a future version.Creates a signer with the specified identity name.Signer(String name, IdentityScope scope)Deprecated, for removal: This API element is subject to removal in a future version.Creates a signer with the specified identity name and scope.UnrecoverableEntryException(String msg)Constructs an UnrecoverableEntryException with the specified detail message, which provides more information about why this exception has been thrown.UnrecoverableKeyException(String msg)Constructs an UnrecoverableKeyException with 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 new UnresolvedPermission containing 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 String Constructor Description DomainLoadStoreParameter(URI configuration, Map<String,KeyStore.ProtectionParameter> protectionParams)Constructs a DomainLoadStoreParameter for 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 String Modifier and Type Method Description StringCertPathBuilder. getAlgorithm()Returns the name of the algorithm of thisCertPathBuilder.StringCertPathValidator. getAlgorithm()Returns the algorithm name of thisCertPathValidator.StringTrustAnchor. getCAName()Returns the name of the most-trusted CA in RFC 2253Stringformat.static StringCertPathBuilder. getDefaultType()Returns the defaultCertPathBuildertype as specified by thecertpathbuilder.typesecurity property, or the string "PKIX" if no such property exists.static StringCertPathValidator. getDefaultType()Returns the defaultCertPathValidatortype as specified by thecertpathvalidator.typesecurity property, or the string "PKIX" if no such property exists.static StringCertStore. getDefaultType()Returns the defaultCertStoretype as specified by thecertstore.typesecurity property, or the string "LDAP" if no such property exists.StringExtension. getId()Gets the extensions's object identifier.StringX509CertSelector. getIssuerAsString()Denigrated, use X509CertSelector.getIssuer() or X509CertSelector.getIssuerAsBytes() instead.StringPolicyQualifierInfo. getPolicyQualifierId()Returns thepolicyQualifierIdfield of thisPolicyQualifierInfo.StringLDAPCertStoreParameters. 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.StringPKIXParameters. getSigProvider()Returns the signature provider's name, ornullif not set.StringX509CertSelector. getSubjectAsString()Denigrated, use X509CertSelector.getSubject() or X509CertSelector.getSubjectAsBytes() instead.StringX509CertSelector. getSubjectPublicKeyAlgID()Returns the subjectPublicKeyAlgID criterion.StringCertificate. getType()Returns the type of this certificate.StringCertificateFactory. getType()Returns the name of the certificate type associated with this certificate factory.StringCertPath. getType()Returns the type ofCertificates in this certification path.StringCertStore. getType()Returns the type of thisCertStore.StringCRL. getType()Returns the type of this CRL.StringPolicyNode. getValidPolicy()Returns the valid policy represented by this node.abstract StringCertificate. toString()Returns a string representation of this certificate.StringCertPath. toString()Returns a string representation of this certification path.StringCollectionCertStoreParameters. toString()Returns a formatted string describing the parameters.abstract StringCRL. toString()Returns a string representation of this CRL.StringLDAPCertStoreParameters. toString()Returns a formatted string describing the parameters.StringPKIXBuilderParameters. toString()Returns a formatted string describing the parameters.StringPKIXCertPathBuilderResult. toString()Return a printable representation of thisPKIXCertPathBuilderResult.StringPKIXCertPathValidatorResult. toString()Return a printable representation of thisPKIXCertPathValidatorResult.StringPKIXParameters. toString()Returns a formatted string describing the parameters.StringPolicyQualifierInfo. toString()Return a printable representation of thisPolicyQualifierInfo.StringTrustAnchor. toString()Returns a formatted string describing theTrustAnchor.StringURICertStoreParameters. toString()Returns a formatted string describing the parameters including the URI used to construct this object.StringX509CertSelector. toString()Return a printable representation of theCertSelector.abstract StringX509CRLEntry. toString()Returns a string representation of this CRL entry.StringX509CRLSelector. toString()Returns a printable representation of theX509CRLSelector.Methods in java.security.cert that return types with arguments of type String Modifier and Type Method Description Iterator<String>CertificateFactorySpi. engineGetCertPathEncodings()Returns an iteration of theCertPathencodings supported by this certificate factory, with the default encoding first.Iterator<String>CertificateFactory. getCertPathEncodings()Returns an iteration of theCertPathencodings supported by this certificate factory, with the default encoding first.Set<String>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.abstract Iterator<String>CertPath. getEncodings()Returns an iteration of the encodings supported by this certification path, with the default encoding first.Set<String>PolicyNode. getExpectedPolicies()Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.List<String>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).Set<String>X509CertSelector. getExtendedKeyUsage()Returns the extendedKeyUsage criterion.Map<String,Extension>CertificateRevokedException. getExtensions()Returns a map of X.509 extensions containing additional information about the revoked certificate, such as the Invalidity Date Extension.Set<String>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.Set<String>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.Set<String>X509CertSelector. getPolicy()Returns the policy criterion.abstract Set<String>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 String Modifier and Type Method Description voidX509CRLSelector. addIssuerName(String name)Denigrated, use X509CRLSelector.addIssuer(X500Principal) or X509CRLSelector.addIssuerName(byte[]) instead.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.CertPathCertificateFactorySpi. engineGenerateCertPath(InputStream inStream, String encoding)Generates aCertPathobject and initializes it with the data read from theInputStreaminStream.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 CertificateFactoryCertificateFactory. getInstance(String type)Returns a certificate factory object that implements the specified certificate type.static CertificateFactoryCertificateFactory. getInstance(String type, String provider)Returns a certificate factory object for the specified certificate type.static 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.voidX509CertSelector. setIssuer(String issuerDN)Denigrated, use X509CertSelector.setIssuer(X500Principal) or X509CertSelector.setIssuer(byte[]) instead.voidPKIXParameters. setSigProvider(String sigProvider)Sets the signature provider's name.voidX509CertSelector. setSubject(String subjectDN)Denigrated, use X509CertSelector.setSubject(X500Principal) or X509CertSelector.setSubject(byte[]) instead.voidX509CertSelector. setSubjectPublicKeyAlgID(String oid)Sets the subjectPublicKeyAlgID criterion.static CertPathValidatorException.BasicReasonCertPathValidatorException.BasicReason. valueOf(String name)Returns the enum constant of this type with the specified name.static CRLReasonCRLReason. valueOf(String name)Returns the enum constant of this type with the specified name.static PKIXReasonPKIXReason. valueOf(String name)Returns the enum constant of this type with the specified name.static PKIXRevocationChecker.OptionPKIXRevocationChecker.Option. valueOf(String name)Returns the enum constant of this type with the specified name.abstract voidCertificate. verify(PublicKey key, String sigProvider)Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidX509CRL. verify(PublicKey key, String sigProvider)Verifies 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 String Modifier and Type Method Description abstract 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.voidX509CertSelector. setPolicy(Set<String> certPolicySet)Sets the policy constraint.Constructors in java.security.cert with parameters of type String Constructor Description Certificate(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.CertificateException(String msg)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.CertificateFactory(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.CertificateRep(String type, byte[] data)Construct the alternate Certificate class with the Certificate type and Certificate encoding bytes.CertPath(String type)Creates aCertPathof the specified type.CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm)Creates aCertPathBuilderobject of the given algorithm, and encapsulates the given provider implementation (SPI object) in it.CertPathBuilderException(String msg)Creates aCertPathBuilderExceptionwith the given detail message.CertPathBuilderException(String msg, Throwable cause)Creates aCertPathBuilderExceptionwith the specified detail message and cause.CertPathRep(String type, byte[] data)Creates aCertPathRepwith the specified type and encoded form of a certification path.CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm)Creates aCertPathValidatorobject of the given algorithm, and encapsulates the given provider implementation (SPI object) in it.CertPathValidatorException(String msg)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.CertStore(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.CRL(String type)Creates 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 String Constructor Description CertificateRevokedException(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 String Modifier and Type Method Description StringEncodedKeySpec. getAlgorithm()Returns the name of the algorithm of the encoded key.StringMGF1ParameterSpec. getDigestAlgorithm()Returns the algorithm name of the message digest used by the mask generation function.StringPSSParameterSpec. getDigestAlgorithm()Returns the message digest algorithm name.abstract StringEncodedKeySpec. getFormat()Returns the name of the encoding format associated with this key specification.StringPKCS8EncodedKeySpec. getFormat()Returns the name of the encoding format associated with this key specification.StringX509EncodedKeySpec. getFormat()Returns the name of the encoding format associated with this key specification.StringPSSParameterSpec. getMGFAlgorithm()Returns the mask generation function algorithm name.StringNamedParameterSpec. getName()Returns the standard name that determines the algorithm parameters.Constructors in java.security.spec with parameters of type String Constructor Description ECGenParameterSpec(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.EncodedKeySpec(byte[] encodedKey, String algorithm)Creates a newEncodedKeySpecwith the given encoded key.InvalidKeySpecException(String msg)Constructs an InvalidKeySpecException with the specified detail message.InvalidKeySpecException(String message, Throwable cause)Creates anInvalidKeySpecExceptionwith the specified detail message and cause.InvalidParameterSpecException(String msg)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
Fields in java.sql declared as String Modifier and Type Field Description String[]DriverPropertyInfo. choicesAn array of possible values if the value for the fieldDriverPropertyInfo.valuemay be selected from a particular set of values; otherwise null.StringDriverPropertyInfo. descriptionA brief description of the property, which may be null.StringDriverPropertyInfo. nameThe name of the property.StringDriverPropertyInfo. 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.Methods in java.sql that return String Modifier and Type Method Description 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.StringArray. getBaseTypeName()Retrieves the SQL type name of the elements in the array designated by thisArrayobject.StringRef. getBaseTypeName()Retrieves the fully-qualified SQL name of the SQL structured type that thisRefobject references.StringConnection. getCatalog()Retrieves thisConnectionobject's current catalog name.StringResultSetMetaData. getCatalogName(int column)Gets the designated column's table's catalog name.StringDatabaseMetaData. getCatalogSeparator()Retrieves theStringthat this database uses as the separator between a catalog and table name.StringDatabaseMetaData. getCatalogTerm()Retrieves the database vendor's preferred term for "catalog".StringConnection. getClientInfo(String name)Returns the value of the client info property specified by name.StringResultSetMetaData. 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.StringResultSetMetaData. getColumnLabel(int column)Gets the designated column's suggested title for use in printouts and displays.StringResultSetMetaData. getColumnName(int column)Get the designated column's name.StringResultSetMetaData. getColumnTypeName(int column)Retrieves the designated column's database-specific type name.StringResultSet. getCursorName()Retrieves the name of the SQL cursor used by thisResultSetobject.StringDatabaseMetaData. getDatabaseProductName()Retrieves the name of this database product.StringDatabaseMetaData. getDatabaseProductVersion()Retrieves the version number of this database product.StringDatabaseMetaData. getDriverName()Retrieves the name of this JDBC driver.StringDatabaseMetaData. getDriverVersion()Retrieves the version number of this JDBC driver as aString.StringDatabaseMetaData. getExtraNameCharacters()Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).StringDatabaseMetaData. getIdentifierQuoteString()Retrieves the string used to quote SQL identifiers.StringJDBCType. getName()Returns theSQLTypename that represents a SQL data type.StringSQLType. getName()Returns theSQLTypename that represents a SQL data type.StringCallableStatement. getNString(int parameterIndex)Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.StringCallableStatement. getNString(String parameterName)Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.StringResultSet. getNString(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringResultSet. getNString(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringDatabaseMetaData. getNumericFunctions()Retrieves a comma-separated list of math functions available with this database.StringParameterMetaData. getParameterClassName(int param)Retrieves the fully-qualified name of the Java class whose instances should be passed to the methodPreparedStatement.setObject.StringParameterMetaData. getParameterTypeName(int param)Retrieves the designated parameter's database-specific type name.StringDatabaseMetaData. getProcedureTerm()Retrieves the database vendor's preferred term for "procedure".StringSavepoint. getSavepointName()Retrieves the name of the savepoint that thisSavepointobject represents.StringConnection. getSchema()Retrieves thisConnectionobject's current schema name.StringResultSetMetaData. getSchemaName(int column)Get the designated column's table's schema.StringDatabaseMetaData. getSchemaTerm()Retrieves the database vendor's preferred term for "schema".StringDatabaseMetaData. getSearchStringEscape()Retrieves the string that can be used to escape wildcard characters.StringDatabaseMetaData. getSQLKeywords()Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.StringSQLException. getSQLState()Retrieves the SQLState for thisSQLExceptionobject.StringSQLData. getSQLTypeName()Returns the fully-qualified name of the SQL user-defined type that this object represents.StringStruct. getSQLTypeName()Retrieves the SQL type name of the SQL structured type that thisStructobject represents.StringCallableStatement. getString(int parameterIndex)Retrieves the value of the designated JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.StringCallableStatement. getString(String parameterName)Retrieves the value of a JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.StringResultSet. getString(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringResultSet. getString(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringSQLXML. getString()Returns a string representation of the XML value designated by this SQLXML instance.StringDatabaseMetaData. getStringFunctions()Retrieves a comma-separated list of string functions available with this database.StringClob. getSubString(long pos, int length)Retrieves a copy of the specified substring in theCLOBvalue designated by thisClobobject.StringDatabaseMetaData. getSystemFunctions()Retrieves a comma-separated list of system functions available with this database.StringResultSetMetaData. getTableName(int column)Gets the designated column's table name.StringDatabaseMetaData. getTimeDateFunctions()Retrieves a comma-separated list of the time and date functions available with this database.StringDatabaseMetaData. getURL()Retrieves the URL for this DBMS.StringDatabaseMetaData. getUserName()Retrieves the user name as known to this database.StringJDBCType. getVendor()Returns the name of the vendor that supports this data type.StringSQLType. getVendor()Returns the name of the vendor that supports this data type.StringConnection. nativeSQL(String sql)Converts the given SQL statement into the system's native SQL grammar.StringSQLInput. readNString()Reads the next attribute in the stream and returns it as aStringin the Java programming language.StringSQLInput. readString()Reads the next attribute in the stream and returns it as aStringin the Java programming language.StringDate. toString()Formats a date in the date escape format yyyy-mm-dd.StringRowId. toString()Returns a String representing the value of the SQL ROWID designated by thisjava.sql.RowIdobject.StringTime. toString()Formats a time in JDBC time escape format.StringTimestamp. toString()Formats a timestamp in JDBC timestamp escape format.Methods in java.sql that return types with arguments of type String Modifier and Type Method Description Map<String,ClientInfoStatus>SQLClientInfoException. getFailedProperties()Returns the list of client info properties that could not be set.Map<String,Class<?>>Connection. getTypeMap()Retrieves theMapobject associated with thisConnectionobject.Methods in java.sql with parameters of type String Modifier and Type Method Description booleanDriver. acceptsURL(String url)Retrieves whether the driver thinks that it can open a connection to the given URL.voidStatement. addBatch(String sql)Adds the given SQL command to the current list of commands for thisStatementobject.ConnectionDriver. connect(String url, Properties info)Attempts to make a database connection to the given URL.ArrayConnection. createArrayOf(String typeName, Object[] elements)Factory method for creating Array objects.StructConnection. 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.booleanStatement. execute(String sql)Executes the given SQL statement, which may return multiple results.booleanStatement. execute(String sql, int autoGeneratedKeys)Executes the given SQL statement, which may return multiple results, and signals the driver that any auto-generated keys should be made available for retrieval.booleanStatement. execute(String sql, int[] columnIndexes)Executes 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.booleanStatement. execute(String sql, String[] columnNames)Executes 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.ResultSetStatement. 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.ArrayCallableStatement. getArray(String parameterName)Retrieves the value of a JDBCARRAYparameter as anArrayobject in the Java programming language.ArrayResultSet. getArray(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.InputStreamResultSet. getAsciiStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.ResultSetDatabaseMetaData. 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.ResultSetDatabaseMetaData. 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.BigDecimalCallableStatement. 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.BigDecimalResultSet. getBigDecimal(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.BigDecimalResultSet. getBigDecimal(String columnLabel, int scale)Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)InputStreamResultSet. getBinaryStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes.BlobCallableStatement. getBlob(String parameterName)Retrieves the value of a JDBCBLOBparameter as aBlobobject in the Java programming language.BlobResultSet. getBlob(String columnLabel)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.byteCallableStatement. getByte(String parameterName)Retrieves the value of a JDBCTINYINTparameter as abytein the Java programming language.byteResultSet. getByte(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.byte[]CallableStatement. getBytes(String parameterName)Retrieves the value of a JDBCBINARYorVARBINARYparameter as an array ofbytevalues in the Java programming language.byte[]ResultSet. getBytes(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language.ReaderCallableStatement. getCharacterStream(String parameterName)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderResultSet. getCharacterStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.StringConnection. getClientInfo(String name)Returns the value of the client info property specified by name.ClobCallableStatement. getClob(String parameterName)Retrieves the value of a JDBCCLOBparameter as ajava.sql.Clobobject in the Java programming language.ClobResultSet. getClob(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.ResultSetDatabaseMetaData. getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)Retrieves a description of the access rights for a table's columns.ResultSetDatabaseMetaData. 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.ResultSetDatabaseMetaData. 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).DateCallableStatement. getDate(String parameterName)Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject.DateCallableStatement. getDate(String parameterName, Calendar cal)Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.DateResultSet. getDate(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.DateResultSet. getDate(String columnLabel, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.doubleCallableStatement. getDouble(String parameterName)Retrieves the value of a JDBCDOUBLEparameter as adoublein the Java programming language.doubleResultSet. getDouble(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.static DriverDriverManager. getDriver(String url)Attempts to locate a driver that understands the given URL.ResultSetDatabaseMetaData. 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).floatCallableStatement. getFloat(String parameterName)Retrieves the value of a JDBCFLOATparameter as afloatin the Java programming language.floatResultSet. getFloat(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.ResultSetDatabaseMetaData. 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.ResultSetDatabaseMetaData. getFunctions(String catalog, String schemaPattern, String functionNamePattern)Retrieves a description of the system and user functions available in the given catalog.ResultSetDatabaseMetaData. 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).ResultSetDatabaseMetaData. getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)Retrieves a description of the given table's indices and statistics.intCallableStatement. getInt(String parameterName)Retrieves the value of a JDBCINTEGERparameter as anintin the Java programming language.intResultSet. getInt(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.longCallableStatement. getLong(String parameterName)Retrieves the value of a JDBCBIGINTparameter as alongin the Java programming language.longResultSet. getLong(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.ReaderCallableStatement. getNCharacterStream(String parameterName)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderResultSet. getNCharacterStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.NClobCallableStatement. getNClob(String parameterName)Retrieves the value of a JDBCNCLOBparameter as ajava.sql.NClobobject in the Java programming language.NClobResultSet. getNClob(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.StringCallableStatement. getNString(String parameterName)Retrieves the value of the designatedNCHAR,NVARCHARorLONGNVARCHARparameter as aStringin the Java programming language.StringResultSet. getNString(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.ObjectCallableStatement. getObject(String parameterName)Retrieves the value of a parameter as anObjectin the Java programming language.<T> TCallableStatement. getObject(String parameterName, Class<T> type)Returns 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.ObjectCallableStatement. getObject(String parameterName, Map<String,Class<?>> map)Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custom mapping of the parameter value.ObjectResultSet. getObject(String columnLabel)Gets the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.<T> TResultSet. getObject(String columnLabel, Class<T> type)Retrieves 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.ObjectResultSet. getObject(String columnLabel, Map<String,Class<?>> map)Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.ResultSetDatabaseMetaData. getPrimaryKeys(String catalog, String schema, String table)Retrieves a description of the given table's primary key columns.ResultSetDatabaseMetaData. getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)Retrieves a description of the given catalog's stored procedure parameter and result columns.ResultSetDatabaseMetaData. getProcedures(String catalog, String schemaPattern, String procedureNamePattern)Retrieves a description of the stored procedures available in the given catalog.DriverPropertyInfo[]Driver. getPropertyInfo(String url, Properties info)Gets information about the possible properties for this driver.ResultSetDatabaseMetaData. 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.RefCallableStatement. getRef(String parameterName)Retrieves the value of a JDBCREF(<structured-type>)parameter as aRefobject in the Java programming language.RefResultSet. getRef(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.RowIdCallableStatement. getRowId(String parameterName)Retrieves the value of the designated JDBCROWIDparameter as ajava.sql.RowIdobject.RowIdResultSet. getRowId(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.ResultSetDatabaseMetaData. getSchemas(String catalog, String schemaPattern)Retrieves the schema names available in this database.shortCallableStatement. getShort(String parameterName)Retrieves the value of a JDBCSMALLINTparameter as ashortin the Java programming language.shortResultSet. getShort(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.SQLXMLCallableStatement. getSQLXML(String parameterName)Retrieves the value of the designatedSQL XMLparameter as ajava.sql.SQLXMLobject in the Java programming language.SQLXMLResultSet. getSQLXML(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.StringCallableStatement. getString(String parameterName)Retrieves the value of a JDBCCHAR,VARCHAR, orLONGVARCHARparameter as aStringin the Java programming language.StringResultSet. getString(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.ResultSetDatabaseMetaData. getSuperTables(String catalog, String schemaPattern, String tableNamePattern)Retrieves a description of the table hierarchies defined in a particular schema in this database.ResultSetDatabaseMetaData. 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.ResultSetDatabaseMetaData. getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)Retrieves a description of the access rights for each table available in a catalog.ResultSetDatabaseMetaData. getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)Retrieves a description of the tables available in the given catalog.TimeCallableStatement. getTime(String parameterName)Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject.TimeCallableStatement. getTime(String parameterName, Calendar cal)Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.TimeResultSet. getTime(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.TimeResultSet. getTime(String columnLabel, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.TimestampCallableStatement. getTimestamp(String parameterName)Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.TimestampCallableStatement. getTimestamp(String parameterName, Calendar cal)Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.TimestampResultSet. 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.TimestampResultSet. 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.ResultSetDatabaseMetaData. getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)Retrieves a description of the user-defined types (UDTs) defined in a particular schema.InputStreamResultSet. getUnicodeStream(String columnLabel)Deprecated.usegetCharacterStreaminsteadURLCallableStatement. getURL(String parameterName)Retrieves the value of a JDBCDATALINKparameter as ajava.net.URLobject.URLResultSet. getURL(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject in the Java programming language.ResultSetDatabaseMetaData. 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.StringConnection. nativeSQL(String sql)Converts the given SQL statement into the system's native SQL grammar.ConnectionBuilderConnectionBuilder. password(String password)Specifies the password to be used when creating a connectionlongClob. position(String searchstr, long start)Retrieves the character position at which the specified substringsearchstrappears in the SQLCLOBvalue represented by thisClobobject.CallableStatementConnection. prepareCall(String sql)Creates aCallableStatementobject for calling database stored procedures.CallableStatementConnection. prepareCall(String sql, int resultSetType, int resultSetConcurrency)Creates aCallableStatementobject that will generateResultSetobjects with the given type and concurrency.CallableStatementConnection. prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)Creates aCallableStatementobject that will generateResultSetobjects with the given type and concurrency.PreparedStatementConnection. prepareStatement(String sql)Creates aPreparedStatementobject for sending parameterized SQL statements to the database.PreparedStatementConnection. prepareStatement(String sql, int autoGeneratedKeys)Creates a defaultPreparedStatementobject that has the capability to retrieve auto-generated keys.PreparedStatementConnection. prepareStatement(String sql, int[] columnIndexes)Creates a defaultPreparedStatementobject capable of returning the auto-generated keys designated by the given array.PreparedStatementConnection. prepareStatement(String sql, int resultSetType, int resultSetConcurrency)Creates aPreparedStatementobject that will generateResultSetobjects with the given type and concurrency.PreparedStatementConnection. prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)Creates aPreparedStatementobject that will generateResultSetobjects with the given type, concurrency, and holdability.PreparedStatementConnection. prepareStatement(String sql, String[] columnNames)Creates a defaultPreparedStatementobject capable of returning the auto-generated keys designated by the given array.static voidDriverManager. println(String message)Prints a message to the current JDBC log stream.voidSQLData. readSQL(SQLInput stream, String typeName)Populates 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.voidCallableStatement. setBlob(String parameterName, Blob x)Sets the designated parameter to the givenjava.sql.Blobobject.voidCallableStatement. setBoolean(String parameterName, boolean x)Sets the designated parameter to the given Javabooleanvalue.voidCallableStatement. setByte(String parameterName, byte x)Sets the designated parameter to the given Javabytevalue.voidCallableStatement. setBytes(String parameterName, byte[] x)Sets 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.voidCallableStatement. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidCallableStatement. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidCallableStatement. setClob(String parameterName, Clob x)Sets 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.voidCallableStatement. setDate(String parameterName, Date x)Sets the designated parameter to the givenjava.sql.Datevalue using the default time zone of the virtual machine that is running the application.voidCallableStatement. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidCallableStatement. setDouble(String parameterName, double x)Sets the designated parameter to the given Javadoublevalue.voidCallableStatement. setFloat(String parameterName, float x)Sets the designated parameter to the given Javafloatvalue.voidCallableStatement. setInt(String parameterName, int x)Sets the designated parameter to the given Javaintvalue.voidCallableStatement. setLong(String parameterName, long x)Sets 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.voidCallableStatement. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidCallableStatement. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidCallableStatement. setNClob(String parameterName, NClob value)Sets 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.voidCallableStatement. setNull(String parameterName, int sqlType)Sets the designated parameter to SQLNULL.voidCallableStatement. setNull(String parameterName, int sqlType, String typeName)Sets the designated parameter to SQLNULL.voidPreparedStatement. setNull(int parameterIndex, int sqlType, String typeName)Sets the designated parameter to SQLNULL.voidCallableStatement. setObject(String parameterName, Object x)Sets the value of the designated parameter with the given object.voidCallableStatement. setObject(String parameterName, Object x, int targetSqlType)Sets the value of the designated parameter with the given object.voidCallableStatement. setObject(String parameterName, Object x, int targetSqlType, int scale)Sets the value of the designated parameter with the given object.default voidCallableStatement. setObject(String parameterName, Object x, SQLType targetSqlType)Sets 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.voidCallableStatement. setRowId(String parameterName, RowId x)Sets the designated parameter to the givenjava.sql.RowIdobject.SavepointConnection. setSavepoint(String name)Creates a savepoint with the given name in the current transaction and returns the newSavepointobject that represents it.voidConnection. setSchema(String schema)Sets the given schema name to access.voidCallableStatement. setShort(String parameterName, short x)Sets the designated parameter to the given Javashortvalue.voidCallableStatement. setSQLXML(String parameterName, SQLXML xmlObject)Sets the designated parameter to the givenjava.sql.SQLXMLobject.voidCallableStatement. setString(String parameterName, String x)Sets the designated parameter to the given JavaStringvalue.intClob. setString(long pos, String str)Writes the given JavaStringto theCLOBvalue that thisClobobject designates at the positionpos.intClob. setString(long pos, String str, int offset, int len)Writeslencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.voidPreparedStatement. setString(int parameterIndex, String x)Sets the designated parameter to the given JavaStringvalue.voidSQLXML. setString(String value)Sets the XML value designated by this SQLXML instance to the given String representation.voidCallableStatement. setTime(String parameterName, Time x)Sets the designated parameter to the givenjava.sql.Timevalue.voidCallableStatement. setTime(String parameterName, Time x, Calendar cal)Sets 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.voidCallableStatement. setURL(String parameterName, URL val)Sets 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.voidResultSet. updateInt(String columnLabel, int x)Updates 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.voidResultSet. updateRef(String columnLabel, Ref x)Updates 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.ConnectionBuilderConnectionBuilder. user(String username)Specifies the username to be used when creating a connectionstatic ClientInfoStatusClientInfoStatus. valueOf(String name)Returns the enum constant of this type with the specified name.static DateDate. valueOf(String s)Converts a string in JDBC date escape format to aDatevalue.static JDBCTypeJDBCType. valueOf(String name)Returns the enum constant of this type with the specified name.static PseudoColumnUsagePseudoColumnUsage. valueOf(String name)Returns the enum constant of this type with the specified name.static RowIdLifetimeRowIdLifetime. valueOf(String name)Returns the enum constant of this type with the specified name.static TimeTime. valueOf(String s)Converts a string in JDBC time escape format to aTimevalue.static TimestampTimestamp. valueOf(String s)Converts 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.Method parameters in java.sql with type arguments of type String Modifier and Type Method Description ObjectArray. getArray(long index, int count, Map<String,Class<?>> map)Retrieves a slice of the SQLARRAYvalue designated by thisArrayobject, beginning with the specifiedindexand containing up tocountsuccessive elements of the SQL array.ObjectArray. getArray(Map<String,Class<?>> map)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.ObjectCallableStatement. getObject(int parameterIndex, Map<String,Class<?>> map)Returns an object representing the value of OUT parameterparameterIndexand usesmapfor the custom mapping of the parameter value.ObjectCallableStatement. getObject(String parameterName, Map<String,Class<?>> map)Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custom mapping of the parameter value.ObjectRef. getObject(Map<String,Class<?>> map)Retrieves the referenced object and maps it to a Java type using the given type map.ObjectResultSet. getObject(int columnIndex, Map<String,Class<?>> map)Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.ObjectResultSet. getObject(String columnLabel, Map<String,Class<?>> map)Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.ResultSetArray. 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.ResultSetArray. 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.Constructors in java.sql with parameters of type String Constructor Description BatchUpdateException(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.SQLFeatureNotSupportedException(String reason)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.SQLIntegrityConstraintViolationException(String reason)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.SQLInvalidAuthorizationSpecException(String reason)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.SQLNonTransientConnectionException(String reason)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 aSQLTransientExceptionobject 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 aSQLTransientExceptionobject 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.SQLTransactionRollbackException(String reason)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.SQLTransientConnectionException(String reason)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.Constructor parameters in java.sql with type arguments of type String Constructor Description 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.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
Methods in java.text that return String Modifier and Type Method Description StringDateFormat. format(Date date)Formats aDateinto a date-time string.StringFormat. format(Object obj)Formats an object to produce a string.static StringMessageFormat. format(String pattern, Object... arguments)Creates a MessageFormat with the given pattern and uses it to format the given arguments.StringNumberFormat. format(double number)Specialization of format.StringNumberFormat. format(long number)Specialization of format.String[]DateFormatSymbols. getAmPmStrings()Gets ampm strings.StringDecimalFormatSymbols. getCurrencySymbol()Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.String[]DateFormatSymbols. getEras()Gets era strings.StringDecimalFormatSymbols. getExponentSeparator()Returns the string used to separate the mantissa from the exponent.StringDecimalFormatSymbols. getInfinity()Gets the string used to represent infinity.StringDecimalFormatSymbols. getInternationalCurrencySymbol()Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.StringDateFormatSymbols. getLocalPatternChars()Gets localized date-time pattern characters.String[]DateFormatSymbols. getMonths()Gets month strings.protected StringAttributedCharacterIterator.Attribute. getName()Returns the name of the attribute.StringDecimalFormatSymbols. getNaN()Gets the string used to represent "not a number".StringDecimalFormat. getNegativePrefix()Get the negative prefix.StringDecimalFormat. getNegativeSuffix()Get the negative suffix.StringDecimalFormat. getPositivePrefix()Get the positive prefix.StringDecimalFormat. getPositiveSuffix()Get the positive suffix.StringRuleBasedCollator. getRules()Gets the table-based rules for the collation object.String[]DateFormatSymbols. getShortMonths()Gets short month strings.String[]DateFormatSymbols. getShortWeekdays()Gets short weekday strings.StringCollationKey. 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.StringDecimalFormat. toLocalizedPattern()Synthesizes a localized pattern string that represents the current state of this Format object.StringSimpleDateFormat. toLocalizedPattern()Returns a localized pattern string describing this date format.StringChoiceFormat. toPattern()Gets the pattern.StringDecimalFormat. toPattern()Synthesizes a pattern string that represents the current state of this Format object.StringMessageFormat. toPattern()Returns a pattern representing the current state of the message format.StringSimpleDateFormat. toPattern()Returns a pattern string describing this date format.StringAnnotation. toString()Returns the String representation of this Annotation.StringAttributedCharacterIterator.Attribute. toString()Returns a string representation of the object.StringBidi. toString()Display the bidi internal state, used in debugging.StringFieldPosition. toString()Return a string representation of this FieldPosition.StringParsePosition. toString()Return a string representation of this ParsePosition.Methods in java.text with parameters of type String Modifier and Type Method Description voidDecimalFormat. 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 intCollator. compare(String source, String target)Compares the source string to the target string according to the collation rules for this Collator.intRuleBasedCollator. compare(String source, String target)Compares the character data stored in two different strings based on the collation rules.booleanCollator. equals(String source, String target)Convenience method for comparing the equality of two strings based on this Collator's collation rules.static StringMessageFormat. format(String pattern, Object... arguments)Creates a MessageFormat with the given pattern and uses it to format the given arguments.CollationElementIteratorRuleBasedCollator. 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.CollationKeyRuleBasedCollator. getCollationKey(String source)Transforms the string into a series of characters that can be compared with CollationKey.compareTo.NumberChoiceFormat. parse(String text, ParsePosition status)Parses a Number from the input text.NumberCompactNumberFormat. parse(String text, ParsePosition pos)Parses a compact number from a string to produce aNumber.DateDateFormat. parse(String source)Parses text from the beginning of the given string to produce a date.abstract DateDateFormat. parse(String source, ParsePosition pos)Parse a date/time string according to the given parse position.NumberDecimalFormat. parse(String text, ParsePosition pos)Parses text from a string to produce aNumber.Object[]MessageFormat. parse(String source)Parses text from the beginning of the given string to produce an object array.Object[]MessageFormat. parse(String source, ParsePosition pos)Parses the string.NumberNumberFormat. parse(String source)Parses text from the beginning of the given string to produce a number.abstract NumberNumberFormat. parse(String source, ParsePosition parsePosition)Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, Long.MAX_VALUE] and with no decimals), otherwise a Double.DateSimpleDateFormat. parse(String text, ParsePosition pos)Parses text from a string to produce aDate.ObjectDateFormat. parseObject(String source, ParsePosition pos)Parses text from a string to produce aDate.ObjectFormat. parseObject(String source)Parses text from the beginning of the given string to produce an object.abstract ObjectFormat. parseObject(String source, ParsePosition pos)Parses text from a string to produce an object.ObjectMessageFormat. parseObject(String source, ParsePosition pos)Parses text from a string to produce an object array.ObjectNumberFormat. parseObject(String source, ParsePosition pos)Parses text from a string to produce aNumber.voidDateFormatSymbols. setAmPmStrings(String[] newAmpms)Sets ampm strings.voidChoiceFormat. setChoices(double[] limits, String[] formats)Set the choices to be used in formatting.voidDecimalFormatSymbols. setCurrencySymbol(String currency)Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale.voidDateFormatSymbols. setEras(String[] newEras)Sets era strings.voidDecimalFormatSymbols. setExponentSeparator(String exp)Sets the string used to separate the mantissa from the exponent.voidDecimalFormatSymbols. setInfinity(String infinity)Sets the string used to represent infinity.voidDecimalFormatSymbols. setInternationalCurrencySymbol(String currencyCode)Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols.voidDateFormatSymbols. setLocalPatternChars(String newLocalPatternChars)Sets localized date-time pattern characters.voidDateFormatSymbols. setMonths(String[] newMonths)Sets month strings.voidDecimalFormatSymbols. setNaN(String NaN)Sets the string used to represent "not a number".voidDecimalFormat. setNegativePrefix(String newValue)Set the negative prefix.voidDecimalFormat. setNegativeSuffix(String newValue)Set the negative suffix.voidDecimalFormat. setPositivePrefix(String newValue)Set the positive prefix.voidDecimalFormat. setPositiveSuffix(String newValue)Set the positive suffix.voidDateFormatSymbols. setShortMonths(String[] newShortMonths)Sets short month strings.voidDateFormatSymbols. setShortWeekdays(String[] newShortWeekdays)Sets short weekday strings.voidBreakIterator. setText(String newText)Set a new text string to be scanned.voidCollationElementIterator. setText(String source)Set a new string over which to iterate.voidStringCharacterIterator. setText(String text)Reset this iterator to point to a new string.voidDateFormatSymbols. setWeekdays(String[] newWeekdays)Sets weekday strings.voidDateFormatSymbols. setZoneStrings(String[][] newZoneStrings)Sets time zone strings.static Normalizer.FormNormalizer.Form. valueOf(String name)Returns the enum constant of this type with the specified name.static NumberFormat.StyleNumberFormat.Style. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.text with parameters of type String Constructor Description Attribute(String name)Constructs anAttributewith the given name.AttributedString(String text)Constructs an AttributedString instance with the given text.AttributedString(String text, Map<? extends AttributedCharacterIterator.Attribute,?> attributes)Constructs an AttributedString instance with the given text and attributes.Bidi(String paragraph, int flags)Create Bidi from the given paragraph of text and base direction.ChoiceFormat(double[] limits, String[] formats)Constructs with the limits and the corresponding formats.ChoiceFormat(String newPattern)Constructs with limits and corresponding formats based on the pattern.CollationKey(String source)CollationKey constructor.CompactNumberFormat(String decimalPattern, DecimalFormatSymbols symbols, String[] compactPatterns)Creates aCompactNumberFormatusing the given decimal pattern, decimal format symbols and compact patterns.CompactNumberFormat(String decimalPattern, DecimalFormatSymbols symbols, String[] compactPatterns, String pluralRules)Creates aCompactNumberFormatusing the given decimal pattern, decimal format symbols, compact patterns, and plural rules.DecimalFormat(String pattern)Creates a DecimalFormat using the given pattern and the symbols for the defaultFORMATlocale.DecimalFormat(String pattern, DecimalFormatSymbols symbols)Creates a DecimalFormat using the given pattern and symbols.Field(String name, int calendarField)Creates aField.Field(String name)Creates a Field with the specified name.Field(String name)Creates a Field with the specified name.Field(String name)Creates a Field instance with the specified name.MessageFormat(String pattern)Constructs a MessageFormat for the defaultFORMATlocale and the specified pattern.MessageFormat(String pattern, Locale locale)Constructs a MessageFormat for the specified locale and pattern.ParseException(String s, int errorOffset)Constructs a ParseException with the specified detail message and offset.RuleBasedCollator(String rules)RuleBasedCollator constructor.SimpleDateFormat(String pattern)Constructs aSimpleDateFormatusing the given pattern and the default date format symbols for the defaultFORMATlocale.SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols)Constructs aSimpleDateFormatusing the given pattern and date format symbols.SimpleDateFormat(String pattern, Locale locale)Constructs aSimpleDateFormatusing the given pattern and the default date format symbols for the given locale.StringCharacterIterator(String text)Constructs an iterator with an initial index of 0.StringCharacterIterator(String text, int pos)Constructs an iterator with the specified initial index.StringCharacterIterator(String text, int begin, int end, int pos)Constructs an iterator over the given range of the given string, with the index set at the specified position. -
Uses of String in java.time
Fields in java.time with type parameters of type String Modifier and Type Field Description static Map<String,String>ZoneId. SHORT_IDSA map of zone overrides to enable the short time-zone names to be used.static Map<String,String>ZoneId. SHORT_IDSA map of zone overrides to enable the short time-zone names to be used.Methods in java.time that return String Modifier and Type Method Description StringLocalDate. format(DateTimeFormatter formatter)Formats this date using the specified formatter.StringLocalDateTime. format(DateTimeFormatter formatter)Formats this date-time using the specified formatter.StringLocalTime. format(DateTimeFormatter formatter)Formats this time using the specified formatter.StringMonthDay. format(DateTimeFormatter formatter)Formats this month-day using the specified formatter.StringOffsetDateTime. format(DateTimeFormatter formatter)Formats this date-time using the specified formatter.StringOffsetTime. format(DateTimeFormatter formatter)Formats this time using the specified formatter.StringYear. format(DateTimeFormatter formatter)Formats this year using the specified formatter.StringYearMonth. format(DateTimeFormatter formatter)Formats this year-month using the specified formatter.StringZonedDateTime. format(DateTimeFormatter formatter)Formats this date-time using the specified formatter.StringDayOfWeek. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Mon' or 'Friday'.StringMonth. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Jan' or 'December'.StringZoneId. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of the zone, such as 'British Time' or '+02:00'.abstract StringZoneId. getId()Gets the unique time-zone ID.StringZoneOffset. getId()Gets the normalized zone offset ID.StringDuration. toString()A string representation of this duration using ISO-8601 seconds based representation, such asPT8H6M12.345S.StringInstant. toString()A string representation of this instant using ISO-8601 representation.StringLocalDate. toString()Outputs this date as aString, such as2007-12-03.StringLocalDateTime. toString()Outputs this date-time as aString, such as2007-12-03T10:15:30.StringLocalTime. toString()Outputs this time as aString, such as10:15.StringMonthDay. toString()Outputs this month-day as aString, such as--12-03.StringOffsetDateTime. toString()Outputs this date-time as aString, such as2007-12-03T10:15:30+01:00.StringOffsetTime. toString()Outputs this time as aString, such as10:15:30+01:00.StringPeriod. toString()Outputs this period as aString, such asP6Y3M1D.StringYear. toString()Outputs this year as aString.StringYearMonth. toString()Outputs this year-month as aString, such as2007-12.StringZonedDateTime. toString()Outputs this date-time as aString, such as2007-12-03T10:15:30+01:00[Europe/Paris].StringZoneId. toString()Outputs this zone as aString, using the ID.StringZoneOffset. toString()Outputs this offset as aString, using the normalized ID.Methods in java.time that return types with arguments of type String Modifier and Type Method Description static Set<String>ZoneId. getAvailableZoneIds()Gets the set of available zone IDs.Methods in java.time with parameters of type String Modifier and Type Method Description static ZoneIdZoneId. of(String zoneId)Obtains an instance ofZoneIdfrom an ID ensuring that the ID is valid and available for use.static ZoneIdZoneId. of(String zoneId, Map<String,String> aliasMap)Obtains an instance ofZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.static ZoneOffsetZoneOffset. of(String offsetId)Obtains an instance ofZoneOffsetusing the ID.static ZoneIdZoneId. ofOffset(String prefix, ZoneOffset offset)Obtains an instance ofZoneIdwrapping an offset.static DayOfWeekDayOfWeek. valueOf(String name)Returns the enum constant of this type with the specified name.static MonthMonth. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.time with type arguments of type String Modifier and Type Method Description static ZoneIdZoneId. of(String zoneId, Map<String,String> aliasMap)Obtains an instance ofZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.static ZoneIdZoneId. of(String zoneId, Map<String,String> aliasMap)Obtains an instance ofZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.Constructors in java.time with parameters of type String Constructor Description DateTimeException(String message)Constructs a new date-time exception with the specified message.DateTimeException(String message, Throwable cause)Constructs a new date-time exception with the specified message and cause. -
Uses of String in java.time.chrono
Methods in java.time.chrono that return String Modifier and Type Method Description default StringChronoLocalDate. format(DateTimeFormatter formatter)Formats this date using the specified formatter.default StringChronoLocalDateTime. format(DateTimeFormatter formatter)Formats this date-time using the specified formatter.default StringChronoZonedDateTime. format(DateTimeFormatter formatter)Formats this date-time using the specified formatter.StringChronology. getCalendarType()Gets the calendar type of the calendar system.StringHijrahChronology. getCalendarType()Gets the calendar type of the Islamic calendar.StringIsoChronology. getCalendarType()Gets the calendar type of the underlying calendar system - 'iso8601'.StringJapaneseChronology. getCalendarType()Gets the calendar type of the underlying calendar system - 'japanese'.StringMinguoChronology. getCalendarType()Gets the calendar type of the underlying calendar system - 'roc'.StringThaiBuddhistChronology. getCalendarType()Gets the calendar type of the underlying calendar system - 'buddhist'.default StringChronology. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this chronology.default StringEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringHijrahEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringJapaneseEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringMinguoEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringThaiBuddhistEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringChronology. getId()Gets the ID of the chronology.StringHijrahChronology. getId()Gets the ID of the chronology.StringIsoChronology. getId()Gets the ID of the chronology - 'ISO'.StringJapaneseChronology. getId()Gets the ID of the chronology - 'Japanese'.StringMinguoChronology. getId()Gets the ID of the chronology - 'Minguo'.StringThaiBuddhistChronology. getId()Gets the ID of the chronology - 'ThaiBuddhist'.StringAbstractChronology. toString()Outputs this chronology as aString, using the chronology ID.StringChronoLocalDate. toString()Outputs this date as aString.StringChronoLocalDateTime. toString()Outputs this date-time as aString.StringChronology. toString()Outputs this chronology as aString.StringChronoPeriod. toString()Outputs this period as aString.StringChronoZonedDateTime. toString()Outputs this date-time as aString.Methods in java.time.chrono with parameters of type String Modifier and Type Method Description static ChronologyChronology. of(String id)Obtains an instance ofChronologyfrom a chronology ID or calendar system type.static HijrahEraHijrahEra. valueOf(String name)Returns the enum constant of this type with the specified name.static IsoEraIsoEra. valueOf(String name)Returns the enum constant of this type with the specified name.static JapaneseEraJapaneseEra. valueOf(String japaneseEra)Returns theJapaneseErawith the name.static MinguoEraMinguoEra. valueOf(String name)Returns the enum constant of this type with the specified name.static ThaiBuddhistEraThaiBuddhistEra. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in java.time.format
Methods in java.time.format that return String Modifier and Type Method Description StringDateTimeFormatter. format(TemporalAccessor temporal)Formats a date-time object using this formatter.static StringDateTimeFormatterBuilder. getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, Locale locale)Gets the formatting pattern for date and time styles for a locale and chronology.StringDateTimeParseException. getParsedString()Returns the string that was being parsed.StringDateTimeFormatter. toString()Returns a description of the underlying formatters.StringDecimalStyle. toString()Returns a string describing this DecimalStyle.Methods in java.time.format with parameters of type String Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendLiteral(String literal)Appends a string literal to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendOffset(String pattern, String noOffsetText)Appends the zone offset, such as '+01:00', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendPattern(String pattern)Appends the elements defined by the specified pattern to the builder.static DateTimeFormatterDateTimeFormatter. ofPattern(String pattern)Creates a formatter using the specified pattern.static DateTimeFormatterDateTimeFormatter. ofPattern(String pattern, Locale locale)Creates a formatter using the specified pattern and locale.static FormatStyleFormatStyle. valueOf(String name)Returns the enum constant of this type with the specified name.static ResolverStyleResolverStyle. valueOf(String name)Returns the enum constant of this type with the specified name.static SignStyleSignStyle. valueOf(String name)Returns the enum constant of this type with the specified name.static TextStyleTextStyle. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.time.format with type arguments of type String Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendText(TemporalField field, Map<Long,String> textLookup)Appends the text of a date-time field to the formatter using the specified map to supply the text.Constructors in java.time.format with parameters of type String Constructor Description DateTimeParseException(String message, CharSequence parsedData, int errorIndex)Constructs a new exception with the specified message.DateTimeParseException(String message, CharSequence parsedData, int errorIndex, Throwable cause)Constructs a new exception with the specified message and cause. -
Uses of String in java.time.temporal
Methods in java.time.temporal that return String Modifier and Type Method Description default StringTemporalField. getDisplayName(Locale locale)Gets the display name for the field in the requested locale.StringTemporalField. toString()Gets a descriptive name for the field.StringTemporalUnit. toString()Gets a descriptive name for the unit.StringValueRange. toString()Outputs this range as aString.StringWeekFields. toString()A string representation of thisWeekFieldsinstance.Methods in java.time.temporal with parameters of type String Modifier and Type Method Description static ChronoFieldChronoField. valueOf(String name)Returns the enum constant of this type with the specified name.static ChronoUnitChronoUnit. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.time.temporal with parameters of type String Constructor Description UnsupportedTemporalTypeException(String message)Constructs a new UnsupportedTemporalTypeException with the specified message.UnsupportedTemporalTypeException(String message, Throwable cause)Constructs a new UnsupportedTemporalTypeException with the specified message and cause. -
Uses of String in java.time.zone
Methods in java.time.zone that return String Modifier and Type Method Description StringZoneOffsetTransition. toString()Returns a string describing this object.StringZoneOffsetTransitionRule. toString()Returns a string describing this object.StringZoneRules. toString()Returns a string describing this object.Methods in java.time.zone that return types with arguments of type String Modifier and Type Method Description static Set<String>ZoneRulesProvider. getAvailableZoneIds()Gets the set of available zone IDs.static NavigableMap<String,ZoneRules>ZoneRulesProvider. getVersions(String zoneId)Gets the history of rules for the zone ID.protected abstract NavigableMap<String,ZoneRules>ZoneRulesProvider. provideVersions(String zoneId)SPI method to get the history of rules for the zone ID.protected abstract Set<String>ZoneRulesProvider. provideZoneIds()SPI method to get the available zone IDs.Methods in java.time.zone with parameters of type String Modifier and Type Method Description static ZoneRulesZoneRulesProvider. getRules(String zoneId, boolean forCaching)Gets the rules for the zone ID.static NavigableMap<String,ZoneRules>ZoneRulesProvider. getVersions(String zoneId)Gets the history of rules for the zone ID.protected abstract ZoneRulesZoneRulesProvider. provideRules(String zoneId, boolean forCaching)SPI method to get the rules for the zone ID.protected abstract NavigableMap<String,ZoneRules>ZoneRulesProvider. provideVersions(String zoneId)SPI method to get the history of rules for the zone ID.static ZoneOffsetTransitionRule.TimeDefinitionZoneOffsetTransitionRule.TimeDefinition. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.time.zone with parameters of type String Constructor Description ZoneRulesException(String message)Constructs a new date-time exception with the specified message.ZoneRulesException(String message, Throwable cause)Constructs a new date-time exception with the specified message and cause. -
Uses of String in java.util
Fields in java.util with type parameters of type String Modifier and Type Field Description static List<String>ResourceBundle.Control. FORMAT_CLASSThe class-only formatListcontaining"java.class".static List<String>ResourceBundle.Control. FORMAT_DEFAULTThe default formatList, which contains the strings"java.class"and"java.properties", in this order.static List<String>ResourceBundle.Control. FORMAT_PROPERTIESThe properties-only formatListcontaining"java.properties".Methods in java.util that return String Modifier and Type Method Description static StringArrays. deepToString(Object[] a)Returns a string representation of the "deep contents" of the specified array.StringBase64.Encoder. encodeToString(byte[] src)Encodes the specified byte array into a String using theBase64encoding scheme.StringScanner. findInLine(String pattern)Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.StringScanner. findInLine(Pattern pattern)Attempts to find the next occurrence of the specified pattern ignoring delimiters.StringScanner. findWithinHorizon(String pattern, int horizon)Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.StringScanner. findWithinHorizon(Pattern pattern, int horizon)Attempts to find the next occurrence of the specified pattern.StringPropertyPermission.