Uses of Class
java.lang.String
-
Packages that use String Package Description com.sun.jarsigner This package comprises the interfaces and classes used to define the signing mechanism used by thejarsignertool.com.sun.java.accessibility.util Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.com.sun.javadoc Note: The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.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 newTransportServiceimplementations.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.jndi.ldap.spi com.sun.management This package contains the JDK's extension to the standard implementation of thejava.lang.managementAPI 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 ofPrincipal.com.sun.security.auth.login Provides an implementation ofConfiguration.com.sun.security.auth.module Provides implementations ofLoginModule.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.javadoc This package and its contents are deprecated and may be removed in a future release.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.instrument Provides services that allow Java programming language agents to instrument programs running on the JVM.java.lang.invoke Thejava.lang.invokepackage 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.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 APIsjava.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 thejava.nio.charsetpackage.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 thejava.nio.filepackage.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.acl The classes and interfaces in this package have been deprecated.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 Classes and hierarchies of packages used to model 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 thejavax.namingpackage 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.spi Provides the means for dynamically plugging in support for accessing naming and directory services through thejavax.namingand 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 Packagejavax.print.attribute.standardcontains classes for specific printing attributes.javax.print.event Packagejavax.print.eventcontains event classes and listener interfaces.javax.rmi.ssl Provides implementations ofRMIClientSocketFactoryandRMIServerSocketFactoryover 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 APIjavax.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 JDBCRowSetimplementations.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 theJColorChoosercomponent.javax.swing.event Provides for events fired by Swing components.javax.swing.filechooser Contains classes and interfaces used by theJFileChoosercomponent.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 withjavax.swing.JTable.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand 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 withjavax.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 thejavax.xml.cryptopackage.javax.xml.crypto.dsig Classes for generating and validating XML digital signatures.javax.xml.crypto.dsig.keyinfo Classes for parsing and processingKeyInfoelements 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 aninvokedynamiccall 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.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 thejavax.scriptintegration, 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 thejava.netandjava.nio.channelssocket 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 ofDOMImplementation.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 core SAX APIs.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.javadoc
Methods in com.sun.javadoc that return String Modifier and Type Method Description StringDoc. commentText()Deprecated, for removal: This API element is subject to removal in a future version.Return the text of the comment for this doc item.StringFieldDoc. constantValueExpression()Deprecated, for removal: This API element is subject to removal in a future version.Get the value of a constant field.StringSerialFieldTag. description()Deprecated, for removal: This API element is subject to removal in a future version.Return the field comment.StringType. dimension()Deprecated, for removal: This API element is subject to removal in a future version.Return the type's dimension information, as a string.StringThrowsTag. exceptionComment()Deprecated, for removal: This API element is subject to removal in a future version.Return the exception comment associated with thisThrowsTag.StringThrowsTag. exceptionName()Deprecated, for removal: This API element is subject to removal in a future version.Return the name of the exception associated with thisThrowsTag.StringSerialFieldTag. fieldName()Deprecated, for removal: This API element is subject to removal in a future version.Return the serializable field name.StringSerialFieldTag. fieldType()Deprecated, for removal: This API element is subject to removal in a future version.Return the field type string.StringExecutableMemberDoc. flatSignature()Deprecated, for removal: This API element is subject to removal in a future version.get flat signature.StringDoc. getRawCommentText()Deprecated, for removal: This API element is subject to removal in a future version.Return the full unprocessed text of the comment.StringTag. kind()Deprecated, for removal: This API element is subject to removal in a future version.Return the kind of this tag.StringSeeTag. label()Deprecated, for removal: This API element is subject to removal in a future version.Get the label of the@seetag.StringProgramElementDoc. modifiers()Deprecated, for removal: This API element is subject to removal in a future version.Get modifiers string.StringDoc. name()Deprecated, for removal: This API element is subject to removal in a future version.Returns the non-qualified name of this Doc item.StringParameter. name()Deprecated, for removal: This API element is subject to removal in a future version.Get local name of this parameter.StringTag. name()Deprecated, for removal: This API element is subject to removal in a future version.Return the name of this tag.String[][]RootDoc. options()Deprecated, for removal: This API element is subject to removal in a future version.Command line options.StringParamTag. parameterComment()Deprecated, for removal: This API element is subject to removal in a future version.Return the parameter comment associated with thisParamTag.StringParamTag. parameterName()Deprecated, for removal: This API element is subject to removal in a future version.Return the name of the parameter or type parameter associated with thisParamTag.StringProgramElementDoc. qualifiedName()Deprecated, for removal: This API element is subject to removal in a future version.Get the fully qualified name of this program element.StringType. qualifiedTypeName()Deprecated, for removal: This API element is subject to removal in a future version.Return qualified name of type excluding any dimension information.StringSeeTag. referencedClassName()Deprecated, for removal: This API element is subject to removal in a future version.Get the class or interface name of the@seereference.StringSeeTag. referencedMemberName()Deprecated, for removal: This API element is subject to removal in a future version.Get the field, constructor or method substring of the@seereference.StringExecutableMemberDoc. signature()Deprecated, for removal: This API element is subject to removal in a future version.Get the signature.StringType. simpleTypeName()Deprecated, for removal: This API element is subject to removal in a future version.Return the simple name of this type excluding any dimension information.StringTag. text()Deprecated, for removal: This API element is subject to removal in a future version.Return the text of this tag, that is, the portion beyond tag name.StringAnnotationValue. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of the value.StringParameter. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of the parameter.StringSourcePosition. toString()Deprecated, for removal: This API element is subject to removal in a future version.Convert the source position to the form "Filename:line".StringTag. toString()Deprecated, for removal: This API element is subject to removal in a future version.Convert this object to a string.StringType. toString()Deprecated, for removal: This API element is subject to removal in a future version.Return a string representation of the type.StringParameter. typeName()Deprecated, for removal: This API element is subject to removal in a future version.Get type name of this parameter.StringType. typeName()Deprecated, for removal: This API element is subject to removal in a future version.Return unqualified name of type excluding any dimension information.Methods in com.sun.javadoc with parameters of type String Modifier and Type Method Description ClassDocRootDoc. classNamed(String qualifiedName)Deprecated, for removal: This API element is subject to removal in a future version.Return a ClassDoc for the specified class or interface name.ClassDocClassDoc. findClass(String className)Deprecated, for removal: This API element is subject to removal in a future version.Find the specified class or interface within the context of this class doc.ClassDocPackageDoc. findClass(String className)Deprecated, for removal: This API element is subject to removal in a future version.Lookup a class or interface within this package.static intDoclet. optionLength(String option)Deprecated, for removal: This API element is subject to removal in a future version.Check for doclet-added options.PackageDocRootDoc. packageNamed(String name)Deprecated, for removal: This API element is subject to removal in a future version.Return a PackageDoc for the specified package name.voidDocErrorReporter. printError(SourcePosition pos, String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print an error message and increment error count.voidDocErrorReporter. printError(String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print error message and increment error count.voidDocErrorReporter. printNotice(SourcePosition pos, String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print a message.voidDocErrorReporter. printNotice(String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print a message.voidDocErrorReporter. printWarning(SourcePosition pos, String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print warning message and increment warning count.voidDocErrorReporter. printWarning(String msg)Deprecated, for removal: This API element is subject to removal in a future version.Print warning message and increment warning count.voidDoc. setRawCommentText(String rawDocumentation)Deprecated, for removal: This API element is subject to removal in a future version.Set the full unprocessed text of the comment.Tag[]Doc. tags(String tagname)Deprecated, for removal: This API element is subject to removal in a future version.Return tags of the specified kind in this Doc item.static booleanDoclet. validOptions(String[][] options, DocErrorReporter reporter)Deprecated, for removal: This API element is subject to removal in a future version.Check that options have the correct arguments.static LanguageVersionLanguageVersion. valueOf(String name)Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this type with the specified name. -
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.jndi.ldap.spi
Methods in com.sun.jndi.ldap.spi that return String Modifier and Type Method Description StringLdapDnsProviderResult. getDomainName()Returns the domain name resolved from the ldap URL.Methods in com.sun.jndi.ldap.spi that return types with arguments of type String Modifier and Type Method Description List<String>LdapDnsProviderResult. getEndpoints()Returns the possibly empty list of individual server endpoints resolved from the ldap URL.Methods in com.sun.jndi.ldap.spi with parameters of type String Modifier and Type Method Description abstract Optional<LdapDnsProviderResult>LdapDnsProvider. lookupEndpoints(String url, Map<?,?> env)Lookup the endpoints and domain name for the givenContextprovider URLand environment.Constructors in com.sun.jndi.ldap.spi with parameters of type String Constructor Description LdapDnsProviderResult(String domainName, List<String> endpoints)Construct an LdapDnsProviderResult consisting of a resolved domain name and the ldap server endpoints that serve the domain.Constructor parameters in com.sun.jndi.ldap.spi with type arguments of type String Constructor Description LdapDnsProviderResult(String domainName, List<String> endpoints)Construct an LdapDnsProviderResult consisting of a resolved domain name and the ldap server endpoints that serve the domain. -
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 realmHttpPrincipal(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 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.javadoc
Methods in com.sun.tools.javadoc with parameters of type String Modifier and Type Method Description static intMain. execute(ClassLoader docletParentClassLoader, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, ClassLoader docletParentClassLoader, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, ClassLoader docletParentClassLoader, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, String defaultDocletClassName, ClassLoader docletParentClassLoader, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static intMain. execute(String programName, String defaultDocletClassName, String... args)Deprecated, for removal: This API element is subject to removal in a future version.Programmatic interface.static voidMain. main(String... args)Deprecated, for removal: This API element is subject to removal in a future version.Command line interface. -
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 the URL and 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 an ICC_Profile corresponding to the data in a file.voidICC_Profile. write(String fileName)Write this ICC_Profile to a file.Constructors in java.awt.color with parameters of type String Constructor Description CMMException(String s)Constructs a CMMException with the specified detail message.ProfileDataException(String s)Constructs a ProfileDataException with 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.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).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.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.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. 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.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 trailingwhite spaceremoved.StringString. stripLeading()Returns a string whose value is this string, with all leadingwhite spaceremoved.StringString. stripTrailing()Returns a string whose value is this string, with all trailingwhite spaceremoved.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.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. 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.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 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.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 an ExceptionInInitializerError with 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.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 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".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.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 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 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.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.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.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, 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 aURIConstructors 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.acl
Methods in java.security.acl that return String Modifier and Type Method Description StringAcl. getName()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of this ACL.StringAcl. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of the ACL contents.StringAclEntry. toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of the contents of this ACL entry.StringPermission. toString()Deprecated, for removal: This API element is subject to removal in a future version.Prints a string representation of this permission.Methods in java.security.acl with parameters of type String Modifier and Type Method Description voidAcl. setName(Principal caller, String name)Deprecated, for removal: This API element is subject to removal in a future version.Sets the name of this ACL. -
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.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.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.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. getActions()Returns the "canonical string representation" of the actions.static String[]TimeZone. getAvailableIDs()Gets all the available IDs supported.static String[]TimeZone. getAvailableIDs(int rawOffset)Gets the available IDs according to the given time zone offset in milliseconds.StringResourceBundle. getBaseBundleName()Returns the base name of this bundle, if known, ornullif unknown.StringCalendar. getCalendarType()Returns the calendar type of thisCalendar.StringGregorianCalendar. getCalendarType()Returns"gregory"as the calendar type.StringMissingResourceException. getClassName()Gets parameter passed by constructor.StringUnknownFormatConversionException. getConversion()Returns the unknown conversion.StringLocale. getCountry()Returns the country/region code for this locale, which should either be the empty string, an uppercase ISO 3166 2-letter code, or a UN M.49 3-digit code.StringCurrency. getCurrencyCode()Gets the ISO 4217 currency code of this currency.StringLocale. getDisplayCountry()Returns a name for the locale's country that is appropriate for display to the user.StringLocale. getDisplayCountry(Locale inLocale)Returns a name for the locale's country that is appropriate for display to the user.StringLocale. getDisplayLanguage()Returns a name for the locale's language that is appropriate for display to the user.StringLocale. getDisplayLanguage(Locale inLocale)Returns a name for the locale's language that is appropriate for display to the user.StringCalendar. getDisplayName(int field, int style, Locale locale)Returns the string representation of the calendarfieldvalue in the givenstyleandlocale.StringCurrency. getDisplayName()Gets the name that is suitable for displaying this currency for the defaultDISPLAYlocale.StringCurrency. getDisplayName(Locale locale)Gets the name that is suitable for displaying this currency for the specified locale.StringLocale. getDisplayName()Returns a name for the locale that is appropriate for display to the user.StringLocale. getDisplayName(Locale inLocale)Returns a name for the locale that is appropriate for display to the user.StringTimeZone. getDisplayName()Returns a long standard time name of thisTimeZonesuitable for presentation to the user in the default locale.StringTimeZone. getDisplayName(boolean daylight, int style)Returns a name in the specifiedstyleof thisTimeZonesuitable for presentation to the user in the default locale.StringTimeZone. getDisplayName(boolean daylight, int style, Locale locale)Returns a name in the specifiedstyleof thisTimeZonesuitable for presentation to the user in the specifiedlocale.StringTimeZone. getDisplayName(Locale locale)Returns a long standard time name of thisTimeZonesuitable for presentation to the user in the specifiedlocale.StringLocale. getDisplayScript()Returns a name for the locale's script that is appropriate for display to the user.StringLocale. getDisplayScript(Locale inLocale)Returns a name for the locale's script that is appropriate for display to the user.StringLocale. getDisplayVariant()Returns a name for the locale's variant code that is appropriate for display to the user.StringLocale. getDisplayVariant(Locale inLocale)Returns a name for the locale's variant code that is appropriate for display to the user.StringLocale. getExtension(char key)Returns the extension (or private use) value associated with the specified key, or null if there is no extension associated with the key.StringDuplicateFormatFlagsException. getFlags()Returns the set of flags which contains a duplicate flag.StringFormatFlagsConversionMismatchException. getFlags()Returns the incompatible flag.StringIllegalFormatFlagsException. getFlags()Returns the set of flags which contains an illegal combination.StringUnknownFormatFlagsException. getFlags()Returns the set of flags which contains an unknown flag.StringMissingFormatArgumentException. getFormatSpecifier()Returns the unmatched format specifier.StringMissingFormatWidthException. getFormatSpecifier()Returns the format specifier which does not have a width.StringTimeZone. getID()Gets the ID of this time zone.StringLocale. getISO3Country()Returns a three-letter abbreviation for this locale's country.StringLocale. getISO3Language()Returns a three-letter abbreviation of this locale's language.static String[]Locale. getISOCountries()Returns a list of all 2-letter country codes defined in ISO 3166.static String[]Locale. getISOLanguages()Returns a list of all 2-letter language codes defined in ISO 639.StringMissingResourceException. getKey()Gets parameter passed by constructor.StringLocale. getLanguage()Returns the language code of this Locale.StringCurrency. getNumericCodeAsString()Returns the 3 digit ISO 4217 numeric code of this currency as aString.StringProperties. getProperty(String key)Searches for the property with the specified key in this property list.StringProperties. getProperty(String key, String defaultValue)Searches for the property with the specified key in this property list.StringLocale.LanguageRange. getRange()Returns the language range of thisLanguageRange.StringLocale. getScript()Returns the script for this locale, which should either be the empty string or an ISO 15924 4-letter script code.StringResourceBundle. getString(String key)Gets a string for the given key from this resource bundle or one of its parents.String[]ResourceBundle. getStringArray(String key)Gets a string array for the given key from this resource bundle or one of its parents.StringCurrency. getSymbol()Gets the symbol of this currency for the defaultDISPLAYlocale.StringCurrency. getSymbol(Locale locale)Gets the symbol of this currency for the specified locale.StringLocale. getUnicodeLocaleType(String key)Returns the Unicode locale type associated with the specified Unicode locale key for this locale.StringLocale. getVariant()Returns the variant code for this locale.static StringLocale. lookupTag(List<Locale.LanguageRange> priorityList, Collection<String> tags)Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.StringScanner. next()Finds and returns the next complete token from this scanner.StringScanner. next(String pattern)Returns the next token if it matches the pattern constructed from the specified string.StringScanner. next(Pattern pattern)Returns the next token if it matches the specified pattern.StringScanner. nextLine()Advances this scanner past the current line and returns the input that was skipped.StringStringTokenizer. nextToken()Returns the next token from this string tokenizer.StringStringTokenizer. nextToken(String delim)Returns the next token in this string tokenizer's string.StringResourceBundle.Control. toBundleName(String baseName, Locale locale)Converts the givenbaseNameandlocaleto the bundle name.StringDate. toGMTString()Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date), using a GMTTimeZone.StringLocale. toLanguageTag()Returns a well-formed IETF BCP 47 language tag representing this locale.StringDate. toLocaleString()Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date).StringResourceBundle.Control. toResourceName(String bundleName, String suffix)Converts the givenbundleNameto the form required by theClassLoader.getResourcemethod by replacing all occurrences of'.'inbundleNamewith'/'and appending a'.'and the given filesuffix.StringAbstractCollection. toString()Returns a string representation of this collection.StringAbstractMap.SimpleEntry. toString()Returns a String representation of this map entry.StringAbstractMap.SimpleImmutableEntry. toString()Returns a String representation of this map entry.StringAbstractMap. toString()Returns a string representation of this map.static StringArrays. toString(boolean[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(byte[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(char[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(double[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(float[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(int[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(long[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(short[] a)Returns a string representation of the contents of the specified array.static StringArrays. toString(Object[] a)Returns a string representation of the contents of the specified array.StringBitSet. toString()Returns a string representation of this bit set.StringCalendar. toString()Return a string representation of this calendar.StringCurrency. toString()Returns the ISO 4217 currency code of this currency.StringDate. toString()Converts thisDateobject to aStringof the form:StringDoubleSummaryStatistics. toString()Returns a non-empty string representation of this object suitable for debugging.StringEventObject. toString()Returns a String representation of this EventObject.StringFormatter. toString()Returns the result of invokingtoString()on the destination for the output.StringHashtable. toString()Returns a string representation of thisHashtableobject in the form of a set of entries, enclosed in braces and separated by the ASCII characters "," (comma and space).StringIntSummaryStatistics. toString()Returns a non-empty string representation of this object suitable for debugging.StringLocale.LanguageRange. toString()Returns an informative string representation of thisLanguageRangeobject, consisting of language range and weight if the range is weighted and the weight is less than the max weight.StringLocale. toString()Returns a string representation of thisLocaleobject, consisting of language, country, variant, script, and extensions as below: language + "_" + country + "_" + (variant + "_#" | "#") + script + "_" + extensions Language is always lower case, country is always upper case, script is always title case, and extensions are always lower case.StringLongSummaryStatistics. toString()Returns a non-empty string representation of this object suitable for debugging.static StringObjects. toString(Object o)Returns the result of callingtoStringfor a non-nullargument and"null"for anullargument.static StringObjects. toString(Object o, String nullDefault)Returns the result of callingtoStringon the first argument if the first argument is notnulland returns the second argument otherwise.StringOptional. toString()Returns a non-empty string representation of thisOptionalsuitable for debugging.StringOptionalDouble. toString()Returns a non-empty string representation of thisOptionalDoublesuitable for debugging.StringOptionalInt. toString()Returns a non-empty string representation of thisOptionalIntsuitable for debugging.StringOptionalLong. toString()Returns a non-empty string representation of thisOptionalLongsuitable for debugging.StringScanner. toString()Returns the string representation of thisScanner.StringServiceLoader. toString()Returns a string describing this service.StringSimpleTimeZone. toString()Returns a string representation of this time zone.StringStringJoiner. toString()Returns the current value, consisting of theprefix, the values added so far separated by thedelimiter, and thesuffix, unless no elements have been added in which case, theprefix + suffixor theemptyValuecharacters are returned.StringUUID. toString()Returns aStringobject representing thisUUID.StringVector. toString()Returns a string representation of this Vector, containing the String representation of each element.Methods in java.util that return types with arguments of type String Modifier and Type Method Description static List<String>Locale. filterTags(List<Locale.LanguageRange> priorityList, Collection<String> tags)Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static List<String>Locale. filterTags(List<Locale.LanguageRange> priorityList, Collection<String> tags, Locale.FilteringMode mode)Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static Set<String>Calendar. getAvailableCalendarTypes()Returns an unmodifiableSetcontaining all calendar types supported byCalendarin the runtime environment.Map<String,Integer>Calendar. getDisplayNames(int field, int style, Locale locale)Returns aMapcontaining all names of the calendarfieldin the givenstyleandlocaleand their corresponding field values.List<String>ResourceBundle.Control. getFormats(String baseName)Returns aListofStrings containing formats to be used to load resource bundles for the givenbaseName.static Set<String>Locale. getISOCountries(Locale.IsoCountryCode type)Returns aSetof ISO3166 country codes for the specified type.Enumeration<String>ListResourceBundle. getKeys()Returns anEnumerationof the keys contained in thisResourceBundleand its parent bundles.Enumeration<String>PropertyResourceBundle. getKeys()Returns anEnumerationof the keys contained in thisResourceBundleand its parent bundles.abstract Enumeration<String>ResourceBundle. getKeys()Returns an enumeration of the keys.Set<String>Locale. getUnicodeLocaleAttributes()Returns the set of unicode locale attributes associated with this locale, or the empty set if it has no attributes.Set<String>Locale. getUnicodeLocaleKeys()Returns the set of Unicode locale keys defined by this locale, or the empty set if this locale has none.protected Set<String>ListResourceBundle. handleKeySet()Returns aSetof the keys contained only in thisResourceBundle.protected Set<String>PropertyResourceBundle. handleKeySet()Returns aSetof the keys contained only in thisResourceBundle.protected Set<String>ResourceBundle. handleKeySet()Returns aSetof the keys contained only in thisResourceBundle.Set<String>ResourceBundle. keySet()Returns aSetof all keys contained in thisResourceBundleand its parent bundles.Set<String>Properties. stringPropertyNames()Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.Stream<String>Scanner. tokens()Returns a stream of delimiter-separated tokens from this scanner.Methods in java.util with parameters of type String Modifier and Type Method Description Locale.BuilderLocale.Builder. addUnicodeLocaleAttribute(String attribute)Adds a unicode locale attribute, if not already present, otherwise has no effect.booleanResourceBundle. containsKey(String key)Determines whether the givenkeyis contained in thisResourceBundleor its parent bundles.byte[]Base64.Decoder. decode(String src)Decodes a Base64 encoded String into a newly-allocated byte array using theBase64encoding scheme.Stream<MatchResult>Scanner. findAll(String patString)Returns a stream of match results that match the provided pattern string.StringScanner. findInLine(String pattern)Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.StringScanner. findWithinHorizon(String pattern, int horizon)Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.static LocaleLocale. forLanguageTag(String languageTag)Returns a locale for the specified IETF BCP 47 language tag string.FormatterFormatter. format(String format, Object... args)Writes a formatted string to this object's destination using the specified format string and arguments.FormatterFormatter. format(Locale l, String format, Object... args)Writes a formatted string to this object's destination using the specified locale, format string, and arguments.static UUIDUUID. fromString(String name)Creates aUUIDfrom the string standard representation as described in theUUID.toString()method.static ResourceBundleResourceBundle. getBundle(String baseName)Gets a resource bundle using the specified base name, the default locale, and the caller module.static ResourceBundleResourceBundle. getBundle(String baseName, Module module)Gets a resource bundle using the specified base name and the default locale on behalf of the specified module.static ResourceBundleResourceBundle. getBundle(String baseName, Locale locale)Gets a resource bundle using the specified base name and locale, and the caller module.static ResourceBundleResourceBundle. getBundle(String baseName, Locale locale, ClassLoader loader)Gets a resource bundle using the specified base name, locale, and class loader.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control)Returns a resource bundle using the specified base name, target locale, class loader and control.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, Module module)Gets a resource bundle using the specified base name and locale on behalf of the specified module.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ResourceBundle.Control control)Returns a resource bundle using the specified base name, target locale and control, and the caller's class loader.static ResourceBundleResourceBundle. getBundle(String baseName, ResourceBundle.Control control)Returns a resource bundle using the specified base name, the default locale and the specified control.List<Locale>ResourceBundle.Control. getCandidateLocales(String baseName, Locale locale)Returns aListofLocales as candidate locales forbaseNameandlocale.LocaleResourceBundle.Control. getFallbackLocale(String baseName, Locale locale)Returns aLocaleto be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundlefactory method.List<String>ResourceBundle.Control. getFormats(String baseName)Returns aListofStrings containing formats to be used to load resource bundles for the givenbaseName.static CurrencyCurrency. getInstance(String currencyCode)Returns theCurrencyinstance for the given currency code.ObjectResourceBundle. getObject(String key)Gets an object for the given key from this resource bundle or one of its parents.StringProperties. getProperty(String key)Searches for the property with the specified key in this property list.StringProperties. getProperty(String key, String defaultValue)Searches for the property with the specified key in this property list.StringResourceBundle. getString(String key)Gets a string for the given key from this resource bundle or one of its parents.String[]ResourceBundle. getStringArray(String key)Gets a string array for the given key from this resource bundle or one of its parents.longResourceBundle.Control. getTimeToLive(String baseName, Locale locale)Returns the time-to-live (TTL) value for resource bundles that are loaded under thisResourceBundle.Control.static TimeZoneTimeZone. getTimeZone(String ID)Gets theTimeZonefor the given ID.StringLocale. getUnicodeLocaleType(String key)Returns the Unicode locale type associated with the specified Unicode locale key for this locale.protected abstract ObjectResourceBundle. handleGetObject(String key)Gets an object for the given key from this resource bundle.booleanScanner. hasNext(String pattern)Returns true if the next token matches the pattern constructed from the specified string.booleanResourceBundle.Control. needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)Determines if the expiredbundlein the cache needs to be reloaded based on the loading time given byloadTimeor some other criteria.ResourceBundleResourceBundle.Control. newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.StringScanner. next(String pattern)Returns the next token if it matches the pattern constructed from the specified string.StringStringTokenizer. nextToken(String delim)Returns the next token in this string tokenizer's string.static longDate. parse(String s)Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s).static List<Locale.LanguageRange>Locale.LanguageRange. parse(String ranges)Parses the givenrangesto generate a Language Priority List.static List<Locale.LanguageRange>Locale.LanguageRange. parse(String ranges, Map<String,List<String>> map)Parses the givenrangesto generate a Language Priority List, and then customizes the list using the givenmap.Locale.BuilderLocale.Builder. removeUnicodeLocaleAttribute(String attribute)Removes a unicode locale attribute, if present, otherwise has no effect.static <T> TObjects. requireNonNull(T obj, String message)Checks that the specified object reference is notnulland throws a customizedNullPointerExceptionif it is.voidProperties. save(OutputStream out, String comments)Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list.Calendar.BuilderCalendar.Builder. setCalendarType(String type)Sets the calendar type parameter to the giventype.Locale.BuilderLocale.Builder. setExtension(char key, String value)Sets the extension for the given key.voidTimeZone. setID(String ID)Sets the time zone ID.Locale.BuilderLocale.Builder. setLanguage(String language)Sets the language.Locale.BuilderLocale.Builder. setLanguageTag(String languageTag)Resets the Builder to match the provided IETF BCP 47 language tag.ObjectProperties. setProperty(String key, String value)Calls theHashtablemethodput.Locale.BuilderLocale.Builder. setRegion(String region)Sets the region.Locale.BuilderLocale.Builder. setScript(String script)Sets the script.Locale.BuilderLocale.Builder. setUnicodeLocaleKeyword(String key, String type)Sets the Unicode locale keyword type for the given key.Locale.BuilderLocale.Builder. setVariant(String variant)Sets the variant.ScannerScanner. skip(String pattern)Skips input that matches a pattern constructed from the specified string.voidProperties. store(OutputStream out, String comments)Writes this property list (key and element pairs) in thisPropertiestable to the output stream in a format suitable for loading into aPropertiestable using theload(InputStream)method.voidProperties. store(Writer writer, String comments)Writes this property list (key and element pairs) in thisPropertiestable to the output character stream in a format suitable for using theload(Reader)method.voidProperties. storeToXML(OutputStream os, String comment)Emits an XML document representing all of the properties contained in this table.voidProperties. storeToXML(OutputStream os, String comment, String encoding)Emits an XML document representing all of the properties contained in this table, using the specified encoding.voidProperties. storeToXML(OutputStream os, String comment, Charset charset)Emits an XML document representing all of the properties contained in this table, using the specified encoding.StringResourceBundle.Control. toBundleName(String baseName, Locale locale)Converts the givenbaseNameandlocaleto the bundle name.StringResourceBundle.Control. toResourceName(String bundleName, String suffix)Converts the givenbundleNameto the form required by theClassLoader.getResourcemethod by replacing all occurrences of'.'inbundleNamewith'/'and appending a'.'and the given filesuffix.static StringObjects. toString(Object o, String nullDefault)Returns the result of callingtoStringon the first argument if the first argument is notnulland returns the second argument otherwise.ScannerScanner. useDelimiter(String pattern)Sets this scanner's delimiting pattern to a pattern constructed from the specifiedString.static Formatter.BigDecimalLayoutFormFormatter.BigDecimalLayoutForm. valueOf(String name)Returns the enum constant of this type with the specified name.static Locale.CategoryLocale.Category. valueOf(String name)Returns the enum constant of this type with the specified name.static Locale.FilteringModeLocale.FilteringMode. valueOf(String name)Returns the enum constant of this type with the specified name.static Locale.IsoCountryCodeLocale.IsoCountryCode. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in java.util with type arguments of type String Modifier and Type Method Description static List<String>Locale. filterTags(List<Locale.LanguageRange> priorityList, Collection<String> tags)Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static List<String>Locale. filterTags(List<Locale.LanguageRange> priorityList, Collection<String> tags, Locale.FilteringMode mode)Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static ResourceBundle.ControlResourceBundle.Control. getControl(List<String> formats)static ResourceBundle.ControlResourceBundle.Control. getNoFallbackControl(List<String> formats)Returns aResourceBundle.Controlin which thegetFormatsmethod returns the specifiedformatsand thegetFallbackLocalemethod returnsnull.static StringLocale. lookupTag(List<Locale.LanguageRange> priorityList, Collection<String> tags)Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.static List<Locale.LanguageRange>Locale.LanguageRange. mapEquivalents(List<Locale.LanguageRange> priorityList, Map<String,List<String>> map)Generates a new customized Language Priority List using the givenpriorityListandmap.static List<Locale.LanguageRange>Locale.LanguageRange. mapEquivalents(List<Locale.LanguageRange> priorityList, Map<String,List<String>> map)Generates a new customized Language Priority List using the givenpriorityListandmap.static List<Locale.LanguageRange>Locale.LanguageRange. parse(String ranges, Map<String,List<String>> map)Parses the givenrangesto generate a Language Priority List, and then customizes the list using the givenmap.static List<Locale.LanguageRange>Locale.LanguageRange. parse(String ranges, Map<String,List<String>> map)Parses the givenrangesto generate a Language Priority List, and then customizes the list using the givenmap.static <T> TObjects. requireNonNull(T obj, Supplier<String> messageSupplier)Checks that the specified object reference is notnulland throws a customizedNullPointerExceptionif it is.Constructors in java.util with parameters of type String Constructor Description ConcurrentModificationException(String message)Constructs aConcurrentModificationExceptionwith the specified detail message.ConcurrentModificationException(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.Date(String s)Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s).DuplicateFormatFlagsException(String f)Constructs an instance of this class with the specified flags.FormatFlagsConversionMismatchException(String f, char c)Constructs an instance of this class with the specified flag and conversion.Formatter(File file, String csn)Constructs a new formatter with the specified file and charset.Formatter(File file, String csn, Locale l)Constructs a new formatter with the specified file, charset, and locale.Formatter(OutputStream os, String csn)Constructs a new formatter with the specified output stream and charset.Formatter(OutputStream os, String csn, Locale l)Constructs a new formatter with the specified output stream, charset, and locale.Formatter(String fileName)Constructs a new formatter with the specified file name.Formatter(String fileName, String csn)Constructs a new formatter with the specified file name and charset.Formatter(String fileName, String csn, Locale l)Constructs a new formatter with the specified file name, charset, and locale.Formatter(String fileName, Charset charset, Locale l)Constructs a new formatter with the specified file name, charset, and locale.IllegalFormatFlagsException(String f)Constructs an instance of this class with the specified flags.IllformedLocaleException(String message)Constructs a newIllformedLocaleExceptionwith the given message and -1 as the error index.IllformedLocaleException(String message, int errorIndex)Constructs a newIllformedLocaleExceptionwith the given message and the error index.InputMismatchException(String s)Constructs anInputMismatchException, saving a reference to the error message stringsfor later retrieval by thegetMessagemethod.InvalidPropertiesFormatException(String message)Constructs an InvalidPropertiesFormatException with the specified detail message.LanguageRange(String range)Constructs aLanguageRangeusing the givenrange.LanguageRange(String range, double weight)Constructs aLanguageRangeusing the givenrangeandweight.Locale(String language)Construct a locale from a language code.Locale(String language, String country)Construct a locale from language and country.Locale(String language, String country, String variant)Construct a locale from language, country and variant.MissingFormatArgumentException(String s)Constructs an instance of this class with the unmatched format specifier.MissingFormatWidthException(String s)Constructs an instance of this class with the specified format specifier.MissingResourceException(String s, String className, String key)Constructs a MissingResourceException with the specified information.NoSuchElementException(String s)Constructs aNoSuchElementException, saving a reference to the error message stringsfor later retrieval by thegetMessagemethod.PropertyPermission(String name, String actions)Creates a new PropertyPermission object with the specified name.Scanner(File source, String charsetName)Constructs a newScannerthat produces values scanned from the specified file.Scanner(InputStream source, String charsetName)Constructs a newScannerthat produces values scanned from the specified input stream.Scanner(String source)Constructs a newScannerthat produces values scanned from the specified string.Scanner(ReadableByteChannel source, String charsetName)Constructs a newScannerthat produces values scanned from the specified channel.Scanner(Path source, String charsetName)Constructs a newScannerthat produces values scanned from the specified file.ServiceConfigurationError(String msg)Constructs a new instance with the specified message.ServiceConfigurationError(String msg, Throwable cause)Constructs a new instance with the specified message and cause.SimpleTimeZone(int rawOffset, String ID)Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime)Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime, int dstSavings)Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int startTimeMode, int endMonth, int endDay, int endDayOfWeek, int endTime, int endTimeMode, int dstSavings)Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.StringTokenizer(String str)Constructs a string tokenizer for the specified string.StringTokenizer(String str, String delim)Constructs a string tokenizer for the specified string.StringTokenizer(String str, String delim, boolean returnDelims)Constructs a string tokenizer for the specified string.Timer(String name)Creates a new timer whose associated thread has the specified name.Timer(String name, boolean isDaemon)Creates a new timer whose associated thread has the specified name, and may be specified to run as a daemon.TooManyListenersException(String s)Constructs a TooManyListenersException with the specified detail message.UnknownFormatConversionException(String s)Constructs an instance of this class with the unknown conversion.UnknownFormatFlagsException(String f)Constructs an instance of this class with the specified flags. -
Uses of String in java.util.concurrent
Methods in java.util.concurrent that return String Modifier and Type Method Description StringCompletableFuture. toString()Returns a string identifying this CompletableFuture, as well as its completion state.StringConcurrentHashMap. toString()Returns a string representation of this map.StringCopyOnWriteArrayList. toString()Returns a string representation of this list.StringCountDownLatch. toString()Returns a string identifying this latch, as well as its state.StringForkJoinPool. toString()Returns a string identifying this pool, as well as its state, including indications of run state, parallelism level, and worker and task counts.StringFutureTask. toString()Returns a string representation of this FutureTask.StringPhaser. toString()Returns a string identifying this phaser, as well as its state.StringSemaphore. toString()Returns a string identifying this semaphore, as well as its state.StringSynchronousQueue. toString()Always returns"[]".StringThreadPoolExecutor. toString()Returns a string identifying this pool, as well as its state, including indications of run state and estimated worker and task counts.Methods in java.util.concurrent with parameters of type String Modifier and Type Method Description static TimeUnitTimeUnit. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in java.util.concurrent with parameters of type String Constructor Description BrokenBarrierException(String message)Constructs aBrokenBarrierExceptionwith the specified detail message.CancellationException(String message)Constructs aCancellationExceptionwith the specified detail message.CompletionException(String message)Constructs aCompletionExceptionwith the specified detail message.CompletionException(String message, Throwable cause)Constructs aCompletionExceptionwith the specified detail message and cause.ExecutionException(String message)Constructs anExecutionExceptionwith the specified detail message.ExecutionException(String message, Throwable cause)Constructs anExecutionExceptionwith the specified detail message and cause.RejectedExecutionException(String message)Constructs aRejectedExecutionExceptionwith the specified detail message.RejectedExecutionException(String message, Throwable cause)Constructs aRejectedExecutionExceptionwith the specified detail message and cause.TimeoutException(String message)Constructs aTimeoutExceptionwith the specified detail message. -
Uses of String in java.util.concurrent.atomic
Methods in java.util.concurrent.atomic that return String Modifier and Type Method Description StringAtomicBoolean. toString()Returns the String representation of the current value.StringAtomicInteger. toString()Returns the String representation of the current value.StringAtomicIntegerArray. toString()Returns the String representation of the current values of array.StringAtomicLong. toString()Returns the String representation of the current value.StringAtomicLongArray. toString()Returns the String representation of the current values of array.StringAtomicReference. toString()Returns the String representation of the current value.StringAtomicReferenceArray. toString()Returns the String representation of the current values of array.StringDoubleAccumulator. toString()Returns the String representation of the current value.StringDoubleAdder. toString()Returns the String representation of theDoubleAdder.sum().StringLongAccumulator. toString()Returns the String representation of the current value.StringLongAdder. toString()Returns the String representation of theLongAdder.sum().Methods in java.util.concurrent.atomic with parameters of type String Modifier and Type Method Description static <U> AtomicIntegerFieldUpdater<U>AtomicIntegerFieldUpdater. newUpdater(Class<U> tclass, String fieldName)Creates and returns an updater for objects with the given field.static <U> AtomicLongFieldUpdater<U>AtomicLongFieldUpdater. newUpdater(Class<U> tclass, String fieldName)Creates and returns an updater for objects with the given field.static <U,W>
AtomicReferenceFieldUpdater<U,W>AtomicReferenceFieldUpdater. newUpdater(Class<U> tclass, Class<W> vclass, String fieldName)Creates and returns an updater for objects with the given field. -
Uses of String in java.util.concurrent.locks
Methods in java.util.concurrent.locks that return String Modifier and Type Method Description StringAbstractQueuedLongSynchronizer. toString()Returns a string identifying this synchronizer, as well as its state.StringAbstractQueuedSynchronizer. toString()Returns a string identifying this synchronizer, as well as its state.StringReentrantLock. toString()Returns a string identifying this lock, as well as its lock state.StringReentrantReadWriteLock.ReadLock. toString()Returns a string identifying this lock, as well as its lock state.StringReentrantReadWriteLock. toString()Returns a string identifying this lock, as well as its lock state.StringReentrantReadWriteLock.WriteLock. toString()Returns a string identifying this lock, as well as its lock state.StringStampedLock. toString()Returns a string identifying this lock, as well as its lock state. -
Uses of String in java.util.jar
Fields in java.util.jar declared as String Modifier and Type Field Description static StringPack200.Packer. CLASS_ATTRIBUTE_PFXDeprecated, for removal: This API element is subject to removal in a future version.When concatenated with a class attribute name, indicates the format of that attribute, using the layout language specified in the JSR 200 specification.static StringPack200.Packer. CODE_ATTRIBUTE_PFXDeprecated, for removal: This API element is subject to removal in a future version.When concatenated with a code attribute name, indicates the format of that attribute.static StringPack200.Packer. DEFLATE_HINTDeprecated, for removal: This API element is subject to removal in a future version.If this property is set toPack200.Packer.TRUEorPack200.Packer.FALSE, the packer will set the deflation hint accordingly in the output archive, and will not transmit the individual deflation hints of archive elements.static StringPack200.Unpacker. DEFLATE_HINTDeprecated, for removal: This API element is subject to removal in a future version.Property indicating that the unpacker should ignore all transmitted values for DEFLATE_HINT, replacing them by the given value,Pack200.Unpacker.TRUEorPack200.Unpacker.FALSE.static StringPack200.Packer. EFFORTDeprecated, for removal: This API element is subject to removal in a future version.If this property is set to a single decimal digit, the packer will use the indicated amount of effort in compressing the archive.static StringPack200.Packer. ERRORDeprecated, for removal: This API element is subject to removal in a future version.The string "error", a possible value for certain properties.static StringPack200.Packer. FALSEDeprecated, for removal: This API element is subject to removal in a future version.The string "false", a possible value for certain properties.static StringPack200.Unpacker. FALSEDeprecated, for removal: This API element is subject to removal in a future version.The string "false", a possible value for certain properties.static StringPack200.Packer. FIELD_ATTRIBUTE_PFXDeprecated, for removal: This API element is subject to removal in a future version.When concatenated with a field attribute name, indicates the format of that attribute.static StringPack200.Packer. KEEPDeprecated, for removal: This API element is subject to removal in a future version.The string "keep", a possible value for certain properties.static StringPack200.Unpacker. KEEPDeprecated, for removal: This API element is subject to removal in a future version.The string "keep", a possible value for certain properties.static StringPack200.Packer. KEEP_FILE_ORDERDeprecated, for removal: This API element is subject to removal in a future version.If this property is set toPack200.Packer.TRUE, the packer will transmit all elements in their original order within the source archive.static StringPack200.Packer. LATESTDeprecated, for removal: This API element is subject to removal in a future version.The string "latest", a possible value for certain properties.static StringJarFile. MANIFEST_NAMEThe JAR manifest file name.static StringPack200.Packer. METHOD_ATTRIBUTE_PFXDeprecated, for removal: This API element is subject to removal in a future version.When concatenated with a method attribute name, indicates the format of that attribute.static StringPack200.Packer. MODIFICATION_TIMEDeprecated, for removal: This API element is subject to removal in a future version.If this property is set to the special stringPack200.Packer.LATEST, the packer will attempt to determine the latest modification time, among all the available entries in the original archive or the latest modification time of all the available entries in each segment.static StringPack200.Packer. PASSDeprecated, for removal: This API element is subject to removal in a future version.The string "pass", a possible value for certain properties.static StringPack200.Packer. PASS_FILE_PFXDeprecated, for removal: This API element is subject to removal in a future version.Indicates that a file should be passed through bytewise, with no compression.static StringPack200.Packer. PROGRESSDeprecated, for removal: This API element is subject to removal in a future version.The packer's progress as a percentage, as periodically updated by the packer.static StringPack200.Unpacker. PROGRESSDeprecated, for removal: This API element is subject to removal in a future version.The unpacker's progress as a percentage, as periodically updated by the unpacker.static StringPack200.Packer. SEGMENT_LIMITDeprecated, for removal: This API element is subject to removal in a future version.This property is a numeral giving the estimated target size N (in bytes) of each archive segment.static StringPack200.Packer. STRIPDeprecated, for removal: This API element is subject to removal in a future version.The string "strip", a possible value for certain properties.static StringPack200.Packer. TRUEDeprecated, for removal: This API element is subject to removal in a future version.The string "true", a possible value for certain properties.static StringPack200.Unpacker. TRUEDeprecated, for removal: This API element is subject to removal in a future version.The string "true", a possible value for certain properties.static StringPack200.Packer. UNKNOWN_ATTRIBUTEDeprecated, for removal: This API element is subject to removal in a future version.Indicates the action to take when a class-file containing an unknown attribute is encountered.Methods in java.util.jar that return String Modifier and Type Method Description StringJarEntry. getRealName()Returns the real name of thisJarEntry.StringAttributes. getValue(String name)Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.StringAttributes. getValue(Attributes.Name name)Returns the value of the specified Attributes.Name, or null if the attribute was not found.StringAttributes. putValue(String name, String value)Associates the specified value with the specified attribute name, specified as a String.StringAttributes.Name. toString()Returns the attribute name as a String.Methods in java.util.jar that return types with arguments of type String Modifier and Type Method Description Map<String,Attributes>Manifest. getEntries()Returns a Map of the entries contained in this Manifest.SortedMap<String,String>Pack200.Packer. properties()Deprecated, for removal: This API element is subject to removal in a future version.Get the set of this engine's properties.SortedMap<String,String>Pack200.Packer. properties()Deprecated, for removal: This API element is subject to removal in a future version.Get the set of this engine's properties.SortedMap<String,String>Pack200.Unpacker. properties()Deprecated, for removal: This API element is subject to removal in a future version.Get the set of this engine's properties.SortedMap<String,String>Pack200.Unpacker. properties()Deprecated, for removal: This API element is subject to removal in a future version.Get the set of this engine's properties.Methods in java.util.jar with parameters of type String Modifier and Type Method Description protected ZipEntryJarInputStream. createZipEntry(String name)Creates a newJarEntry(ZipEntry) for the specified JAR file entry name.AttributesManifest. getAttributes(String name)Returns the Attributes for the specified entry name.ZipEntryJarFile. getEntry(String name)Returns theZipEntryfor the given base entry name ornullif not found.JarEntryJarFile. getJarEntry(String name)Returns theJarEntryfor the given base entry name ornullif not found.StringAttributes. getValue(String name)Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.StringAttributes. putValue(String name, String value)Associates the specified value with the specified attribute name, specified as a String.Constructors in java.util.jar with parameters of type String Constructor Description JarEntry(String name)Creates a newJarEntryfor the specified JAR file entry name.JarException(String s)Constructs a JarException with the specified detail message.JarFile(String name)Creates a newJarFileto read from the specified filename.JarFile(String name, boolean verify)Creates a newJarFileto read from the specified filename.Name(String name)Constructs a new attribute name using the given string name. -
Uses of String in java.util.logging
Fields in java.util.logging declared as String Modifier and Type Field Description static StringLogger. GLOBAL_LOGGER_NAMEGLOBAL_LOGGER_NAME is a name for the global logger.static StringLogManager. LOGGING_MXBEAN_NAMEString representation of theObjectNamefor the management interface for the logging facility.Methods in java.util.logging that return String Modifier and Type Method Description abstract StringFormatter. format(LogRecord record)Format the given log record and return the formatted string.StringSimpleFormatter. format(LogRecord record)Format the given LogRecord.StringXMLFormatter. format(LogRecord record)Format the given message to XML.StringFormatter. formatMessage(LogRecord record)Localize and format the message string from a log record.StringHandler. getEncoding()Return the character encoding for thisHandler.StringFormatter. getHead(Handler h)Return the header string for a set of formatted records.StringXMLFormatter. getHead(Handler h)Return the header string for a set of XML formatted records.StringLevel. getLocalizedName()Return the localized string name of the Level, for the current default locale.StringLoggingMXBean. getLoggerLevel(String loggerName)Deprecated.Gets the name of the log level associated with the specified logger.StringLogRecord. getLoggerName()Get the source Logger's name.StringLogRecord. getMessage()Get the "raw" log message, before localization or formatting.StringLevel. getName()Return the non-localized string name of the Level.StringLogger. getName()Get the name for this logger.StringLoggingMXBean. getParentLoggerName(String loggerName)Deprecated.Returns the name of the parent for the specified logger.StringLogManager. getProperty(String name)Get the value of a logging property.StringLevel. getResourceBundleName()Return the level's localization resource bundle name, or null if no localization bundle is defined.StringLogger. getResourceBundleName()Retrieve the localization resource bundle name for this logger.StringLogRecord. getResourceBundleName()Get the localization resource bundle nameStringLogRecord. getSourceClassName()Get the name of the class that (allegedly) issued the logging request.StringLogRecord. getSourceMethodName()Get the name of the method that (allegedly) issued the logging request.StringFormatter. getTail(Handler h)Return the tail string for a set of formatted records.StringXMLFormatter. getTail(Handler h)Return the tail string for a set of XML formatted records.StringLevel. toString()Returns a string representation of this Level.Methods in java.util.logging that return types with arguments of type String Modifier and Type Method Description List<String>LoggingMXBean. getLoggerNames()Deprecated.Returns the list of currently registered logger names.Enumeration<String>LogManager. getLoggerNames()Get an enumeration of known logger names.Methods in java.util.logging with parameters of type String Modifier and Type Method Description voidLogger. config(String msg)Log a CONFIG message.voidLogger. entering(String sourceClass, String sourceMethod)Log a method entry.voidLogger. entering(String sourceClass, String sourceMethod, Object param1)Log a method entry, with one parameter.voidLogger. entering(String sourceClass, String sourceMethod, Object[] params)Log a method entry, with an array of parameters.voidErrorManager. error(String msg, Exception ex, int code)The error method is called when a Handler failure occurs.voidLogger. exiting(String sourceClass, String sourceMethod)Log a method return.voidLogger. exiting(String sourceClass, String sourceMethod, Object result)Log a method return, with result object.voidLogger. fine(String msg)Log a FINE message.voidLogger. finer(String msg)Log a FINER message.voidLogger. finest(String msg)Log a FINEST message.static LoggerLogger. getAnonymousLogger(String resourceBundleName)Create an anonymous Logger.static LoggerLogger. getLogger(String name)Find or create a logger for a named subsystem.static LoggerLogger. getLogger(String name, String resourceBundleName)Find or create a logger for a named subsystem.LoggerLogManager. getLogger(String name)Method to find a named logger.StringLoggingMXBean. getLoggerLevel(String loggerName)Deprecated.Gets the name of the log level associated with the specified logger.StringLoggingMXBean. getParentLoggerName(String loggerName)Deprecated.Returns the name of the parent for the specified logger.StringLogManager. getProperty(String name)Get the value of a logging property.voidLogger. info(String msg)Log an INFO message.voidLogger. log(Level level, String msg)Log a message, with no arguments.voidLogger. log(Level level, String msg, Object param1)Log a message, with one object parameter.voidLogger. log(Level level, String msg, Object[] params)Log a message, with an array of object arguments.voidLogger. log(Level level, String msg, Throwable thrown)Log a message, with associated Throwable information.voidLogger. logp(Level level, String sourceClass, String sourceMethod, String msg)Log a message, specifying source class and method, with no arguments.voidLogger. logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)Log a message, specifying source class and method, with a single object parameter to the log message.voidLogger. logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)Log a message, specifying source class and method, with an array of object arguments.voidLogger. logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)Log a message, specifying source class and method, with associated Throwable information.voidLogger. logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier)Log a lazily constructed message, specifying source class and method, with associated Throwable information.voidLogger. logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)Log a lazily constructed message, specifying source class and method, with no arguments.voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params)Log a message, specifying source class, method, and resource bundle, with an optional list of message parameters.voidLogger. logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)Log a message, specifying source class, method, and resource bundle, with associated Throwable information.voidLogger. logrb(Level level, ResourceBundle bundle, String msg, Object... params)Log a message, specifying source class, method, and resource bundle, with an optional list of message parameters.voidLogger. logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown)Log a message, specifying source class, method, and resource bundle, with associated Throwable information.static LevelLevel. parse(String name)Parse a level name string into a Level.protected voidHandler. reportError(String msg, Exception ex, int code)Protected convenience method to report an error to this Handler's ErrorManager.voidHandler. setEncoding(String encoding)Set the character encoding used by thisHandler.voidStreamHandler. setEncoding(String encoding)Set (or change) the character encoding used by thisHandler.voidLoggingMXBean. setLoggerLevel(String loggerName, String levelName)Deprecated.Sets the specified logger to the specified new level.voidLogRecord. setLoggerName(String name)Set the source Logger's name.voidLogRecord. setMessage(String message)Set the "raw" log message, before localization or formatting.voidLogRecord. setResourceBundleName(String name)Set the localization resource bundle name.voidLogRecord. setSourceClassName(String sourceClassName)Set the name of the class that (allegedly) issued the logging request.voidLogRecord. setSourceMethodName(String sourceMethodName)Set the name of the method that (allegedly) issued the logging request.voidLogger. severe(String msg)Log a SEVERE message.voidLogger. throwing(String sourceClass, String sourceMethod, Throwable thrown)Log throwing an exception.voidLogger. warning(String msg)Log a WARNING message.Method parameters in java.util.logging with type arguments of type String Modifier and Type Method Description voidLogger. config(Supplier<String> msgSupplier)Log a CONFIG message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. fine(Supplier<String> msgSupplier)Log a FINE message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. finer(Supplier<String> msgSupplier)Log a FINER message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. finest(Supplier<String> msgSupplier)Log a FINEST message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. info(Supplier<String> msgSupplier)Log a INFO message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. log(Level level, Throwable thrown, Supplier<String> msgSupplier)Log a lazily constructed message, with associated Throwable information.voidLogger. log(Level level, Supplier<String> msgSupplier)Log a message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogger. logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier)Log a lazily constructed message, specifying source class and method, with associated Throwable information.voidLogger. logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)Log a lazily constructed message, specifying source class and method, with no arguments.voidLogger. severe(Supplier<String> msgSupplier)Log a SEVERE message, which is only to be constructed if the logging level is such that the message will actually be logged.voidLogManager. updateConfiguration(InputStream ins, Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(InputStream ins, Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(InputStream ins, Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(InputStream ins, Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogManager. updateConfiguration(Function<String,BiFunction<String,String,String>> mapper)Updates the logging configuration.voidLogger. warning(Supplier<String> msgSupplier)Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged.Constructors in java.util.logging with parameters of type String Constructor Description FileHandler(String pattern)Initialize aFileHandlerto write to the given filename.FileHandler(String pattern, boolean append)Initialize aFileHandlerto write to the given filename, with optional append.FileHandler(String pattern, int limit, int count)Initialize aFileHandlerto write to a set of files.FileHandler(String pattern, int limit, int count, boolean append)Initialize aFileHandlerto write to a set of files with optional append.FileHandler(String pattern, long limit, int count, boolean append)Initialize aFileHandlerto write to a set of files with optional append.Level(String name, int value)Create a named Level with a given integer value.Level(String name, int value, String resourceBundleName)Create a named Level with a given integer value and a given localization resource name.Logger(String name, String resourceBundleName)Protected method to construct a logger for a named subsystem.LoggingPermission(String name, String actions)Creates a new LoggingPermission object.LogRecord(Level level, String msg)Construct a LogRecord with the given level and message values.SocketHandler(String host, int port)Construct aSocketHandlerusing a specified host and port. -
Uses of String in java.util.prefs
Methods in java.util.prefs that return String Modifier and Type Method Description StringAbstractPreferences. absolutePath()Implements theabsolutePathmethod as per the specification inPreferences.absolutePath().abstract StringPreferences. absolutePath()Returns this preference node's absolute path name.String[]AbstractPreferences. childrenNames()Implements thechildrenmethod as per the specification inPreferences.childrenNames().abstract String[]Preferences. childrenNames()Returns the names of the children of this preference node, relative to this node.protected abstract String[]AbstractPreferences. childrenNamesSpi()Returns the names of the children of this preference node.StringAbstractPreferences. get(String key, String def)Implements thegetmethod as per the specification inPreferences.get(String,String).abstract StringPreferences. get(String key, String def)Returns the value associated with the specified key in this preference node.StringPreferenceChangeEvent. getKey()Returns the key of the preference that was changed.StringPreferenceChangeEvent. getNewValue()Returns the new value for the preference.protected abstract StringAbstractPreferences. getSpi(String key)Return the value associated with the specified key at this preference node, ornullif there is no association for this key, or the association cannot be determined at this time.String[]AbstractPreferences. keys()Implements thekeysmethod as per the specification inPreferences.keys().abstract String[]Preferences. keys()Returns all of the keys that have an associated value in this preference node.protected abstract String[]AbstractPreferences. keysSpi()Returns all of the keys that have an associated value in this preference node.StringAbstractPreferences. name()Implements thenamemethod as per the specification inPreferences.name().abstract StringPreferences. name()Returns this preference node's name, relative to its parent.StringAbstractPreferences. toString()Returns the absolute path name of this preferences node.abstract StringPreferences. toString()Returns a string representation of this preferences node, as if computed by the expression:(this.isUserNode() ? "User" : "System") + " Preference Node: " + this.absolutePath().Methods in java.util.prefs with parameters of type String Modifier and Type Method Description protected abstract AbstractPreferencesAbstractPreferences. childSpi(String name)Returns the named child of this preference node, creating it if it does not already exist.StringAbstractPreferences. get(String key, String def)Implements thegetmethod as per the specification inPreferences.get(String,String).abstract StringPreferences. get(String key, String def)Returns the value associated with the specified key in this preference node.booleanAbstractPreferences. getBoolean(String key, boolean def)Implements thegetBooleanmethod as per the specification inPreferences.getBoolean(String,boolean).abstract booleanPreferences. getBoolean(String key, boolean def)Returns the boolean value represented by the string associated with the specified key in this preference node.byte[]AbstractPreferences. getByteArray(String key, byte[] def)Implements thegetByteArraymethod as per the specification inPreferences.getByteArray(String,byte[]).abstract byte[]Preferences. getByteArray(String key, byte[] def)Returns the byte array value represented by the string associated with the specified key in this preference node.protected AbstractPreferencesAbstractPreferences. getChild(String nodeName)Returns the named child if it exists, ornullif it does not.doubleAbstractPreferences. getDouble(String key, double def)Implements thegetDoublemethod as per the specification inPreferences.getDouble(String,double).abstract doublePreferences. getDouble(String key, double def)Returns the double value represented by the string associated with the specified key in this preference node.floatAbstractPreferences. getFloat(String key, float def)Implements thegetFloatmethod as per the specification inPreferences.getFloat(String,float).abstract floatPreferences. getFloat(String key, float def)Returns the float value represented by the string associated with the specified key in this preference node.intAbstractPreferences. getInt(String key, int def)Implements thegetIntmethod as per the specification inPreferences.getInt(String,int).abstract intPreferences. getInt(String key, int def)Returns the int value represented by the string associated with the specified key in this preference node.longAbstractPreferences. getLong(String key, long def)Implements thegetLongmethod as per the specification inPreferences.getLong(String,long).abstract longPreferences. getLong(String key, long def)Returns the long value represented by the string associated with the specified key in this preference node.protected abstract StringAbstractPreferences. getSpi(String key)Return the value associated with the specified key at this preference node, ornullif there is no association for this key, or the association cannot be determined at this time.PreferencesAbstractPreferences. node(String path)Implements thenodemethod as per the specification inPreferences.node(String).abstract PreferencesPreferences. node(String pathName)Returns the named preference node in the same tree as this node, creating it and any of its ancestors if they do not already exist.booleanAbstractPreferences. nodeExists(String path)Implements thenodeExistsmethod as per the specification inPreferences.nodeExists(String).abstract booleanPreferences. nodeExists(String pathName)Returns true if the named preference node exists in the same tree as this node.voidAbstractPreferences. put(String key, String value)Implements theputmethod as per the specification inPreferences.put(String,String).abstract voidPreferences. put(String key, String value)Associates the specified value with the specified key in this preference node.voidAbstractPreferences. putBoolean(String key, boolean value)Implements theputBooleanmethod as per the specification inPreferences.putBoolean(String,boolean).abstract voidPreferences. putBoolean(String key, boolean value)Associates a string representing the specified boolean value with the specified key in this preference node.voidAbstractPreferences. putByteArray(String key, byte[] value)Implements theputByteArraymethod as per the specification inPreferences.putByteArray(String,byte[]).abstract voidPreferences. putByteArray(String key, byte[] value)Associates a string representing the specified byte array with the specified key in this preference node.voidAbstractPreferences. putDouble(String key, double value)Implements theputDoublemethod as per the specification inPreferences.putDouble(String,double).abstract voidPreferences. putDouble(String key, double value)Associates a string representing the specified double value with the specified key in this preference node.voidAbstractPreferences. putFloat(String key, float value)Implements theputFloatmethod as per the specification inPreferences.putFloat(String,float).abstract voidPreferences. putFloat(String key, float value)Associates a string representing the specified float value with the specified key in this preference node.voidAbstractPreferences. putInt(String key, int value)Implements theputIntmethod as per the specification inPreferences.putInt(String,int).abstract voidPreferences. putInt(String key, int value)Associates a string representing the specified int value with the specified key in this preference node.voidAbstractPreferences. putLong(String key, long value)Implements theputLongmethod as per the specification inPreferences.putLong(String,long).abstract voidPreferences. putLong(String key, long value)Associates a string representing the specified long value with the specified key in this preference node.protected abstract voidAbstractPreferences. putSpi(String key, String value)Put the given key-value association into this preference node.voidAbstractPreferences. remove(String key)Implements theremove(String)method as per the specification inPreferences.remove(String).abstract voidPreferences. remove(String key)Removes the value associated with the specified key in this preference node, if any.protected abstract voidAbstractPreferences. removeSpi(String key)Remove the association (if any) for the specified key at this preference node.Constructors in java.util.prefs with parameters of type String Constructor Description AbstractPreferences(AbstractPreferences parent, String name)Creates a preference node with the specified parent and the specified name relative to its parent.BackingStoreException(String s)Constructs a BackingStoreException with the specified detail message.InvalidPreferencesFormatException(String message)Constructs an InvalidPreferencesFormatException with the specified detail message.InvalidPreferencesFormatException(String message, Throwable cause)Constructs an InvalidPreferencesFormatException with the specified detail message and cause.PreferenceChangeEvent(Preferences node, String key, String newValue)Constructs a newPreferenceChangeEventinstance. -
Uses of String in java.util.regex
Methods in java.util.regex that return String Modifier and Type Method Description StringPatternSyntaxException. getDescription()Retrieves the description of the error.StringPatternSyntaxException. getMessage()Returns a multi-line string containing the description of the syntax error and its index, the erroneous regular-expression pattern, and a visual indication of the error index within the pattern.StringPatternSyntaxException. getPattern()Retrieves the erroneous regular-expression pattern.StringMatcher. group()Returns the input subsequence matched by the previous match.StringMatcher. group(int group)Returns the input subsequence captured by the given group during the previous match operation.StringMatcher. group(String name)Returns the input subsequence captured by the given named-capturing group during the previous match operation.StringMatchResult. group()Returns the input subsequence matched by the previous match.StringMatchResult. group(int group)Returns the input subsequence captured by the given group during the previous match operation.StringPattern. pattern()Returns the regular expression from which this pattern was compiled.static StringPattern. quote(String s)Returns a literal patternStringfor the specifiedString.static StringMatcher. quoteReplacement(String s)Returns a literal replacementStringfor the specifiedString.StringMatcher. replaceAll(String replacement)Replaces every subsequence of the input sequence that matches the pattern with the given replacement string.StringMatcher. replaceAll(Function<MatchResult,String> replacer)Replaces every subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.StringMatcher. replaceFirst(String replacement)Replaces the first subsequence of the input sequence that matches the pattern with the given replacement string.StringMatcher. replaceFirst(Function<MatchResult,String> replacer)Replaces the first subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.String[]Pattern. split(CharSequence input)Splits the given input sequence around matches of this pattern.String[]Pattern. split(CharSequence input, int limit)Splits the given input sequence around matches of this pattern.StringMatcher. toString()Returns the string representation of this matcher.StringPattern. toString()Returns the string representation of this pattern.Methods in java.util.regex that return types with arguments of type String Modifier and Type Method Description Predicate<String>Pattern. asMatchPredicate()Creates a predicate that tests if this pattern matches a given input string.Predicate<String>Pattern. asPredicate()Creates a predicate that tests if this pattern is found in a given input string.Stream<String>Pattern. splitAsStream(CharSequence input)Creates a stream from the given input sequence around matches of this pattern.Methods in java.util.regex with parameters of type String Modifier and Type Method Description MatcherMatcher. appendReplacement(StringBuffer sb, String replacement)Implements a non-terminal append-and-replace step.MatcherMatcher. appendReplacement(StringBuilder sb, String replacement)Implements a non-terminal append-and-replace step.static PatternPattern. compile(String regex)Compiles the given regular expression into a pattern.static PatternPattern. compile(String regex, int flags)Compiles the given regular expression into a pattern with the given flags.intMatcher. end(String name)Returns the offset after the last character of the subsequence captured by the given named-capturing group during the previous match operation.StringMatcher. group(String name)Returns the input subsequence captured by the given named-capturing group during the previous match operation.static booleanPattern. matches(String regex, CharSequence input)Compiles the given regular expression and attempts to match the given input against it.static StringPattern. quote(String s)Returns a literal patternStringfor the specifiedString.static StringMatcher. quoteReplacement(String s)Returns a literal replacementStringfor the specifiedString.StringMatcher. replaceAll(String replacement)Replaces every subsequence of the input sequence that matches the pattern with the given replacement string.StringMatcher. replaceFirst(String replacement)Replaces the first subsequence of the input sequence that matches the pattern with the given replacement string.intMatcher. start(String name)Returns the start index of the subsequence captured by the given named-capturing group during the previous match operation.Method parameters in java.util.regex with type arguments of type String Modifier and Type Method Description StringMatcher. replaceAll(Function<MatchResult,String> replacer)Replaces every subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.StringMatcher. replaceFirst(Function<MatchResult,String> replacer)Replaces the first subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.Constructors in java.util.regex with parameters of type String Constructor Description PatternSyntaxException(String desc, String regex, int index)Constructs a new instance of this class. -
Uses of String in java.util.spi
Methods in java.util.spi that return String Modifier and Type Method Description abstract StringLocaleNameProvider. getDisplayCountry(String countryCode, Locale locale)Returns a localized name for the given IETF BCP47 region code (either ISO 3166 country code or UN M.49 area codes) and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayLanguage(String languageCode, Locale locale)Returns a localized name for the given IETF BCP47 language code and the given locale that is appropriate for display to the user.abstract StringCalendarNameProvider. getDisplayName(String calendarType, int field, int value, int style, Locale locale)Returns the string representation (display name) of the calendarfield valuein the givenstyleandlocale.StringCurrencyNameProvider. getDisplayName(String currencyCode, Locale locale)Returns a name for the currency that is appropriate for display to the user.abstract StringTimeZoneNameProvider. getDisplayName(String ID, boolean daylight, int style, Locale locale)Returns a name for the given time zone ID that's suitable for presentation to the user in the specified locale.StringLocaleNameProvider. getDisplayScript(String scriptCode, Locale locale)Returns a localized name for the given IETF BCP47 script code and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionKey(String key, Locale locale)Returns a localized name for the given Unicode extension key, and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionType(String type, String key, Locale locale)Returns a localized name for the given Unicode extension type, and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayVariant(String variant, Locale locale)Returns a localized name for the given variant code and the given locale that is appropriate for display to the user.StringTimeZoneNameProvider. getGenericDisplayName(String ID, int style, Locale locale)Returns a generic name for the given time zoneIDthat's suitable for presentation to the user in the specifiedlocale.abstract StringCurrencyNameProvider. getSymbol(String currencyCode, Locale locale)Gets the symbol of the given currency code for the specified locale.StringToolProvider. name()Returns the name of this tool provider.protected StringAbstractResourceBundleProvider. toBundleName(String baseName, Locale locale)Returns the bundle name for the givenbaseNameandlocalethat this provider provides.Methods in java.util.spi that return types with arguments of type String Modifier and Type Method Description abstract Map<String,Integer>CalendarNameProvider. getDisplayNames(String calendarType, int field, int style, Locale locale)Returns aMapcontaining all string representations (display names) of theCalendarfieldin the givenstyleandlocaleand their corresponding field values.Methods in java.util.spi with parameters of type String Modifier and Type Method Description static Optional<ToolProvider>ToolProvider. findFirst(String name)Returns the first instance of aToolProviderwith the given name, as loaded byServiceLoaderusing the system class loader.ResourceBundleAbstractResourceBundleProvider. getBundle(String baseName, Locale locale)Returns aResourceBundlefor the givenbaseNameandlocale.ResourceBundleResourceBundleProvider. getBundle(String baseName, Locale locale)Returns aResourceBundlefor the given bundle name and locale.ResourceBundle.ControlResourceBundleControlProvider. getControl(String baseName)Returns aResourceBundle.Controlinstance that is used to handle resource bundle loading for the givenbaseName.abstract StringLocaleNameProvider. getDisplayCountry(String countryCode, Locale locale)Returns a localized name for the given IETF BCP47 region code (either ISO 3166 country code or UN M.49 area codes) and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayLanguage(String languageCode, Locale locale)Returns a localized name for the given IETF BCP47 language code and the given locale that is appropriate for display to the user.abstract StringCalendarNameProvider. getDisplayName(String calendarType, int field, int value, int style, Locale locale)Returns the string representation (display name) of the calendarfield valuein the givenstyleandlocale.StringCurrencyNameProvider. getDisplayName(String currencyCode, Locale locale)Returns a name for the currency that is appropriate for display to the user.abstract StringTimeZoneNameProvider. getDisplayName(String ID, boolean daylight, int style, Locale locale)Returns a name for the given time zone ID that's suitable for presentation to the user in the specified locale.abstract Map<String,Integer>CalendarNameProvider. getDisplayNames(String calendarType, int field, int style, Locale locale)Returns aMapcontaining all string representations (display names) of theCalendarfieldin the givenstyleandlocaleand their corresponding field values.StringLocaleNameProvider. getDisplayScript(String scriptCode, Locale locale)Returns a localized name for the given IETF BCP47 script code and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionKey(String key, Locale locale)Returns a localized name for the given Unicode extension key, and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionType(String type, String key, Locale locale)Returns a localized name for the given Unicode extension type, and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayVariant(String variant, Locale locale)Returns a localized name for the given variant code and the given locale that is appropriate for display to the user.StringTimeZoneNameProvider. getGenericDisplayName(String ID, int style, Locale locale)Returns a generic name for the given time zoneIDthat's suitable for presentation to the user in the specifiedlocale.abstract StringCurrencyNameProvider. getSymbol(String currencyCode, Locale locale)Gets the symbol of the given currency code for the specified locale.default intToolProvider. run(PrintStream out, PrintStream err, String... args)Runs an instance of the tool, returning zero for a successful run.intToolProvider. run(PrintWriter out, PrintWriter err, String... args)Runs an instance of the tool, returning zero for a successful run.protected StringAbstractResourceBundleProvider. toBundleName(String baseName, Locale locale)Returns the bundle name for the givenbaseNameandlocalethat this provider provides.Constructors in java.util.spi with parameters of type String Constructor Description AbstractResourceBundleProvider(String... formats)Constructs anAbstractResourceBundleProviderwith the specifiedformats. -
Uses of String in java.util.stream
Methods in java.util.stream that return types with arguments of type String Modifier and Type Method Description static Collector<CharSequence,?,String>Collectors. joining()Returns aCollectorthat concatenates the input elements into aString, in encounter order.static Collector<CharSequence,?,String>Collectors. joining(CharSequence delimiter)Returns aCollectorthat concatenates the input elements, separated by the specified delimiter, in encounter order.static Collector<CharSequence,?,String>Collectors. joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix)Returns aCollectorthat concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.Methods in java.util.stream with parameters of type String Modifier and Type Method Description static Collector.CharacteristicsCollector.Characteristics. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in java.util.zip
Methods in java.util.zip that return String Modifier and Type Method Description StringZipEntry. getComment()Returns the comment string for the entry.StringZipFile. getComment()Returns the zip file comment, or null if none.StringZipEntry. getName()Returns the name of the entry.StringZipFile. getName()Returns the path name of the ZIP file.StringZipEntry. toString()Returns a string representation of the ZIP entry.Methods in java.util.zip with parameters of type String Modifier and Type Method Description protected ZipEntryZipInputStream. createZipEntry(String name)Creates a newZipEntryobject for the specified entry name.ZipEntryZipFile. getEntry(String name)Returns the zip file entry for the specified name, or null if not found.voidZipEntry. setComment(String comment)Sets the optional comment string for the entry.voidZipOutputStream. setComment(String comment)Sets the ZIP file comment.Constructors in java.util.zip with parameters of type String Constructor Description DataFormatException(String s)Constructs a DataFormatException with the specified detail message.ZipEntry(String name)Creates a new zip entry with the specified name.ZipError(String s)Constructs a ZipError with the given detail message.ZipException(String s)Constructs aZipExceptionwith the specified detail message.ZipFile(String name)Opens a zip file for reading.ZipFile(String name, Charset charset)Opens a zip file for reading. -
Uses of String in javax.accessibility
Fields in javax.accessibility declared as String Modifier and Type Field Description static StringAccessibleContext. ACCESSIBLE_ACTION_PROPERTYConstant used to indicate that the supported set of actions has changed.static StringAccessibleContext. ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTYConstant used to determine when the active descendant of a component has changed.static StringAccessibleContext. ACCESSIBLE_CARET_PROPERTYConstant used to determine when theaccessibleTextcaret has changed.static StringAccessibleContext. ACCESSIBLE_CHILD_PROPERTYConstant used to determine whenAccessiblechildren are added/removed from the object.static StringAccessibleContext. ACCESSIBLE_COMPONENT_BOUNDS_CHANGEDPropertyChangeEventwhich indicates that a change has occurred in a component's bounds.static StringAccessibleContext. ACCESSIBLE_DESCRIPTION_PROPERTYConstant used to determine when theAccessibleContext.accessibleDescriptionproperty has changed.static StringAccessibleContext. ACCESSIBLE_HYPERTEXT_OFFSETConstant used to indicate that a hypertext element has received focus.static StringAccessibleContext. ACCESSIBLE_INVALIDATE_CHILDRENPropertyChangeEventwhich indicates that a significant change has occurred to the children of a component like a tree or text.static StringAccessibleContext. ACCESSIBLE_NAME_PROPERTYConstant used to determine when theAccessibleContext.accessibleNameproperty has changed.static StringAccessibleContext. ACCESSIBLE_SELECTION_PROPERTYConstant used to determine when theaccessibleSelectionhas changed.static StringAccessibleContext. ACCESSIBLE_STATE_PROPERTYConstant used to determine when theaccessibleStateSetproperty has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_CAPTION_CHANGEDConstant used to indicate that the table caption has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGEDConstant used to indicate that the column description has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGEDConstant used to indicate that the column header has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_MODEL_CHANGEDConstant used to indicate that table data has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGEDConstant used to indicate that the row description has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_ROW_HEADER_CHANGEDConstant used to indicate that the row header has changed.static StringAccessibleContext. ACCESSIBLE_TABLE_SUMMARY_CHANGEDConstant used to indicate that the table summary has changed.static StringAccessibleContext. ACCESSIBLE_TEXT_ATTRIBUTES_CHANGEDPropertyChangeEventwhich indicates that text attributes have changed.static StringAccessibleContext. ACCESSIBLE_TEXT_PROPERTYPropertyChangeEventwhich indicates that text has changed.static StringAccessibleContext. ACCESSIBLE_VALUE_PROPERTYConstant used to determine when theaccessibleValueproperty has changed.static StringAccessibleContext. ACCESSIBLE_VISIBLE_DATA_PROPERTYConstant used to determine when the visual appearance of the object has changed.protected StringAccessibleContext. accessibleDescriptionA localized String containing the description of the object.protected StringAccessibleContext. accessibleNameA localized String containing the name of the object.static StringAccessibleRelation. CHILD_NODE_OFIndicates that an object is a child node of one or more objects.static StringAccessibleRelation. CHILD_NODE_OF_PROPERTYIndicates theCHILD_NODE_OFrelation between two or more objects has changed.static StringAccessibleAction. CLICKAn action which causes a component to execute its default action.static StringAccessibleRelation. CONTROLLED_BYIndicates an object is controlled by one or more target objects.static StringAccessibleRelation. CONTROLLED_BY_PROPERTYIdentifies that the target object that is doing the controlling has changed.static StringAccessibleRelation. CONTROLLER_FORIndicates an object is a controller for one or more target objects.static StringAccessibleRelation. CONTROLLER_FOR_PROPERTYIdentifies that the controller for the target object has changed.static StringAccessibleAction. DECREMENTAn action which decrements a value.static StringAccessibleRelation. EMBEDDED_BYIndicates that an object is embedded in one or more objects.static StringAccessibleRelation. EMBEDDED_BY_PROPERTYIndicates theEMBEDDED_BYrelation between two or more objects has changed.static StringAccessibleRelation. EMBEDSIndicates that an object has one or more objects embedded in it.static StringAccessibleRelation. EMBEDS_PROPERTYIndicates theEMBEDSrelation between two or more objects has changed.static StringAccessibleRelation. FLOWS_FROMIndicates an object is logically contiguous with a second object where the second object occurs before the object.static StringAccessibleRelation. FLOWS_FROM_PROPERTYIndicates theFLOWS_FROMrelation between two objects has changed.static StringAccessibleRelation. FLOWS_TOIndicates an object is logically contiguous with a second object where the second object occurs after the object.static StringAccessibleRelation. FLOWS_TO_PROPERTYIndicates theFLOWS_TOrelation between two objects has changed.static StringAccessibleAction. INCREMENTAn action which increments a value.protected StringAccessibleBundle. keyThe locale independent name of the state.static StringAccessibleRelation. LABEL_FORIndicates an object is a label for one or more target objects.static StringAccessibleRelation. LABEL_FOR_PROPERTYIdentifies that the target group for a label has changed.static StringAccessibleRelation. LABELED_BYIndicates an object is labeled by one or more target objects.static StringAccessibleRelation. LABELED_BY_PROPERTYIdentifies that the objects that are doing the labeling have changed.static StringAccessibleRelation. MEMBER_OFIndicates an object is a member of a group of one or more target objects.static StringAccessibleRelation. MEMBER_OF_PROPERTYIdentifies that group membership has changed.static StringAccessibleRelation. PARENT_WINDOW_OFIndicates that an object is a parent window of one or more objects.static StringAccessibleRelation. PARENT_WINDOW_OF_PROPERTYIndicates thePARENT_WINDOW_OFrelation between two or more objects has changed.static StringAccessibleRelation. SUBWINDOW_OFIndicates that an object is a subwindow of one or more objects.static StringAccessibleRelation. SUBWINDOW_OF_PROPERTYIndicates theSUBWINDOW_OFrelation between two or more objects has changed.StringAccessibleTextSequence. textThe text.static StringAccessibleAction. TOGGLE_EXPANDAn action which causes a tree node to collapse if expanded and expand if collapsed.static StringAccessibleAction. TOGGLE_POPUPAn action which causes a popup to become visible if it is hidden and hidden if it is visible.Methods in javax.accessibility that return String Modifier and Type Method Description StringAccessibleAction. getAccessibleActionDescription(int i)Returns a description of the specified action of the object.abstract StringAccessibleHyperlink. getAccessibleActionDescription(int i)Returns a string description of this particular link action.StringAccessibleContext. getAccessibleDescription()Gets theaccessibleDescriptionproperty of this object.StringAccessibleIcon. getAccessibleIconDescription()Gets the description of the icon.StringAccessibleContext. getAccessibleName()Gets theaccessibleNameproperty of this object.StringAccessibleText. getAfterIndex(int part, int index)Returns theStringafter a given index.StringAccessibleText. getAtIndex(int part, int index)Returns theStringat a given index.StringAccessibleText. getBeforeIndex(int part, int index)Returns theStringbefore a given index.StringAccessibleRelation. getKey()Returns the key for this relation.abstract StringAccessibilityProvider. getName()Returns the name of this service provider.StringAccessibleText. getSelectedText()Returns the portion of the text that is selected.StringAccessibleEditableText. getTextRange(int startIndex, int endIndex)Returns the text string between two indices.StringAccessibleExtendedText. getTextRange(int startIndex, int endIndex)Returns the text between two indices.StringAccessibleExtendedComponent. getTitledBorderText()Returns the titled border text.StringAccessibleExtendedComponent. getToolTipText()Returns the tool tip text.StringAccessibleBundle. toDisplayString()Gets localized string describing the key using the default locale.protected StringAccessibleBundle. toDisplayString(String name, Locale locale)Obtains the key as a localized string.StringAccessibleBundle. toDisplayString(Locale locale)Obtains the key as a localized string.StringAccessibleBundle. toString()Gets localized string describing the key using the default locale.StringAccessibleRelationSet. toString()Creates a localized string representing all the relations in the set using the default locale.StringAccessibleStateSet. toString()Creates a localized string representing all the states in the set using the default locale.Methods in javax.accessibility with parameters of type String Modifier and Type Method Description booleanAccessibleRelationSet. contains(String key)Returns whether the relation set contains a relation that matches the specified key.voidAccessibleContext. firePropertyChange(String propertyName, Object oldValue, Object newValue)Support for reporting bound property changes.AccessibleRelationAccessibleRelationSet. get(String key)Returns the relation that matches the specified key.voidAccessibleEditableText. insertTextAtIndex(int index, String s)Inserts the specified string at the given index.voidAccessibleEditableText. replaceText(int startIndex, int endIndex, String s)Replaces the text between two indices with the specified string.voidAccessibleContext. setAccessibleDescription(String s)Sets the accessible description of this object.voidAccessibleIcon. setAccessibleIconDescription(String description)Sets the description of the icon.voidAccessibleContext. setAccessibleName(String s)Sets the localized accessible name of this object.voidAccessibleEditableText. setTextContents(String s)Sets the text contents to the specified string.protected StringAccessibleBundle. toDisplayString(String name, Locale locale)Obtains the key as a localized string.Constructors in javax.accessibility with parameters of type String Constructor Description AccessibleRelation(String key)Create a newAccessibleRelationusing the given locale independent key.AccessibleRelation(String key, Object target)Creates a newAccessibleRelationusing the given locale independent key.AccessibleRelation(String key, Object[] target)Creates a newAccessibleRelationusing the given locale independent key.AccessibleRole(String key)Creates a newAccessibleRoleusing the given locale independent key.AccessibleState(String key)Creates a newAccessibleStateusing the given locale independent key.AccessibleTextSequence(int start, int end, String txt)Constructs anAccessibleTextSequencewith the given parameters. -
Uses of String in javax.annotation.processing
Methods in javax.annotation.processing that return String Modifier and Type Method Description Stringcomments()A place holder for any comments that the code generator may want to include in the generated code.Stringdate()Date when the source was generated.StringCompletion. getMessage()Returns an informative message about the completion.StringCompletion. getValue()Returns the text of the suggested completion.String[]value()The value element MUST have the name of the code generator.String[]value()Returns the names of the supported annotation types.String[]value()Returns the supported options.Methods in javax.annotation.processing that return types with arguments of type String Modifier and Type Method Description Map<String,String>ProcessingEnvironment. getOptions()Returns the processor-specific options passed to the annotation processing tool.Map<String,String>ProcessingEnvironment. getOptions()Returns the processor-specific options passed to the annotation processing tool.Set<String>AbstractProcessor. getSupportedAnnotationTypes()If the processor class is annotated withSupportedAnnotationTypes, return an unmodifiable set with the same set of strings as the annotation.Set<String>Processor. getSupportedAnnotationTypes()Returns the names of the annotation types supported by this processor.Set<String>AbstractProcessor. getSupportedOptions()If the processor class is annotated withSupportedOptions, return an unmodifiable set with the same set of strings as the annotation.Set<String>Processor. getSupportedOptions()Returns the options recognized by this processor.Methods in javax.annotation.processing with parameters of type String Modifier and Type Method Description Iterable<? extends Completion>AbstractProcessor. getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)Returns an empty iterable of completions.Iterable<? extends Completion>Processor. getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)Returns to the tool infrastructure an iterable of suggested completions to an annotation.static CompletionCompletions. of(String value)Returns a completion of the value and an empty messagestatic CompletionCompletions. of(String value, String message)Returns a completion of the value and message.Constructors in javax.annotation.processing with parameters of type String Constructor Description FilerException(String s)Constructs an exception with the specified detail message. -
Uses of String in javax.crypto
Methods in javax.crypto that return String Modifier and Type Method Description StringEncryptedPrivateKeyInfo. getAlgName()Returns the encryption algorithm.StringCipher. getAlgorithm()Returns the algorithm name of thisCipherobject.StringKeyAgreement. getAlgorithm()Returns the algorithm name of thisKeyAgreementobject.StringKeyGenerator. getAlgorithm()Returns the algorithm name of thisKeyGeneratorobject.StringMac. getAlgorithm()Returns the algorithm name of thisMacobject.StringSealedObject. getAlgorithm()Returns the algorithm that was used to seal this object.StringSecretKeyFactory. getAlgorithm()Returns the algorithm name of thisSecretKeyFactoryobject.StringExemptionMechanism. getName()Returns the exemption mechanism name of thisExemptionMechanismobject.Methods in javax.crypto with parameters of type String Modifier and Type Method Description protected abstract SecretKeyKeyAgreementSpi. engineGenerateSecret(String algorithm)Creates the shared secret and returns it as a secret key object of the requested algorithm type.protected abstract voidCipherSpi. engineSetMode(String mode)Sets the mode of this cipher.protected abstract voidCipherSpi. engineSetPadding(String padding)Sets the padding mechanism of this cipher.protected KeyCipherSpi. engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)Unwrap a previously wrapped key.SecretKeyKeyAgreement. generateSecret(String algorithm)Creates the shared secret and returns it as aSecretKeyobject of the specified algorithm.static CipherCipher. getInstance(String transformation)Returns aCipherobject that implements the specified transformation.static CipherCipher. getInstance(String transformation, String provider)Returns aCipherobject that implements the specified transformation.static CipherCipher. getInstance(String transformation, Provider provider)Returns aCipherobject that implements the specified transformation.static ExemptionMechanismExemptionMechanism. getInstance(String algorithm)Returns anExemptionMechanismobject that implements the specified exemption mechanism algorithm.static ExemptionMechanismExemptionMechanism. getInstance(String algorithm, String provider)Returns anExemptionMechanismobject that implements the specified exemption mechanism algorithm.static ExemptionMechanismExemptionMechanism. getInstance(String algorithm, Provider provider)Returns anExemptionMechanismobject that implements the specified exemption mechanism algorithm.static KeyAgreementKeyAgreement. getInstance(String algorithm)Returns aKeyAgreementobject that implements the specified key agreement algorithm.static KeyAgreementKeyAgreement. getInstance(String algorithm, String provider)Returns aKeyAgreementobject that implements the specified key agreement algorithm.static KeyAgreementKeyAgreement. getInstance(String algorithm, Provider provider)Returns aKeyAgreementobject that implements the specified key agreement algorithm.static KeyGeneratorKeyGenerator. getInstance(String algorithm)Returns aKeyGeneratorobject that generates secret keys for the specified algorithm.static KeyGeneratorKeyGenerator. getInstance(String algorithm, String provider)Returns aKeyGeneratorobject that generates secret keys for the specified algorithm.static KeyGeneratorKeyGenerator. getInstance(String algorithm, Provider provider)Returns aKeyGeneratorobject that generates secret keys for the specified algorithm.static MacMac. getInstance(String algorithm)Returns aMacobject that implements the specified MAC algorithm.static MacMac. getInstance(String algorithm, String provider)Returns aMacobject that implements the specified MAC algorithm.static MacMac. getInstance(String algorithm, Provider provider)Returns aMacobject that implements the specified MAC algorithm.static SecretKeyFactorySecretKeyFactory. getInstance(String algorithm)Returns aSecretKeyFactoryobject that converts secret keys of the specified algorithm.static SecretKeyFactorySecretKeyFactory. getInstance(String algorithm, String provider)Returns aSecretKeyFactoryobject that converts secret keys of the specified algorithm.static SecretKeyFactorySecretKeyFactory. getInstance(String algorithm, Provider provider)Returns aSecretKeyFactoryobject that converts secret keys of the specified algorithm.PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey, String providerName)Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.static intCipher. getMaxAllowedKeyLength(String transformation)Returns the maximum key length for the specified transformation according to the installed JCE jurisdiction policy files.static AlgorithmParameterSpecCipher. getMaxAllowedParameterSpec(String transformation)Returns an AlgorithmParameterSpec object which contains the maximum cipher parameter value according to the jurisdiction policy file.ObjectSealedObject. getObject(Key key, String provider)Retrieves the original (encapsulated) object.KeyCipher. unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)Unwrap a previously wrapped key.Constructors in javax.crypto with parameters of type String Constructor Description AEADBadTagException(String msg)Constructs a AEADBadTagException with the specified detail message.BadPaddingException(String msg)Constructs a BadPaddingException with the specified detail message.Cipher(CipherSpi cipherSpi, Provider provider, String transformation)Creates a Cipher object.EncryptedPrivateKeyInfo(String algName, byte[] encryptedData)Constructs anEncryptedPrivateKeyInfofrom the encryption algorithm name and the encrypted data.ExemptionMechanism(ExemptionMechanismSpi exmechSpi, Provider provider, String mechanism)Creates a ExemptionMechanism object.ExemptionMechanismException(String msg)Constructs a ExemptionMechanismException with the specified detailed message.IllegalBlockSizeException(String msg)Constructs an IllegalBlockSizeException with the specified detail message.KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, String algorithm)Creates a KeyAgreement object.KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, String algorithm)Creates a KeyGenerator object.Mac(MacSpi macSpi, Provider provider, String algorithm)Creates a MAC object.NoSuchPaddingException(String msg)Constructs a NoSuchPaddingException with the specified detail message.SecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm)Creates a SecretKeyFactory object.ShortBufferException(String msg)Constructs a ShortBufferException with the specified detail message. -
Uses of String in javax.crypto.spec
Methods in javax.crypto.spec that return String Modifier and Type Method Description StringPSource. getAlgorithm()Returns the PSource algorithm name.StringSecretKeySpec. getAlgorithm()Returns the name of the algorithm associated with this secret key.StringOAEPParameterSpec. getDigestAlgorithm()Returns the message digest algorithm name.StringSecretKeySpec. getFormat()Returns the name of the encoding format for this secret key.StringOAEPParameterSpec. getMGFAlgorithm()Returns the mask generation function algorithm name.Constructors in javax.crypto.spec with parameters of type String Constructor Description OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)Constructs a parameter set for OAEP padding as defined in the PKCS #1 standard using the specified message digest algorithmmdName, mask generation function algorithmmgfName, parameters for the mask generation functionmgfSpec, and source of the encoding input PpSrc.PSource(String pSrcName)Constructs a source of the encoding input P for OAEP padding as defined in the PKCS #1 standard using the specified PSource algorithm.SecretKeySpec(byte[] key, int offset, int len, String algorithm)Constructs a secret key from the given byte array, using the firstlenbytes ofkey, starting atoffsetinclusive.SecretKeySpec(byte[] key, String algorithm)Constructs a secret key from the given byte array. -
Uses of String in javax.imageio
Fields in javax.imageio declared as String Modifier and Type Field Description protected StringImageWriteParam. compressionTypeAStringcontaining the name of the current compression type, ornullif none is set.protected String[]ImageWriteParam. compressionTypesAn array ofStrings containing the names of the available compression types.Methods in javax.imageio that return String Modifier and Type Method Description String[]ImageWriteParam. getCompressionQualityDescriptions()Returns an array ofStrings that may be used along withgetCompressionQualityValuesas part of a user interface for setting or displaying the compression quality level.StringImageWriteParam. getCompressionType()Returns the currently set compression type, ornullif none has been set.String[]ImageWriteParam. getCompressionTypes()Returns a list of available compression types, as an array orStrings, ornullif a compression type may not be chosen using these interfaces.StringImageReader. getFormatName()Returns aStringidentifying the format of the input source.StringImageWriteParam. getLocalizedCompressionTypeName()Returns a localized version of the name of the current compression type, using theLocalereturned bygetLocale.static String[]ImageIO. getReaderFileSuffixes()Returns an array ofStrings listing all of the file suffixes associated with the formats understood by the current set of registered readers.static String[]ImageIO. getReaderFormatNames()Returns an array ofStrings listing all of the informal format names understood by the current set of registered readers.static String[]ImageIO. getReaderMIMETypes()Returns an array ofStrings listing all of the MIME types understood by the current set of registered readers.static String[]ImageIO. getWriterFileSuffixes()Returns an array ofStrings listing all of the file suffixes associated with the formats understood by the current set of registered writers.static String[]ImageIO. getWriterFormatNames()Returns an array ofStrings listing all of the informal format names understood by the current set of registered writers.static String[]ImageIO. getWriterMIMETypes()Returns an array ofStrings listing all of the MIME types understood by the current set of registered writers.Methods in javax.imageio with parameters of type String Modifier and Type Method Description IIOMetadataImageReader. getImageMetadata(int imageIndex, String formatName, Set<String> nodeNames)Returns anIIOMetadataobject representing the metadata associated with the given image, ornullif the reader does not support reading metadata or none is available.static Iterator<ImageReader>ImageIO. getImageReadersByFormatName(String formatName)Returns anIteratorcontaining all currently registeredImageReaders that claim to be able to decode the named format.static Iterator<ImageReader>ImageIO. getImageReadersByMIMEType(String MIMEType)Returns anIteratorcontaining all currently registeredImageReaders that claim to be able to decode files with the given MIME type.static Iterator<ImageReader>ImageIO. getImageReadersBySuffix(String fileSuffix)Returns anIteratorcontaining all currently registeredImageReaders that claim to be able to decode files with the given suffix.static Iterator<ImageWriter>ImageIO. getImageWriters(ImageTypeSpecifier type, String formatName)Returns anIteratorcontaining all currently registeredImageWriters that claim to be able to encode images of the given layout (specified using anImageTypeSpecifier) in the given format.static Iterator<ImageWriter>ImageIO. getImageWritersByFormatName(String formatName)Returns anIteratorcontaining all currently registeredImageWriters that claim to be able to encode the named format.static Iterator<ImageWriter>ImageIO. getImageWritersByMIMEType(String MIMEType)Returns anIteratorcontaining all currently registeredImageWriters that claim to be able to encode files with the given MIME type.static Iterator<ImageWriter>ImageIO. getImageWritersBySuffix(String fileSuffix)Returns anIteratorcontaining all currently registeredImageWriters that claim to be able to encode files with the given suffix.IIOMetadataImageReader. getStreamMetadata(String formatName, Set<String> nodeNames)Returns anIIOMetadataobject representing the metadata associated with the input source as a whole (i.e., not associated with any particular image).protected voidImageReader. processWarningOccurred(String warning)Broadcasts a warning message to all registeredIIOReadWarningListeners by calling theirwarningOccurredmethod.protected voidImageReader. processWarningOccurred(String baseName, String keyword)Broadcasts a localized warning message to all registeredIIOReadWarningListeners by calling theirwarningOccurredmethod with a string taken from aResourceBundle.protected voidImageWriter. processWarningOccurred(int imageIndex, String warning)Broadcasts a warning message to all registeredIIOWriteWarningListeners by calling theirwarningOccurredmethod.protected voidImageWriter. processWarningOccurred(int imageIndex, String baseName, String keyword)Broadcasts a localized warning message to all registeredIIOWriteWarningListeners by calling theirwarningOccurredmethod with a string taken from aResourceBundle.voidImageWriteParam. setCompressionType(String compressionType)Sets the compression type to one of the values indicated bygetCompressionTypes.static booleanImageIO. write(RenderedImage im, String formatName, File output)Writes an image using an arbitraryImageWriterthat supports the given format to aFile.static booleanImageIO. write(RenderedImage im, String formatName, OutputStream output)Writes an image using an arbitraryImageWriterthat supports the given format to anOutputStream.static booleanImageIO. write(RenderedImage im, String formatName, ImageOutputStream output)Writes an image using the an arbitraryImageWriterthat supports the given format to anImageOutputStream.Method parameters in javax.imageio with type arguments of type String Modifier and Type Method Description IIOMetadataImageReader. getImageMetadata(int imageIndex, String formatName, Set<String> nodeNames)Returns anIIOMetadataobject representing the metadata associated with the given image, ornullif the reader does not support reading metadata or none is available.IIOMetadataImageReader. getStreamMetadata(String formatName, Set<String> nodeNames)Returns anIIOMetadataobject representing the metadata associated with the input source as a whole (i.e., not associated with any particular image).Constructors in javax.imageio with parameters of type String Constructor Description IIOException(String message)Constructs anIIOExceptionwith a given messageString.IIOException(String message, Throwable cause)Constructs anIIOExceptionwith a given messageStringand aThrowablethat was its underlying cause. -
Uses of String in javax.imageio.event
Methods in javax.imageio.event with parameters of type String Modifier and Type Method Description voidIIOReadWarningListener. warningOccurred(ImageReader source, String warning)Reports the occurrence of a non-fatal error in decoding.voidIIOWriteWarningListener. warningOccurred(ImageWriter source, int imageIndex, String warning)Reports the occurrence of a non-fatal error in encoding. -
Uses of String in javax.imageio.metadata
Fields in javax.imageio.metadata declared as String Modifier and Type Field Description protected String[]IIOMetadata. extraMetadataFormatClassNamesAn array of names of classes implementingIIOMetadataFormatand representing the metadata formats, other than the standard and native formats, that are supported by this plug-in, initialized tonulland set via the constructor.protected String[]IIOMetadata. extraMetadataFormatNamesAn array of names of formats, other than the standard and native formats, that are supported by this plug-in, initialized tonulland set via the constructor.protected StringIIOMetadata. nativeMetadataFormatClassNameThe name of the class implementingIIOMetadataFormatand representing the native metadata format, initialized tonulland set via the constructor.protected StringIIOMetadata. nativeMetadataFormatNameThe name of the native metadata format for this object, initialized tonulland set via the constructor.static StringIIOMetadataFormatImpl. standardMetadataFormatNameAStringconstant containing the standard format name,"javax_imageio_1.0".Methods in javax.imageio.metadata that return String Modifier and Type Method Description StringIIOMetadataNode. getAttribute(String name)Retrieves an attribute value by name.StringIIOMetadataFormat. getAttributeDefaultValue(String elementName, String attrName)Returns the default value of the named attribute, if it is not explicitly present within the named element, as aString, ornullif no default value is available.StringIIOMetadataFormat. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.StringIIOMetadataFormatImpl. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.String[]IIOMetadataFormat. getAttributeEnumerations(String elementName, String attrName)Returns an array ofStrings containing the legal enumerated values for the given attribute within the named element.StringIIOMetadataFormat. getAttributeMaxValue(String elementName, String attrName)Returns the maximum legal value for the attribute.StringIIOMetadataFormat. getAttributeMinValue(String elementName, String attrName)Returns the minimum legal value for the attribute.String[]IIOMetadataFormat. getAttributeNames(String elementName)Returns an array ofStrings listing the names of the attributes that may be associated with the named element.StringIIOMetadataNode. getAttributeNS(String namespaceURI, String localName)Equivalent togetAttribute(localName).StringIIOMetadataNode. getBaseURI()This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.String[]IIOMetadataFormat. getChildNames(String elementName)Returns an array ofStrings indicating the names of the element which are allowed to be children of the named element, in the order in which they should appear.StringIIOMetadataFormat. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull.StringIIOMetadataFormatImpl. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull.String[]IIOMetadata. getExtraMetadataFormatNames()Returns an array ofStrings containing the names of additional metadata formats, other than the native and standard formats, recognized by this plug-in'sgetAsTree,setFromTree, andmergeTreemethods.StringIIOMetadataNode. getLocalName()Equivalent togetNodeName.String[]IIOMetadata. getMetadataFormatNames()Returns an array ofStrings containing the names of all metadata formats, including the native and standard formats, recognized by this plug-in'sgetAsTree,setFromTree, andmergeTreemethods.StringIIOMetadataNode. getNamespaceURI()Returnsnull, since namespaces are not supported.StringIIOMetadata. getNativeMetadataFormatName()Returns the name of the "native" metadata format for this plug-in, which typically allows for lossless encoding and transmission of the metadata stored in the format handled by this plug-in.StringIIOMetadataNode. getNodeName()Returns the node name associated with this node.StringIIOMetadataNode. getNodeValue()Returns the value associated with this node.StringIIOMetadataNode. getPrefix()Returnsnull, since namespaces are not supported.protected StringIIOMetadataFormatImpl. getResourceBaseName()Returns the currently set base name for locatingResourceBundles.StringIIOMetadataFormat. getRootName()Returns the name of the root element of the format.StringIIOMetadataNode. getTagName()Equivalent togetNodeName.StringIIOMetadataNode. getTextContent()This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.StringIIOMetadataNode. lookupNamespaceURI(String prefix)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.StringIIOMetadataNode. lookupPrefix(String namespaceURI)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.Methods in javax.imageio.metadata with parameters of type String Modifier and Type Method Description protected voidIIOMetadataFormatImpl. addAttribute(String elementName, String attrName, int dataType, boolean required, int listMinLength, int listMaxLength)Adds a new attribute to a previously defined element that will be defined by a list of values.protected voidIIOMetadataFormatImpl. addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue)Adds a new attribute to a previously defined element that may be set to an arbitrary value.protected voidIIOMetadataFormatImpl. addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, String minValue, String maxValue, boolean minInclusive, boolean maxInclusive)Adds a new attribute to a previously defined element that will be defined by a range of values.protected voidIIOMetadataFormatImpl. addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, List<String> enumeratedValues)Adds a new attribute to a previously defined element that will be defined by a set of enumerated values.protected voidIIOMetadataFormatImpl. addBooleanAttribute(String elementName, String attrName, boolean hasDefaultValue, boolean defaultValue)Adds a new attribute to a previously defined element that will be defined by the enumerated valuesTRUEandFALSE, with a datatype ofDATATYPE_BOOLEAN.protected voidIIOMetadataFormatImpl. addChildElement(String elementName, String parentName)Adds an existing element to the list of legal children for a given parent node type.protected voidIIOMetadataFormatImpl. addElement(String elementName, String parentName, int childPolicy)Adds a new element type to this metadata document format with a child policy other thanCHILD_POLICY_REPEAT.protected voidIIOMetadataFormatImpl. addElement(String elementName, String parentName, int minChildren, int maxChildren)Adds a new element type to this metadata document format with a child policy ofCHILD_POLICY_REPEAT.protected voidIIOMetadataFormatImpl. addObjectValue(String elementName, Class<?> classType, int arrayMinLength, int arrayMaxLength)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.protected <T> voidIIOMetadataFormatImpl. addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.protected <T> voidIIOMetadataFormatImpl. addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue, List<? extends T> enumeratedValues)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.protected <T extends Object & Comparable<? super T>>
voidIIOMetadataFormatImpl. addObjectValue(String elementName, Class<T> classType, T defaultValue, Comparable<? super T> minValue, Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.booleanIIOMetadataFormat. canNodeAppear(String elementName, ImageTypeSpecifier imageType)Returnstrueif the element (and the subtree below it) is allowed to appear in a metadata document for an image of the given type, defined by anImageTypeSpecifier.abstract NodeIIOMetadata. getAsTree(String formatName)Returns an XML DOMNodeobject that represents the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.StringIIOMetadataNode. getAttribute(String name)Retrieves an attribute value by name.intIIOMetadataFormat. getAttributeDataType(String elementName, String attrName)Returns one of the constants starting withDATATYPE_, indicating the format and interpretation of the value of the given attribute within the named element.StringIIOMetadataFormat. getAttributeDefaultValue(String elementName, String attrName)Returns the default value of the named attribute, if it is not explicitly present within the named element, as aString, ornullif no default value is available.StringIIOMetadataFormat. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.StringIIOMetadataFormatImpl. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.String[]IIOMetadataFormat. getAttributeEnumerations(String elementName, String attrName)Returns an array ofStrings containing the legal enumerated values for the given attribute within the named element.intIIOMetadataFormat. getAttributeListMaxLength(String elementName, String attrName)Returns the maximum number of list items that may be used to define this attribute.intIIOMetadataFormat. getAttributeListMinLength(String elementName, String attrName)Returns the minimum number of list items that may be used to define this attribute.StringIIOMetadataFormat. getAttributeMaxValue(String elementName, String attrName)Returns the maximum legal value for the attribute.StringIIOMetadataFormat. getAttributeMinValue(String elementName, String attrName)Returns the minimum legal value for the attribute.String[]IIOMetadataFormat. getAttributeNames(String elementName)Returns an array ofStrings listing the names of the attributes that may be associated with the named element.AttrIIOMetadataNode. getAttributeNodeNS(String namespaceURI, String localName)Equivalent togetAttributeNode(localName).StringIIOMetadataNode. getAttributeNS(String namespaceURI, String localName)Equivalent togetAttribute(localName).intIIOMetadataFormat. getAttributeValueType(String elementName, String attrName)Returns one of the constants starting withVALUE_, indicating whether the values of the given attribute within the named element are arbitrary, constrained to lie within a specified range, constrained to be one of a set of enumerated values, or are a whitespace-separated list of arbitrary values.String[]IIOMetadataFormat. getChildNames(String elementName)Returns an array ofStrings indicating the names of the element which are allowed to be children of the named element, in the order in which they should appear.intIIOMetadataFormat. getChildPolicy(String elementName)Returns one of the constants starting withCHILD_POLICY_, indicating the legal pattern of children for the named element.StringIIOMetadataFormat. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull.StringIIOMetadataFormatImpl. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull.intIIOMetadataFormat. getElementMaxChildren(String elementName)Returns the maximum number of children of the named element with child policyCHILD_POLICY_REPEAT.intIIOMetadataFormat. getElementMinChildren(String elementName)Returns the minimum number of children of the named element with child policyCHILD_POLICY_REPEAT.NodeListIIOMetadataNode. getElementsByTagNameNS(String namespaceURI, String localName)Equivalent togetElementsByTagName(localName).ObjectIIOMetadataNode. getFeature(String feature, String version)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.IIOMetadataFormatIIOMetadata. getMetadataFormat(String formatName)Returns anIIOMetadataFormatobject describing the given metadata format, ornullif no description is available.intIIOMetadataFormat. getObjectArrayMaxLength(String elementName)Returns the maximum number of array elements that may be used to define theObjectreference within the named element.intIIOMetadataFormat. getObjectArrayMinLength(String elementName)Returns the minimum number of array elements that may be used to define theObjectreference within the named element.Class<?>IIOMetadataFormat. getObjectClass(String elementName)Returns theClasstype of theObjectreference stored within the element.ObjectIIOMetadataFormat. getObjectDefaultValue(String elementName)Returns anObjects containing the default value for theObjectreference within the named element.Object[]IIOMetadataFormat. getObjectEnumerations(String elementName)Returns an array ofObjects containing the legal enumerated values for theObjectreference within the named element.Comparable<?>IIOMetadataFormat. getObjectMaxValue(String elementName)Returns the maximum legal value for theObjectreference within the named element.Comparable<?>IIOMetadataFormat. getObjectMinValue(String elementName)Returns the minimum legal value for theObjectreference within the named element.intIIOMetadataFormat. getObjectValueType(String elementName)Returns one of the enumerated values starting withVALUE_, indicating the type of values (enumeration, range, or array) that are allowed for theObjectreference.ObjectIIOMetadataNode. getUserData(String key)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.booleanIIOMetadataNode. hasAttributeNS(String namespaceURI, String localName)Equivalent tohasAttribute(localName).booleanIIOMetadataFormat. isAttributeRequired(String elementName, String attrName)Returnstrueif the named attribute must be present within the named element.booleanIIOMetadataNode. isDefaultNamespace(String namespaceURI)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.booleanIIOMetadataNode. isSupported(String feature, String version)Returnsfalsesince DOM features are not supported.StringIIOMetadataNode. lookupNamespaceURI(String prefix)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.StringIIOMetadataNode. lookupPrefix(String namespaceURI)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.abstract voidIIOMetadata. mergeTree(String formatName, Node root)Alters the internal state of thisIIOMetadataobject from a tree of XML DOMNodes whose syntax is defined by the given metadata format.protected voidIIOMetadataFormatImpl. removeAttribute(String elementName, String attrName)Removes an attribute from a previously defined element.voidIIOMetadataNode. removeAttributeNS(String namespaceURI, String localName)Equivalent toremoveAttribute(localName).protected voidIIOMetadataFormatImpl. removeElement(String elementName)Removes an element from the format.protected voidIIOMetadataFormatImpl. removeObjectValue(String elementName)Disallows anObjectreference from being stored in nodes implementing the named element.voidIIOMetadataNode. setAttributeNS(String namespaceURI, String qualifiedName, String value)Equivalent tosetAttribute(qualifiedName, value).voidIIOMetadata. setFromTree(String formatName, Node root)Sets the internal state of thisIIOMetadataobject from a tree of XML DOMNodes whose syntax is defined by the given metadata format.voidIIOMetadataNode. setIdAttribute(String name, boolean isId)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.voidIIOMetadataNode. setIdAttributeNS(String namespaceURI, String localName, boolean isId)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.voidIIOMetadataNode. setNodeValue(String nodeValue)Sets theStringvalue associated with this node.voidIIOMetadataNode. setPrefix(String prefix)Does nothing, since namespaces are not supported.protected voidIIOMetadataFormatImpl. setResourceBaseName(String resourceBaseName)Sets a new base name for locatingResourceBundles containing descriptions of elements and attributes for this format.voidIIOMetadataNode. setTextContent(String textContent)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.ObjectIIOMetadataNode. setUserData(String key, Object data, UserDataHandler handler)This DOM Level 3 method is not supported forIIOMetadataNodeand will throw aDOMException.Method parameters in javax.imageio.metadata with type arguments of type String Modifier and Type Method Description protected voidIIOMetadataFormatImpl. addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, List<String> enumeratedValues)Adds a new attribute to a previously defined element that will be defined by a set of enumerated values.Constructors in javax.imageio.metadata with parameters of type String Constructor Description IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)Constructs anIIOInvalidTreeExceptionwith a message string, a reference to an exception that caused this exception, and a reference to theNodethat caused the parsing error.IIOInvalidTreeException(String message, Node offendingNode)Constructs anIIOInvalidTreeExceptionwith a message string and a reference to theNodethat caused the parsing error.IIOMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames)Constructs anIIOMetadataobject with the given format names and format class names, as well as a boolean indicating whether the standard format is supported.IIOMetadataFormatImpl(String rootName, int childPolicy)Constructs a blankIIOMetadataFormatImplinstance, with a given root element name and child policy (other thanCHILD_POLICY_REPEAT).IIOMetadataFormatImpl(String rootName, int minChildren, int maxChildren)Constructs a blankIIOMetadataFormatImplinstance, with a given root element name and a child policy ofCHILD_POLICY_REPEAT.IIOMetadataNode(String nodeName)Constructs anIIOMetadataNodewith a given node name. -
Uses of String in javax.imageio.plugins.jpeg
Methods in javax.imageio.plugins.jpeg that return String Modifier and Type Method Description StringJPEGHuffmanTable. toString()Returns aStringrepresenting this Huffman table.StringJPEGQTable. toString()Returns aStringrepresenting this quantization table. -
Uses of String in javax.imageio.plugins.tiff
Fields in javax.imageio.plugins.tiff declared as String Modifier and Type Field Description static StringExifGPSTagSet. DEST_DISTANCE_REF_KILOMETERSA value to be used with the "GPSDestDistanceRef" tag.static StringExifGPSTagSet. DEST_DISTANCE_REF_KNOTSA value to be used with the "GPSDestDistanceRef" tag.static StringExifGPSTagSet. DEST_DISTANCE_REF_MILESA value to be used with the "GPSDestDistanceRef" tag.static StringExifGPSTagSet. DIRECTION_REF_MAGNETICA value to be used with the "GPSTrackRef", "GPSImgDirectionRef", and "GPSDestBearingRef" tags.static StringExifGPSTagSet. DIRECTION_REF_TRUEA value to be used with the "GPSTrackRef", "GPSImgDirectionRef", and "GPSDestBearingRef" tags.static StringExifTIFFTagSet. EXIF_VERSION_2_1A value to be used with the "ExifVersion" tag to indicate Exif version 2.1.static StringExifTIFFTagSet. EXIF_VERSION_2_2A value to be used with the "ExifVersion" tag to indicate Exif version 2.2.static StringExifGPSTagSet. GPS_VERSION_2_2A value to be used with the "GPSVersionID" tag to indicate GPS version 2.2.static StringExifInteroperabilityTagSet. INTEROPERABILITY_INDEX_R98A value to be used with the "InteroperabilityIndex" tag.static StringExifInteroperabilityTagSet. INTEROPERABILITY_INDEX_THMA value to be used with the "InteroperabilityIndex" tag.static StringExifGPSTagSet. LATITUDE_REF_NORTHA value to be used with the "GPSLatitudeRef" and "GPSDestLatitudeRef" tags.static StringExifGPSTagSet. LATITUDE_REF_SOUTHA value to be used with the "GPSLatitudeRef" and "GPSDestLatitudeRef" tags.static StringExifGPSTagSet. LONGITUDE_REF_EASTA value to be used with the "GPSLongitudeRef" and "GPSDestLongitudeRef" tags.static StringExifGPSTagSet. LONGITUDE_REF_WESTA value to be used with the "GPSLongitudeRef" and "GPSDestLongitudeRef" tags.static StringExifGPSTagSet. MEASURE_MODE_2DA value to be used with the "GPSMeasureMode" tag.static StringExifGPSTagSet. MEASURE_MODE_3DA value to be used with the "GPSMeasureMode" tag.static StringExifGPSTagSet. SPEED_REF_KILOMETERS_PER_HOURA value to be used with the "GPSSpeedRef" tag.static StringExifGPSTagSet. SPEED_REF_KNOTSA value to be used with the "GPSSpeedRef" tag.static StringExifGPSTagSet. SPEED_REF_MILES_PER_HOURA value to be used with the "GPSSpeedRef" tag.static StringExifGPSTagSet. STATUS_MEASUREMENT_IN_PROGRESSA value to be used with the "GPSStatus" tag.static StringExifGPSTagSet. STATUS_MEASUREMENT_INTEROPERABILITYA value to be used with the "GPSStatus" tag.static StringTIFFTag. UNKNOWN_TAG_NAMEThe name assigned to a tag with an unknown tag number.Methods in javax.imageio.plugins.tiff that return String Modifier and Type Method Description StringTIFFField. getAsString(int index)Returns aTIFFTag.TIFF_ASCIIvalue as aString.StringTIFFTag. getName()Returns the name of the tag, as it will appear in image metadata.static StringTIFFField. getTypeName(int dataType)Returns the name of the supplied data type constant.StringTIFFField. getValueAsString(int index)Returns aStringcontaining a human-readable version of the data item.StringTIFFTag. getValueName(int value)Returns the mnemonic name associated with a particular value that this tag's data may take on, ornullif no name is present.Methods in javax.imageio.plugins.tiff that return types with arguments of type String Modifier and Type Method Description SortedSet<String>TIFFTagSet. getTagNames()Retrieves an unmodifiable lexicographically increasing set of tag names.Methods in javax.imageio.plugins.tiff with parameters of type String Modifier and Type Method Description protected voidTIFFTag. addValueName(int value, String name)Adds a mnemonic name for a particular value that this tag's data may take on.TIFFTagTIFFTagSet. getTag(String tagName)Returns theTIFFTaghaving the given tag name, ornullif the named tag does not belong to this tag set.static intTIFFField. getTypeByName(String typeName)Returns the data type constant corresponding to the supplied data type name.Constructors in javax.imageio.plugins.tiff with parameters of type String Constructor Description TIFFTag(String name, int number, int dataTypes)Constructs aTIFFTagwith a given name, tag number, and set of legal data types.TIFFTag(String name, int number, int dataTypes, int count)Constructs aTIFFTagwith a given name, tag number, set of legal data types, and value count.TIFFTag(String name, int number, TIFFTagSet tagSet)Constructs aTIFFTagwith a given name, tag number andTIFFTagSetto which it refers. -
Uses of String in javax.imageio.spi
Fields in javax.imageio.spi declared as String Modifier and Type Field Description protected String[]ImageReaderWriterSpi. extraImageMetadataFormatClassNamesAn array ofStrings containing the class names of any additional image metadata formats supported by this plug-in, initiallynull.protected String[]ImageReaderWriterSpi. extraImageMetadataFormatNamesAn array ofStrings containing the names of any additional image metadata formats supported by this plug-in, initiallynull.protected String[]ImageReaderWriterSpi. extraStreamMetadataFormatClassNamesAn array ofStrings containing the class names of any additional stream metadata formats supported by this plug-in, initiallynull.protected String[]ImageReaderWriterSpi. extraStreamMetadataFormatNamesAn array ofStrings containing the names of any additional stream metadata formats supported by this plug-in, initiallynull.protected String[]ImageReaderWriterSpi. MIMETypesAn array of strings to be returned fromgetMIMETypes, initiallynull.protected String[]ImageReaderWriterSpi. namesAn array of strings to be returned fromgetFormatNames, initiallynull.protected StringImageReaderWriterSpi. nativeImageMetadataFormatClassNameAStringcontaining the class name of the native stream metadata format supported by this plug-in, initiallynull.protected StringImageReaderWriterSpi. nativeImageMetadataFormatNameAStringcontaining the name of the native stream metadata format supported by this plug-in, initiallynull.protected StringImageReaderWriterSpi. nativeStreamMetadataFormatClassNameAStringcontaining the class name of the native stream metadata format supported by this plug-in, initiallynull.protected StringImageReaderWriterSpi. nativeStreamMetadataFormatNameAStringcontaining the name of the native stream metadata format supported by this plug-in, initiallynull.protected StringImageReaderWriterSpi. pluginClassNameAStringcontaining the name of the associated plug-in class, initiallynull.protected String[]ImageWriterSpi. readerSpiNamesAn array of strings to be returned fromgetImageReaderSpiNames, initiallynull.protected String[]ImageReaderWriterSpi. suffixesAn array of strings to be returned fromgetFileSuffixes, initiallynull.protected StringIIOServiceProvider. vendorNameAStringto be returned fromgetVendorName, initiallynull.protected StringIIOServiceProvider. versionAStringto be returned fromgetVersion, initially null.protected String[]ImageReaderSpi. writerSpiNamesAn array of strings to be returned fromgetImageWriterSpiNames, initiallynull.Methods in javax.imageio.spi that return String Modifier and Type Method Description abstract StringIIOServiceProvider. getDescription(Locale locale)Returns a brief, human-readable description of this service provider and its associated implementation.String[]ImageReaderWriterSpi. getExtraImageMetadataFormatNames()Returns an array ofStrings containing the names of additional document formats, other than the native and standard formats, recognized by thegetAsTreeandsetFromTreemethods on the image metadata objects produced or consumed by this plug-in.String[]ImageReaderWriterSpi. getExtraStreamMetadataFormatNames()Returns an array ofStrings containing the names of additional document formats, other than the native and standard formats, recognized by thegetAsTreeandsetFromTreemethods on the stream metadata objects produced or consumed by this plug-in.String[]ImageReaderWriterSpi. getFileSuffixes()Returns an array ofStrings containing a list of file suffixes associated with the formats that are generally usable by theImageReaderorImageWriterimplementation associated with this service provider.String[]ImageReaderWriterSpi. getFormatNames()Returns an array ofStrings containing human-readable names for the formats that are generally usable by theImageReaderorImageWriterimplementation associated with this service provider.String[]ImageWriterSpi. getImageReaderSpiNames()Returns an array ofStrings containing all the fully qualified names of all theImageReaderSpiclasses that can understand the internal metadata representation used by theImageWriterassociated with this service provider, ornullif there are no suchImageReadersspecified.String[]ImageReaderSpi. getImageWriterSpiNames()Returns an array ofStrings containing the fully qualified names of all theImageWriterSpiclasses that can understand the internal metadata representation used by theImageReaderassociated with this service provider, ornullif there are no suchImageWriters specified.String[]ImageReaderWriterSpi. getMIMETypes()Returns an array ofStrings containing a list of MIME types associated with the formats that are generally usable by theImageReaderorImageWriterimplementation associated with this service provider.StringImageReaderWriterSpi. getNativeImageMetadataFormatName()Returns the name of the "native" image metadata format for this plug-in, which typically allows for lossless encoding and transmission of the image metadata stored in the format handled by this plug-in.StringImageReaderWriterSpi. getNativeStreamMetadataFormatName()Returns the name of the "native" stream metadata format for this plug-in, which typically allows for lossless encoding and transmission of the stream metadata stored in the format handled by this plug-in.StringImageReaderWriterSpi. getPluginClassName()Returns the fully-qualified class name of theImageReaderorImageWriterplug-in associated with this service provider.abstract StringImageTranscoderSpi. getReaderServiceProviderName()Returns the fully qualified class name of anImageReaderSpiclass that generatesIIOMetadataobjects that may be used as input to this transcoder.StringIIOServiceProvider. getVendorName()Returns the name of the vendor responsible for creating this service provider and its associated implementation.StringIIOServiceProvider. getVersion()Returns a string describing the version number of this service provider and its associated implementation.abstract StringImageTranscoderSpi. getWriterServiceProviderName()Returns the fully qualified class name of anImageWriterSpiclass that generatesIIOMetadataobjects that may be used as input to this transcoder.Methods in javax.imageio.spi with parameters of type String Modifier and Type Method Description IIOMetadataFormatImageReaderWriterSpi. getImageMetadataFormat(String formatName)Returns anIIOMetadataFormatobject describing the given image metadata format, ornullif no description is available.IIOMetadataFormatImageReaderWriterSpi. getStreamMetadataFormat(String formatName)Returns anIIOMetadataFormatobject describing the given stream metadata format, ornullif no description is available.Constructors in javax.imageio.spi with parameters of type String Constructor Description IIOServiceProvider(String vendorName, String version)Constructs anIIOServiceProviderwith a given vendor name and version identifier.ImageInputStreamSpi(String vendorName, String version, Class<?> inputClass)Constructs anImageInputStreamSpiwith a given set of values.ImageOutputStreamSpi(String vendorName, String version, Class<?> outputClass)Constructs anImageOutputStreamSpiwith a given set of values.ImageReaderSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String readerClassName, Class<?>[] inputTypes, String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)Constructs anImageReaderSpiwith a given set of values.ImageReaderWriterSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String pluginClassName, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)Constructs anImageReaderWriterSpiwith a given set of values.ImageTranscoderSpi(String vendorName, String version)Constructs anImageTranscoderSpiwith a given set of values.ImageWriterSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String writerClassName, Class<?>[] outputTypes, String[] readerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)Constructs anImageWriterSpiwith a given set of values. -
Uses of String in javax.imageio.stream
Methods in javax.imageio.stream that return String Modifier and Type Method Description StringImageInputStream. readLine()Reads the next line of text from the input stream.StringImageInputStream. readUTF()Reads in a string that has been encoded using a modified UTF-8 format.Methods in javax.imageio.stream with parameters of type String Modifier and Type Method Description voidImageOutputStream. writeBytes(String s)Writes a string to the output stream.voidImageOutputStream. writeChars(String s)Writes a string to the output stream.voidImageOutputStream. writeUTF(String s)Writes two bytes of length information to the output stream in network byte order, followed by the modified UTF-8 representation of every character in the strings. -
Uses of String in javax.lang.model
Methods in javax.lang.model with parameters of type String Modifier and Type Method Description static SourceVersionSourceVersion. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.lang.model with parameters of type String Constructor Description UnknownEntityException(String message)Creates a newUnknownEntityExceptionwith the specified detail message. -
Uses of String in javax.lang.model.element
Methods in javax.lang.model.element that return String Modifier and Type Method Description StringAnnotationValue. toString()Returns a string representation of this value.StringModifier. toString()Returns this modifier's name in lowercase.Methods in javax.lang.model.element with parameters of type String Modifier and Type Method Description static ElementKindElementKind. valueOf(String name)Returns the enum constant of this type with the specified name.static ModifierModifier. valueOf(String name)Returns the enum constant of this type with the specified name.static ModuleElement.DirectiveKindModuleElement.DirectiveKind. valueOf(String name)Returns the enum constant of this type with the specified name.static NestingKindNestingKind. valueOf(String name)Returns the enum constant of this type with the specified name.RAnnotationValueVisitor. visitString(String s, P p)Visits a string value in an annotation. -
Uses of String in javax.lang.model.type
Methods in javax.lang.model.type that return String Modifier and Type Method Description StringTypeMirror. toString()Returns an informative string representation of this type.Methods in javax.lang.model.type with parameters of type String Modifier and Type Method Description static TypeKindTypeKind. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in javax.lang.model.util
Methods in javax.lang.model.util that return String Modifier and Type Method Description StringElements. getConstantExpression(Object value)Returns the text of a constant expression representing a primitive value or a string.StringElements. getDocComment(Element e)Returns the text of the documentation ("Javadoc") comment of an element.Methods in javax.lang.model.util with parameters of type String Modifier and Type Method Description static Elements.OriginElements.Origin. valueOf(String name)Returns the enum constant of this type with the specified name.RSimpleAnnotationValueVisitor6. visitString(String s, P p)Visits a string value in an annotation. -
Uses of String in javax.management
Fields in javax.management declared as String Modifier and Type Field Description static StringAttributeChangeNotification. ATTRIBUTE_CHANGENotification type which indicates that the observed MBean attribute value has changed.static StringJMX. DEFAULT_VALUE_FIELDThe name of thedefaultValuefield.protected StringMBeanFeatureInfo. descriptionThe human-readable description of the feature.static StringJMX. IMMUTABLE_INFO_FIELDThe name of theimmutableInfofield.static StringJMX. INTERFACE_CLASS_NAME_FIELDThe name of theinterfaceClassNamefield.static StringJMX. LEGAL_VALUES_FIELDThe name of thelegalValuesfield.static StringJMX. MAX_VALUE_FIELDThe name of themaxValuefield.static StringJMX. MIN_VALUE_FIELDThe name of theminValuefield.static StringJMX. MXBEAN_FIELDThe name of themxbeanfield.protected StringMBeanFeatureInfo. nameThe name of the feature.static StringJMX. OPEN_TYPE_FIELDThe name of theopenTypefield.static StringJMX. ORIGINAL_TYPE_FIELDThe name of theoriginalTypefield.static StringMBeanServerNotification. REGISTRATION_NOTIFICATIONNotification type denoting that an MBean has been registered.static StringMBeanServerNotification. UNREGISTRATION_NOTIFICATIONNotification type denoting that an MBean has been unregistered.Methods in javax.management that return String Modifier and Type Method Description StringMBeanPermission. getActions()Returns the "canonical string representation" of the actions.StringAttributeChangeNotification. getAttributeName()Gets the name of the attribute which has changed.StringAttributeValueExp. getAttributeName()Returns a string representation of the name of the attribute.StringAttributeChangeNotification. getAttributeType()Gets the type of the attribute which has changed.StringObjectName. getCanonicalKeyPropertyListString()Returns a string representation of the list of key properties, in which the key properties are sorted in lexical order.StringObjectName. getCanonicalName()Returns the canonical form of the name; that is, a string representation where the properties are sorted in lexical order.StringMBeanInfo. getClassName()Returns the name of the Java class of the MBean described by thisMBeanInfo.StringObjectInstance. getClassName()Returns the class part.protected StringStandardMBean. getClassName(MBeanInfo info)Customization hook: Get the className that will be used in the MBeanInfo returned by this MBean.StringMBeanServerConnection. getDefaultDomain()Returns the default domain used for naming the MBean.StringMBeanFeatureInfo. getDescription()Returns the human-readable description of the feature.StringMBeanInfo. getDescription()Returns a human readable description of the MBean.protected StringStandardMBean. getDescription(MBeanAttributeInfo info)Customization hook: Get the description that will be used in the MBeanAttributeInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanConstructorInfo info)Customization hook: Get the description that will be used in the MBeanConstructorInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)Customization hook: Get the description that will be used for the sequence MBeanParameterInfo of the MBeanConstructorInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanFeatureInfo info)Customization hook: Get the description that will be used in the MBeanFeatureInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanInfo info)Customization hook: Get the description that will be used in the MBeanInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanOperationInfo info)Customization hook: Get the description that will be used in the MBeanOperationInfo returned by this MBean.protected StringStandardMBean. getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)Customization hook: Get the description that will be used for the sequence MBeanParameterInfo of the MBeanOperationInfo returned by this MBean.StringObjectName. getDomain()Returns the domain part.String[]MBeanServerConnection. getDomains()Returns the list of domains in which any MBean is currently registered.String[]Descriptor. getFieldNames()Returns all the field names in the descriptor.String[]Descriptor. getFields()Returns all of the fields contained in this descriptor as a string array.StringMBeanServerDelegate. getImplementationName()Returns the JMX implementation name (the name of this product).StringMBeanServerDelegateMBean. getImplementationName()Returns the JMX implementation name (the name of this product).StringMBeanServerDelegate. getImplementationVendor()Returns the JMX implementation vendor (the vendor of this product).StringMBeanServerDelegateMBean. getImplementationVendor()Returns the JMX implementation vendor (the vendor of this product).StringMBeanServerDelegate. getImplementationVersion()Returns the JMX implementation version (the version of this product).StringMBeanServerDelegateMBean. getImplementationVersion()Returns the JMX implementation version (the version of this product).StringObjectName. getKeyProperty(String property)Obtains the value associated with a key in a key property.StringObjectName. getKeyPropertyListString()Returns a string representation of the list of key properties specified at creation time.StringMBeanServerDelegate. getMBeanServerId()Returns the MBean server agent identity.StringMBeanServerDelegateMBean. getMBeanServerId()Returns the MBean server agent identity.StringNotification. getMessage()Get the notification message.StringAttribute. getName()Returns a String containing the name of the attribute.StringMBeanFeatureInfo. getName()Returns the name of the feature.String[]MBeanNotificationInfo. getNotifTypes()Returns the array of strings (in dot notation) containing the notification types that the MBean may emit.protected StringStandardMBean. getParameterName(MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)Customization hook: Get the name that will be used for the sequence MBeanParameterInfo of the MBeanConstructorInfo returned by this MBean.protected StringStandardMBean. getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)Customization hook: Get the name that will be used for the sequence MBeanParameterInfo of the MBeanOperationInfo returned by this MBean.StringMBeanOperationInfo. getReturnType()Returns the type of the method's return value.StringMBeanServerDelegate. getSpecificationName()Returns the full name of the JMX specification implemented by this product.StringMBeanServerDelegateMBean. getSpecificationName()Returns the full name of the JMX specification implemented by this product.StringMBeanServerDelegate. getSpecificationVendor()Returns the vendor of the JMX specification implemented by this product.StringMBeanServerDelegateMBean. getSpecificationVendor()Returns the vendor of the JMX specification implemented by this product.StringMBeanServerDelegate. getSpecificationVersion()Returns the version of the JMX specification implemented by this product.StringMBeanServerDelegateMBean. getSpecificationVersion()Returns the version of the JMX specification implemented by this product.StringMBeanAttributeInfo. getType()Returns the class name of the attribute.StringMBeanParameterInfo. getType()Returns the type or class name of the data.StringNotification. getType()Get the notification type.StringStringValueExp. getValue()Returns the string represented by theStringValueExpinstance.static StringObjectName. quote(String s)Returns a quoted form of the given String, suitable for inclusion in an ObjectName.StringAttribute. toString()Returns a String object representing this Attribute's value.StringAttributeValueExp. toString()Returns the string representing its value.StringBadAttributeValueExpException. toString()Returns the string representing the object.StringBadBinaryOpValueExpException. toString()Returns the string representing the object.StringBadStringOperationException. toString()Returns the string representing the object.StringNotification. toString()Returns a String representation of this notification.StringObjectInstance. toString()Returns a string representing this ObjectInstance object.StringObjectName. toString()Returns a string representation of the object name.StringStringValueExp. toString()Returns the string representing the object.static StringObjectName. unquote(String q)Returns an unquoted form of the given String.String[]value()The getter names.Stringvalue()Returns the descriptor key.Methods in javax.management that return types with arguments of type String Modifier and Type Method Description Vector<String>AttributeChangeNotificationFilter. getEnabledAttributes()Gets all the enabled attribute names for this filter.Vector<String>NotificationFilterSupport. getEnabledTypes()Gets all the enabled notification types for this filter.Hashtable<String,String>ObjectName. getKeyPropertyList()Returns the key properties as a Hashtable.Hashtable<String,String>ObjectName. getKeyPropertyList()Returns the key properties as a Hashtable.Methods in javax.management with parameters of type String Modifier and Type Method Description static AttributeValueExpQuery. attr(String name)Returns a new attribute expression.static AttributeValueExpQuery. attr(String className, String name)Returns a new qualified attribute expression.ObjectInstanceMBeanServer. createMBean(String className, ObjectName name)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServer. createMBean(String className, ObjectName name, Object[] params, String[] signature)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServer. createMBean(String className, ObjectName name, ObjectName loaderName)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServer. createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServerConnection. createMBean(String className, ObjectName name)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServerConnection. createMBean(String className, ObjectName name, Object[] params, String[] signature)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServerConnection. createMBean(String className, ObjectName name, ObjectName loaderName)Instantiates and registers an MBean in the MBean server.ObjectInstanceMBeanServerConnection. createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)Instantiates and registers an MBean in the MBean server.static MBeanServerMBeanServerFactory. createMBeanServer(String domain)Return a new object implementing theMBeanServerinterface with the specified default domain name.default ObjectInputStreamMBeanServer. deserialize(String className, byte[] data)Deprecated.UseMBeanServer.getClassLoaderRepository()to obtain the class loader repository and use it to deserialize.default ObjectInputStreamMBeanServer. deserialize(String className, ObjectName loaderName, byte[] data)Deprecated.UsegetClassLoaderto obtain the class loader for deserialization.voidAttributeChangeNotificationFilter. disableAttribute(String name)Disables all the attribute change notifications the attribute name of which equals the specified attribute name to be sent to the listener.voidNotificationFilterSupport. disableType(String prefix)Removes the given prefix from the prefix list.voidAttributeChangeNotificationFilter. enableAttribute(String name)Enables all the attribute change notifications the attribute name of which equals the specified name to be sent to the listener.voidNotificationFilterSupport. enableType(String prefix)Enables all the notifications the type of which starts with the specified prefix to be sent to the listener.static ArrayList<MBeanServer>MBeanServerFactory. findMBeanServer(String agentId)Return a list of registered MBeanServer objects.ObjectDynamicMBean. getAttribute(String attribute)Obtain the value of a specific attribute of the Dynamic MBean.ObjectMBeanServer. getAttribute(ObjectName name, String attribute)ObjectMBeanServerConnection. getAttribute(ObjectName name, String attribute)Gets the value of a specific attribute of a named MBean.AttributeListDynamicMBean. getAttributes(String[] attributes)Get the values of several attributes of the Dynamic MBean.AttributeListMBeanServer. getAttributes(ObjectName name, String[] attributes)AttributeListMBeanServerConnection. getAttributes(ObjectName name, String[] attributes)Retrieves the values of several attributes of a named MBean.ObjectDescriptor. getFieldValue(String fieldName)Returns the value for a specific field name, or null if no value is present for that name.Object[]Descriptor. getFieldValues(String... fieldNames)Returns all the field values in the descriptor as an array of Objects.static ObjectNameObjectName. getInstance(String name)Return an instance of ObjectName that can be used anywhere an object obtained withnew ObjectName(name)can be used.static ObjectNameObjectName. getInstance(String domain, String key, String value)Return an instance of ObjectName that can be used anywhere an object obtained withnew ObjectName(domain, key, value)can be used.static ObjectNameObjectName. getInstance(String domain, Hashtable<String,String> table)Return an instance of ObjectName that can be used anywhere an object obtained withnew ObjectName(domain, table)can be used.StringObjectName. getKeyProperty(String property)Obtains the value associated with a key in a key property.ObjectMBeanServer. instantiate(String className)Instantiates an object using the list of all class loaders registered in the MBean server'sClass Loader Repository.ObjectMBeanServer. instantiate(String className, Object[] params, String[] signature)Instantiates an object using the list of all class loaders registered in the MBean serverClass Loader Repository.ObjectMBeanServer. instantiate(String className, ObjectName loaderName)Instantiates an object using the class Loader specified by itsObjectName.ObjectMBeanServer. instantiate(String className, ObjectName loaderName, Object[] params, String[] signature)Instantiates an object.ObjectDynamicMBean. invoke(String actionName, Object[] params, String[] signature)Allows an action to be invoked on the Dynamic MBean.ObjectMBeanServerConnection. invoke(ObjectName name, String operationName, Object[] params, String[] signature)Invokes an operation on an MBean.booleanMBeanServerConnection. isInstanceOf(ObjectName name, String className)Returns true if the MBean specified is an instance of the specified class, false otherwise.booleanObjectName. isPropertyValuePattern(String property)Checks whether the value associated with a key in a key property is a pattern.static Class<?>DefaultLoaderRepository. loadClass(String className)Deprecated.Go through the list of class loaders and try to load the requested class.static Class<?>DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class.MBeanServerMBeanServerBuilder. newMBeanServer(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)This method creates a new MBeanServer implementation object.static MBeanServerMBeanServerFactory. newMBeanServer(String domain)Return a new object implementing the MBeanServer interface with the specified default domain name, without keeping an internal reference to this new object.static StringObjectName. quote(String s)Returns a quoted form of the given String, suitable for inclusion in an ObjectName.voidDescriptor. removeField(String fieldName)Removes a field from the descriptor.voidImmutableDescriptor. removeField(String fieldName)Removes a field from the descriptor.voidDescriptor. setField(String fieldName, Object fieldValue)Sets the value for a specific field name.voidImmutableDescriptor. setField(String fieldName, Object fieldValue)This operation is unsupported since this class is immutable.voidDescriptor. setFields(String[] fieldNames, Object[] fieldValues)Sets all fields in the field names array to the new value with the same index in the field values array.voidImmutableDescriptor. setFields(String[] fieldNames, Object[] fieldValues)This operation is unsupported since this class is immutable.static StringObjectName. unquote(String q)Returns an unquoted form of the given String.static StringValueExpQuery. value(String val)Returns a new string expression.Method parameters in javax.management with type arguments of type String Modifier and Type Method Description static ObjectNameObjectName. getInstance(String domain, Hashtable<String,String> table)Return an instance of ObjectName that can be used anywhere an object obtained withnew ObjectName(domain, table)can be used.static ObjectNameObjectName. getInstance(String domain, Hashtable<String,String> table)Return an instance of ObjectName that can be used anywhere an object obtained withnew ObjectName(domain, table)can be used.Constructors in javax.management with parameters of type String Constructor Description Attribute(String name, Object value)Constructs an Attribute object which associates the given attribute name with the given value.AttributeChangeNotification(Object source, long sequenceNumber, long timeStamp, String msg, String attributeName, String attributeType, Object oldValue, Object newValue)Constructs an attribute change notification object.AttributeNotFoundException(String message)Constructor that allows a specific error message to be specified.AttributeValueExp(String attr)Creates a newAttributeValueExprepresenting the specified object attribute, named attr.BadStringOperationException(String message)Constructs aBadStringOperationExceptionwith the specified detail message.ImmutableDescriptor(String... fields)Construct a descriptor containing the given fields.ImmutableDescriptor(String[] fieldNames, Object[] fieldValues)Construct a descriptor containing the given fields and values.InstanceAlreadyExistsException(String message)Constructor that allows a specific error message to be specified.InstanceNotFoundException(String message)Constructor that allows a specific error message to be specified.IntrospectionException(String message)Constructor that allows a specific error message to be specified.InvalidAttributeValueException(String message)Constructor that allows a specific error message to be specified.JMException(String msg)Constructor that allows a specific error message to be specified.JMRuntimeException(String message)Constructor that allows a specific error message to be specified.ListenerNotFoundException(String message)Constructor that allows a specific error message to be specified.MalformedObjectNameException(String message)Constructor that allows a specific error message to be specified.MBeanAttributeInfo(String name, String description, Method getter, Method setter)This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute.MBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)Constructs anMBeanAttributeInfoobject.MBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)Constructs anMBeanAttributeInfoobject.MBeanConstructorInfo(String description, Constructor<?> constructor)Constructs anMBeanConstructorInfoobject.MBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)Constructs anMBeanConstructorInfoobject.MBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)Constructs anMBeanConstructorInfoobject.MBeanException(Exception e, String message)Creates anMBeanExceptionthat wraps the actualjava.lang.Exceptionwith a detail message.MBeanFeatureInfo(String name, String description)Constructs anMBeanFeatureInfoobject.MBeanFeatureInfo(String name, String description, Descriptor descriptor)Constructs anMBeanFeatureInfoobject.MBeanInfo(String className, String description, MBeanAttributeInfo[] attributes, MBeanConstructorInfo[] constructors, MBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications)Constructs anMBeanInfo.MBeanInfo(String className, String description, MBeanAttributeInfo[] attributes, MBeanConstructorInfo[] constructors, MBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications, Descriptor descriptor)Constructs anMBeanInfo.MBeanNotificationInfo(String[] notifTypes, String name, String description)Constructs anMBeanNotificationInfoobject.MBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)Constructs anMBeanNotificationInfoobject.MBeanOperationInfo(String description, Method method)Constructs anMBeanOperationInfoobject.MBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)Constructs anMBeanOperationInfoobject.MBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)Constructs anMBeanOperationInfoobject.MBeanParameterInfo(String name, String type, String description)Constructs anMBeanParameterInfoobject.MBeanParameterInfo(String name, String type, String description, Descriptor descriptor)Constructs anMBeanParameterInfoobject.MBeanPermission(String name, String actions)Create a new MBeanPermission object with the specified target name and actions.MBeanPermission(String className, String member, ObjectName objectName, String actions)Create a new MBeanPermission object with the specified target name (class name, member, object name) and actions.MBeanRegistrationException(Exception e, String message)Creates anMBeanRegistrationExceptionthat wraps the actualjava.lang.Exceptionwith a detailed message.MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName)Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.MBeanServerPermission(String name)Create a new MBeanServerPermission with the given name.MBeanServerPermission(String name, String actions)Create a new MBeanServerPermission with the given name.MBeanTrustPermission(String name)Create a new MBeanTrustPermission with the given name.MBeanTrustPermission(String name, String actions)Create a new MBeanTrustPermission with the given name.NotCompliantMBeanException(String message)Constructor that allows a specific error message to be specified.Notification(String type, Object source, long sequenceNumber)Creates a Notification object.Notification(String type, Object source, long sequenceNumber, long timeStamp)Creates a Notification object.Notification(String type, Object source, long sequenceNumber, long timeStamp, String message)Creates a Notification object.Notification(String type, Object source, long sequenceNumber, String message)Creates a Notification object.ObjectInstance(String objectName, String className)Allows an object instance to be created given a string representation of an object name and the full class name, including the package name.ObjectInstance(ObjectName objectName, String className)Allows an object instance to be created given an object name and the full class name, including the package name.ObjectName(String name)Construct an object name from the given string.ObjectName(String domain, String key, String value)Construct an object name with exactly one key property.ObjectName(String domain, Hashtable<String,String> table)Construct an object name with several key properties from a Hashtable.OperationsException(String message)Constructor that allows a specific error message to be specified.ReflectionException(Exception e, String message)Creates aReflectionExceptionthat wraps the actualjava.lang.Exceptionwith a detail message.RuntimeErrorException(Error e, String message)Constructor that allows a specific error message to be specified.RuntimeMBeanException(RuntimeException e, String message)Creates aRuntimeMBeanExceptionthat wraps the actualjava.lang.RuntimeExceptionwith a detailed message.RuntimeOperationsException(RuntimeException e, String message)Creates aRuntimeOperationsExceptionthat wraps the actualjava.lang.RuntimeExceptionwith a detailed message.ServiceNotFoundException(String message)Constructor that allows a specific error message to be specified.StringValueExp(String val)Creates a newStringValueExprepresenting the given string.Constructor parameters in javax.management with type arguments of type String Constructor Description ImmutableDescriptor(Map<String,?> fields)Construct a descriptor where the names and values of the fields are the keys and values of the given Map.ObjectName(String domain, Hashtable<String,String> table)Construct an object name with several key properties from a Hashtable.ObjectName(String domain, Hashtable<String,String> table)Construct an object name with several key properties from a Hashtable. -
Uses of String in javax.management.loading
Methods in javax.management.loading that return String Modifier and Type Method Description protected StringMLet. findLibrary(String libname)Returns the absolute path name of a native library.StringMLetContent. getCode()Gets the value of theCODEattribute of theMLETtag.StringMLetContent. getJarFiles()Gets the list of.jarfiles specified by theARCHIVEattribute of theMLETtag.StringMLet. getLibraryDirectory()Gets the current directory used by the library loader for storing native libraries before they are loaded into memory.StringMLetMBean. getLibraryDirectory()Gets the current directory used by the library loader for storing native libraries before they are loaded into memory.StringMLetContent. getName()Gets the value of theNAMEattribute of theMLETtag.StringMLetContent. getSerializedObject()Gets the value of theOBJECTattribute of theMLETtag.StringMLetContent. getVersion()Gets the value of theVERSIONattribute of theMLETtag.Methods in javax.management.loading that return types with arguments of type String Modifier and Type Method Description Map<String,String>MLetContent. getAttributes()Gets the attributes of theMLETtag.Map<String,String>MLetContent. getAttributes()Gets the attributes of theMLETtag.List<String>MLetContent. getParameterTypes()Gets the list of values of theTYPEattribute in each nested <PARAM> tag within theMLETtag.List<String>MLetContent. getParameterValues()Gets the list of values of theVALUEattribute in each nested <PARAM> tag within theMLETtag.Methods in javax.management.loading with parameters of type String Modifier and Type Method Description voidMLet. addURL(String url)Appends the specified URL to the list of URLs to search for classes and resources.voidMLetMBean. addURL(String url)Appends the specified URL to the list of URLs to search for classes and resources.protected URLMLet. check(String version, URL codebase, String jarfile, MLetContent mlet)This method is to be overridden when extending this service to support caching and versioning.protected Class<?>MLet. findClass(String name)This is the main method for class loaders that is being redefined.protected StringMLet. findLibrary(String libname)Returns the absolute path name of a native library.Set<Object>MLet. getMBeansFromURL(String url)Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.Set<Object>MLetMBean. getMBeansFromURL(String url)Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.URLMLetMBean. getResource(String name)Finds the resource with the given name.InputStreamMLetMBean. getResourceAsStream(String name)Returns an input stream for reading the specified resource.Enumeration<URL>MLetMBean. getResources(String name)Finds all the resources with the given name.Class<?>ClassLoaderRepository. loadClass(String className)Load the given class name through the list of class loaders.static Class<?>DefaultLoaderRepository. loadClass(String className)Deprecated.Go through the list of class loaders and try to load the requested class.Class<?>MLet. loadClass(String name, ClassLoaderRepository clr)Load a class, using the givenClassLoaderRepositoryif the class is not found in this MLet's URLs.Class<?>ClassLoaderRepository. loadClassBefore(ClassLoader stop, String className)Load the given class name through the list of class loaders, stopping at the given one.Class<?>ClassLoaderRepository. loadClassWithout(ClassLoader exclude, String className)Load the given class name through the list of class loaders, excluding the given one.static Class<?>DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class.voidMLet. setLibraryDirectory(String libdir)Sets the directory used by the library loader for storing native libraries before they are loaded into memory.voidMLetMBean. setLibraryDirectory(String libdir)Sets the directory used by the library loader for storing native libraries before they are loaded into memory.Constructor parameters in javax.management.loading with type arguments of type String Constructor Description MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)Creates anMLetinstance initialized with attributes read from anMLETtag in an MLet text file.MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)Creates anMLetinstance initialized with attributes read from anMLETtag in an MLet text file.MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)Creates anMLetinstance initialized with attributes read from anMLETtag in an MLet text file. -
Uses of String in javax.management.modelmbean
Methods in javax.management.modelmbean that return String Modifier and Type Method Description StringModelMBeanInfo. getClassName()Returns the name of the Java class of the MBean described by thisMBeanInfo.StringModelMBeanInfo. getDescription()Returns a human readable description of the MBean.StringDescriptorSupport. toString()Returns a human readable string representing the descriptor.StringModelMBeanAttributeInfo. toString()Returns a human-readable version of the ModelMBeanAttributeInfo instance.StringModelMBeanConstructorInfo. toString()Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.StringModelMBeanNotificationInfo. toString()Returns a human readable string containing ModelMBeanNotificationInfo.StringModelMBeanOperationInfo. toString()Returns a string containing the entire contents of the ModelMBeanOperationInfo in human readable form.StringDescriptorSupport. toXMLString()Returns an XML String representing the descriptor.Methods in javax.management.modelmbean with parameters of type String Modifier and Type Method Description voidModelMBeanNotificationBroadcaster. addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback)Registers an object which implements the NotificationListener interface as a listener.ModelMBeanAttributeInfoModelMBeanInfo. getAttribute(String inName)Returns a ModelMBeanAttributeInfo requested by name.ObjectRequiredModelMBean. getAttribute(String attrName)Returns the value of a specific attribute defined for this ModelMBean.AttributeListRequiredModelMBean. getAttributes(String[] attrNames)Returns the values of several attributes in the ModelMBean.ModelMBeanConstructorInfoModelMBeanInfoSupport. getConstructor(String inName)Returns the ModelMBeanConstructorInfo requested by name.DescriptorModelMBeanInfo. getDescriptor(String inDescriptorName, String inDescriptorType)Returns a Descriptor requested by name and descriptorType.DescriptorModelMBeanInfoSupport. getDescriptor(String inDescriptorName)Returns a Descriptor requested by name.Descriptor[]ModelMBeanInfo. getDescriptors(String inDescriptorType)Returns a Descriptor array consisting of all Descriptors for the ModelMBeanInfo of type inDescriptorType.ModelMBeanNotificationInfoModelMBeanInfo. getNotification(String inName)Returns a ModelMBeanNotificationInfo requested by name.ModelMBeanOperationInfoModelMBeanInfo. getOperation(String inName)Returns a ModelMBeanOperationInfo requested by name.ObjectRequiredModelMBean. invoke(String opName, Object[] opArgs, String[] sig)Invokes a method on or through a RequiredModelMBean and returns the result of the method execution.voidModelMBeanNotificationBroadcaster. removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName)Removes a listener for attributeChangeNotifications from the RequiredModelMBean.voidModelMBeanNotificationBroadcaster. sendNotification(String ntfyText)Sends a Notification which contains the text string that is passed in to the registered Notification listeners on the ModelMBean.voidModelMBeanInfo. setDescriptor(Descriptor inDescriptor, String inDescriptorType)Sets descriptors in the info array of type inDescriptorType for the ModelMBean.voidModelMBean. setManagedResource(Object mr, String mr_type)Sets the instance handle of the object against which to execute all methods in this ModelMBean management interface (MBeanInfo and Descriptors).voidRequiredModelMBean. setManagedResource(Object mr, String mr_type)Sets the instance handle of the object against which to execute all methods in this ModelMBean management interface (MBeanInfo and Descriptors).Constructors in javax.management.modelmbean with parameters of type String Constructor Description DescriptorSupport(String inStr)Descriptor constructor taking an XML String.DescriptorSupport(String... fields)Constructor taking fields in the fieldName=fieldValue format.DescriptorSupport(String[] fieldNames, Object[] fieldValues)Constructor taking field names and field values.InvalidTargetObjectTypeException(Exception e, String s)Constructor taking an exception and a string.InvalidTargetObjectTypeException(String s)Constructor from a string.ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter)Constructs a ModelMBeanAttributeInfo object with a default descriptor.ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor)Constructs a ModelMBeanAttributeInfo object.ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)Constructs a ModelMBeanAttributeInfo object with a default descriptor.ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)Constructs a ModelMBeanAttributeInfo object.ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod)Constructs a ModelMBeanConstructorInfo object with a default descriptor.ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor)Constructs a ModelMBeanConstructorInfo object.ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)Constructs a ModelMBeanConstructorInfo object with a default descriptor.ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)Constructs a ModelMBeanConstructorInfo object.ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications)Creates a ModelMBeanInfoSupport with the provided information, but the descriptor is a default.ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, Descriptor mbeandescriptor)Creates a ModelMBeanInfoSupport with the provided information and the descriptor given in parameter.ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)Constructs a ModelMBeanNotificationInfo object with a default descriptor.ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)Constructs a ModelMBeanNotificationInfo object.ModelMBeanOperationInfo(String description, Method operationMethod)Constructs a ModelMBeanOperationInfo object with a default descriptor.ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)Constructs a ModelMBeanOperationInfo object.ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)Constructs a ModelMBeanOperationInfo object with a default descriptor.ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)Constructs a ModelMBeanOperationInfo object.XMLParseException(Exception e, String s)Constructor taking a string and an exception.XMLParseException(String s)Constructor taking a string. -
Uses of String in javax.management.monitor
Fields in javax.management.monitor declared as String Modifier and Type Field Description protected StringMonitor. dbgTagDeprecated.No replacement.static StringMonitorNotification. OBSERVED_ATTRIBUTE_ERRORNotification type denoting that the observed attribute is not contained in the observed object.static StringMonitorNotification. OBSERVED_ATTRIBUTE_TYPE_ERRORNotification type denoting that the type of the observed attribute is not correct.static StringMonitorNotification. OBSERVED_OBJECT_ERRORNotification type denoting that the observed object is not registered in the MBean server.static StringMonitorNotification. RUNTIME_ERRORNotification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute.static StringMonitorNotification. STRING_TO_COMPARE_VALUE_DIFFEREDNotification type denoting that the observed attribute has differed from the "string to compare" value.static StringMonitorNotification. STRING_TO_COMPARE_VALUE_MATCHEDNotification type denoting that the observed attribute has matched the "string to compare" value.static StringMonitorNotification. THRESHOLD_ERRORNotification type denoting that the type of the thresholds, offset or modulus is not correct.static StringMonitorNotification. THRESHOLD_HIGH_VALUE_EXCEEDEDNotification type denoting that the observed attribute has exceeded the threshold high value.static StringMonitorNotification. THRESHOLD_LOW_VALUE_EXCEEDEDNotification type denoting that the observed attribute has exceeded the threshold low value.static StringMonitorNotification. THRESHOLD_VALUE_EXCEEDEDNotification type denoting that the observed attribute has reached the threshold value.Methods in javax.management.monitor that return String Modifier and Type Method Description StringStringMonitor. getDerivedGauge()Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGauge(ObjectName)StringStringMonitor. getDerivedGauge(ObjectName object)Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, ornullotherwise.StringStringMonitorMBean. getDerivedGauge()Deprecated.As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGauge(ObjectName)StringStringMonitorMBean. getDerivedGauge(ObjectName object)Gets the derived gauge for the specified MBean.StringMonitor. getObservedAttribute()Gets the attribute being observed.StringMonitorMBean. getObservedAttribute()Gets the attribute being observed.StringMonitorNotification. getObservedAttribute()Gets the observed attribute of this monitor notification.StringStringMonitor. getStringToCompare()Gets the string to compare with the observed attribute common to all observed MBeans.StringStringMonitorMBean. getStringToCompare()Gets the string to compare with the observed attribute.Methods in javax.management.monitor with parameters of type String Modifier and Type Method Description voidMonitor. setObservedAttribute(String attribute)Sets the attribute to observe.voidMonitorMBean. setObservedAttribute(String attribute)Sets the attribute to observe.voidStringMonitor. setStringToCompare(String value)Sets the string to compare with the observed attribute common to all observed MBeans.voidStringMonitorMBean. setStringToCompare(String value)Sets the string to compare with the observed attribute.Constructors in javax.management.monitor with parameters of type String Constructor Description MonitorSettingException(String message)Constructor that allows an error message to be specified. -
Uses of String in javax.management.openmbean
Fields in javax.management.openmbean declared as String Modifier and Type Field Description static String[]OpenType. ALLOWED_CLASSNAMESDeprecated.UseALLOWED_CLASSNAMES_LISTinstead.Fields in javax.management.openmbean with type parameters of type String Modifier and Type Field Description static List<String>OpenType. ALLOWED_CLASSNAMES_LISTList of the fully qualified names of the Java classes allowed for open data values.static SimpleType<String>SimpleType. STRINGTheSimpleTypeinstance describing values whose Java class name isjava.lang.String.Methods in javax.management.openmbean that return String Modifier and Type Method Description StringOpenMBeanInfo. getClassName()Returns the fully qualified Java class name of the open MBean instances thisOpenMBeanInfodescribes.StringOpenType. getClassName()Returns the fully qualified Java class name of the open data values this open type describes.StringCompositeType. getDescription(String itemName)Returns the description of the item whose name is itemName, ornullif thisCompositeTypeinstance does not define any item whose name is itemName.StringOpenMBeanConstructorInfo. getDescription()Returns a human readable description of the constructor described by thisOpenMBeanConstructorInfoinstance.StringOpenMBeanInfo. getDescription()Returns a human readable description of the type of open MBean instances thisOpenMBeanInfodescribes.StringOpenMBeanOperationInfo. getDescription()Returns a human readable description of the operation described by thisOpenMBeanOperationInfoinstance.StringOpenMBeanParameterInfo. getDescription()Returns a human readable description of the parameter described by thisOpenMBeanParameterInfoinstance.StringOpenType. getDescription()Returns the text description of thisOpenTypeinstance.StringOpenMBeanConstructorInfo. getName()Returns the name of the constructor described by thisOpenMBeanConstructorInfoinstance.StringOpenMBeanOperationInfo. getName()Returns the name of the operation described by thisOpenMBeanOperationInfoinstance.StringOpenMBeanParameterInfo. getName()Returns the name of the parameter described by thisOpenMBeanParameterInfoinstance.StringOpenMBeanOperationInfo. getReturnType()Returns the fully qualified Java class name of the values returned by the operation described by thisOpenMBeanOperationInfoinstance.StringOpenType. getTypeName()Returns the name of thisOpenTypeinstance.StringArrayType. toString()Returns a string representation of thisArrayTypeinstance.StringCompositeData. toString()Returns a string representation of thisCompositeDatainstance.StringCompositeDataSupport. toString()Returns a string representation of thisCompositeDataSupportinstance.StringCompositeType. toString()Returns a string representation of thisCompositeTypeinstance.StringOpenMBeanAttributeInfo. toString()Returns a string representation of thisOpenMBeanAttributeInfoinstance.StringOpenMBeanAttributeInfoSupport. toString()Returns a string representation of thisOpenMBeanAttributeInfoSupportinstance.StringOpenMBeanConstructorInfo. toString()Returns a string representation of thisOpenMBeanConstructorInfoinstance.StringOpenMBeanConstructorInfoSupport. toString()Returns a string representation of thisOpenMBeanConstructorInfoSupportinstance.StringOpenMBeanInfo. toString()Returns a string representation of thisOpenMBeanInfoinstance.StringOpenMBeanInfoSupport. toString()Returns a string representation of thisOpenMBeanInfoSupportinstance.StringOpenMBeanOperationInfo. toString()Returns a string representation of thisOpenMBeanOperationInfoinstance.StringOpenMBeanOperationInfoSupport. toString()Returns a string representation of thisOpenMBeanOperationInfoSupportinstance.StringOpenMBeanParameterInfo. toString()Returns a string representation of thisOpenMBeanParameterInfoinstance.StringOpenMBeanParameterInfoSupport. toString()Returns a string representation of thisOpenMBeanParameterInfoSupportinstance.abstract StringOpenType. toString()Returns a string representation of this open type instance.StringSimpleType. toString()Returns a string representation of thisSimpleTypeinstance.StringTabularData. toString()Returns a string representation of thisTabularDatainstance.StringTabularDataSupport. toString()Returns a string representation of thisTabularDataSupportinstance.StringTabularType. toString()Returns a string representation of thisTabularTypeinstance.Methods in javax.management.openmbean that return types with arguments of type String Modifier and Type Method Description List<String>TabularType. getIndexNames()Returns, in the same order as was given to this instance's constructor, an unmodifiable List of the names of the items the values of which are used to uniquely index each row element of tabular data values described by thisTabularTypeinstance.Set<String>CompositeType. keySet()Returns an unmodifiable Set view of all the item names defined by thisCompositeTypeinstance.Methods in javax.management.openmbean with parameters of type String Modifier and Type Method Description booleanCompositeData. containsKey(String key)Returnstrueif and only if thisCompositeDatainstance contains an item whose name iskey.booleanCompositeDataSupport. containsKey(String key)Returnstrueif and only if thisCompositeDatainstance contains an item whose name iskey.booleanCompositeType. containsKey(String itemName)Returnstrueif thisCompositeTypeinstance defines an item whose name is itemName.ObjectCompositeData. get(String key)Returns the value of the item whose name iskey.ObjectCompositeDataSupport. get(String key)Returns the value of the item whose name iskey.Object[]CompositeData. getAll(String[] keys)Returns an array of the values of the items whose names are specified bykeys, in the same order askeys.Object[]CompositeDataSupport. getAll(String[] keys)Returns an array of the values of the items whose names are specified bykeys, in the same order askeys.StringCompositeType. getDescription(String itemName)Returns the description of the item whose name is itemName, ornullif thisCompositeTypeinstance does not define any item whose name is itemName.OpenType<?>CompositeType. getType(String itemName)Returns the open type of the item whose name is itemName, ornullif thisCompositeTypeinstance does not define any item whose name is itemName.Constructors in javax.management.openmbean with parameters of type String Constructor Description CompositeDataSupport(CompositeType compositeType, String[] itemNames, Object[] itemValues)Constructs aCompositeDataSupportinstance with the specifiedcompositeType, whose item values are specified byitemValues[], in the same order as initemNames[].CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType<?>[] itemTypes)Constructs aCompositeTypeinstance, checking for the validity of the given parameters.InvalidKeyException(String msg)An InvalidKeyException with a detail message.InvalidOpenTypeException(String msg)An InvalidOpenTypeException with a detail message.KeyAlreadyExistsException(String msg)A KeyAlreadyExistsException with a detail message.OpenDataException(String msg)An OpenDataException with a detail message.OpenMBeanAttributeInfoSupport(String name, String description, OpenType<?> openType, boolean isReadable, boolean isWritable, boolean isIs)Constructs anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean with the specifiedname,openTypeanddescription, and the specified read/write access properties.OpenMBeanAttributeInfoSupport(String name, String description, OpenType<?> openType, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)Constructs anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean with the specifiedname,openType,description, read/write access properties, andDescriptor.OpenMBeanAttributeInfoSupport(String name, String description, OpenType<T> openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue)Constructs anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean with the specifiedname,openType,descriptionanddefaultValue, and the specified read/write access properties.OpenMBeanAttributeInfoSupport(String name, String description, OpenType<T> openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue, Comparable<T> minValue, Comparable<T> maxValue)Constructs anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean, with the specifiedname,openType,description,defaultValue,minValueandmaxValue.OpenMBeanAttributeInfoSupport(String name, String description, OpenType<T> openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue, T[] legalValues)Constructs anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean with the specifiedname,openType,description,defaultValueandlegalValues, and the specified read/write access properties.OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature)Constructs anOpenMBeanConstructorInfoSupportinstance, which describes the constructor of a class of open MBeans with the specifiedname,descriptionandsignature.OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)Constructs anOpenMBeanConstructorInfoSupportinstance, which describes the constructor of a class of open MBeans with the specifiedname,description,signature, anddescriptor.OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications)Constructs anOpenMBeanInfoSupportinstance, which describes a class of open MBeans with the specifiedclassName,description,openAttributes,openConstructors,openOperationsandnotifications.OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications, Descriptor descriptor)Constructs anOpenMBeanInfoSupportinstance, which describes a class of open MBeans with the specifiedclassName,description,openAttributes,openConstructors,openOperations,notifications, anddescriptor.OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType<?> returnOpenType, int impact)Constructs anOpenMBeanOperationInfoSupportinstance, which describes the operation of a class of open MBeans, with the specifiedname,description,signature,returnOpenTypeandimpact.OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType<?> returnOpenType, int impact, Descriptor descriptor)Constructs anOpenMBeanOperationInfoSupportinstance, which describes the operation of a class of open MBeans, with the specifiedname,description,signature,returnOpenType,impact, anddescriptor.OpenMBeanParameterInfoSupport(String name, String description, OpenType<?> openType)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openTypeanddescription.OpenMBeanParameterInfoSupport(String name, String description, OpenType<?> openType, Descriptor descriptor)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openType,description, anddescriptor.OpenMBeanParameterInfoSupport(String name, String description, OpenType<T> openType, T defaultValue)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openType,descriptionanddefaultValue.OpenMBeanParameterInfoSupport(String name, String description, OpenType<T> openType, T defaultValue, Comparable<T> minValue, Comparable<T> maxValue)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openType,description,defaultValue,minValueandmaxValue.OpenMBeanParameterInfoSupport(String name, String description, OpenType<T> openType, T defaultValue, T[] legalValues)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openType,description,defaultValueandlegalValues.OpenType(String className, String typeName, String description)Constructs anOpenTypeinstance (actually a subclass instance asOpenTypeis abstract), checking for the validity of the given parameters.TabularType(String typeName, String description, CompositeType rowType, String[] indexNames)Constructs aTabularTypeinstance, checking for the validity of the given parameters.Constructor parameters in javax.management.openmbean with type arguments of type String Constructor Description CompositeDataSupport(CompositeType compositeType, Map<String,?> items)Constructs aCompositeDataSupportinstance with the specifiedcompositeType, whose item names and corresponding values are given by the mappings in the mapitems. -
Uses of String in javax.management.relation
Fields in javax.management.relation declared as String Modifier and Type Field Description static StringRelationNotification. RELATION_BASIC_CREATIONType for the creation of an internal relation.static StringRelationNotification. RELATION_BASIC_REMOVALType for the removal from the Relation Service of an internal relation.static StringRelationNotification. RELATION_BASIC_UPDATEType for an update of an internal relation.static StringRelationNotification. RELATION_MBEAN_CREATIONType for the relation MBean added into the Relation Service.static StringRelationNotification. RELATION_MBEAN_REMOVALType for the removal from the Relation Service of a relation MBean.static StringRelationNotification. RELATION_MBEAN_UPDATEType for the update of a relation MBean.Methods in javax.management.relation that return String Modifier and Type Method Description StringRoleInfo. getDescription()Returns description text for the role.StringRoleInfo. getName()Returns the name of the role.StringRoleInfo. getRefMBeanClassName()Returns name of type of MBean expected to be referenced in corresponding role.StringRelation. getRelationId()Returns relation identifier (used to uniquely identify the relation inside the Relation Service).StringRelationNotification. getRelationId()Returns the relation identifier of created/removed/updated relation.StringRelationSupport. getRelationId()Returns relation identifier (used to uniquely identify the relation inside the Relation Service).StringRelation. getRelationTypeName()Returns name of associated relation type.StringRelationNotification. getRelationTypeName()Returns the relation type name of created/removed/updated relation.StringRelationService. getRelationTypeName(String relationId)Returns name of associated relation type for given relation.StringRelationServiceMBean. getRelationTypeName(String relationId)Returns name of associated relation type for given relation.StringRelationSupport. getRelationTypeName()Returns name of associated relation type.StringRelationType. getRelationTypeName()Returns the relation type name.StringRelationTypeSupport. getRelationTypeName()Returns the relation type name.StringRelationNotification. getRoleName()Returns name of updated role of updated relation (only for role update).StringRole. getRoleName()Retrieves role name.StringRoleUnresolved. getRoleName()Retrieves role name.StringRelationService. isRelation(ObjectName objectName)Returns the relation id associated to the given ObjectName if the MBean has been added as a relation in the Relation Service.StringRelationServiceMBean. isRelation(ObjectName objectName)Returns the relation id associated to the given ObjectName if the MBean has been added as a relation in the Relation Service.static StringRole. roleValueToString(List<ObjectName> roleValue)Returns a string for the given role value.StringRole. toString()Returns a string describing the role.StringRoleInfo. toString()Returns a string describing the role info.StringRoleUnresolved. toString()Return a string describing this object.Methods in javax.management.relation that return types with arguments of type String Modifier and Type Method Description Map<ObjectName,List<String>>RelationService. findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the MBeans associated to given one in a relation.Map<ObjectName,List<String>>RelationServiceMBean. findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the MBeans associated to given one in a relation.Map<String,List<String>>RelationService. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.Map<String,List<String>>RelationService. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.Map<String,List<String>>RelationServiceMBean. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.Map<String,List<String>>RelationServiceMBean. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.List<String>RelationService. findRelationsOfType(String relationTypeName)Returns the relation ids for relations of the given type.List<String>RelationServiceMBean. findRelationsOfType(String relationTypeName)Returns the relation ids for relations of the given type.List<String>RelationService. getAllRelationIds()Returns all the relation ids for all the relations handled by the Relation Service.List<String>RelationServiceMBean. getAllRelationIds()Returns all the relation ids for all the relations handled by the Relation Service.List<String>RelationService. getAllRelationTypeNames()Retrieves names of all known relation types.List<String>RelationServiceMBean. getAllRelationTypeNames()Retrieves names of all known relation types.Map<ObjectName,List<String>>Relation. getReferencedMBeans()Retrieves MBeans referenced in the various roles of the relation.Map<ObjectName,List<String>>RelationService. getReferencedMBeans(String relationId)Retrieves MBeans referenced in the various roles of the relation.Map<ObjectName,List<String>>RelationServiceMBean. getReferencedMBeans(String relationId)Retrieves MBeans referenced in the various roles of the relation.Map<ObjectName,List<String>>RelationSupport. getReferencedMBeans()Retrieves MBeans referenced in the various roles of the relation.Methods in javax.management.relation with parameters of type String Modifier and Type Method Description IntegerRelationService. checkRoleReading(String roleName, String relationTypeName)Checks if given Role can be read in a relation of the given type.IntegerRelationServiceMBean. checkRoleReading(String roleName, String relationTypeName)Checks if given Role can be read in a relation of the given type.IntegerRelationService. checkRoleWriting(Role role, String relationTypeName, Boolean initFlag)Checks if given Role can be set in a relation of given type.IntegerRelationServiceMBean. checkRoleWriting(Role role, String relationTypeName, Boolean initFlag)Checks if given Role can be set in a relation of given type.voidRelationService. createRelation(String relationId, String relationTypeName, RoleList roleList)Creates a simple relation (represented by a RelationSupport object) of given relation type, and adds it in the Relation Service.voidRelationServiceMBean. createRelation(String relationId, String relationTypeName, RoleList roleList)Creates a simple relation (represented by a RelationSupport object) of given relation type, and adds it in the Relation Service.voidRelationService. createRelationType(String relationTypeName, RoleInfo[] roleInfoArray)Creates a relation type (a RelationTypeSupport object) with given role infos (provided by the RoleInfo objects), and adds it in the Relation Service.voidRelationServiceMBean. createRelationType(String relationTypeName, RoleInfo[] roleInfoArray)Creates a relation type (RelationTypeSupport object) with given role infos (provided by the RoleInfo objects), and adds it in the Relation Service.Map<ObjectName,List<String>>RelationService. findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the MBeans associated to given one in a relation.Map<ObjectName,List<String>>RelationServiceMBean. findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the MBeans associated to given one in a relation.Map<String,List<String>>RelationService. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.Map<String,List<String>>RelationServiceMBean. findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)Retrieves the relations where a given MBean is referenced.List<String>RelationService. findRelationsOfType(String relationTypeName)Returns the relation ids for relations of the given type.List<String>RelationServiceMBean. findRelationsOfType(String relationTypeName)Returns the relation ids for relations of the given type.RoleResultRelationService. getAllRoles(String relationId)Returns all roles present in the relation.RoleResultRelationServiceMBean. getAllRoles(String relationId)Returns all roles present in the relation.Map<ObjectName,List<String>>RelationService. getReferencedMBeans(String relationId)Retrieves MBeans referenced in the various roles of the relation.Map<ObjectName,List<String>>RelationServiceMBean. getReferencedMBeans(String relationId)Retrieves MBeans referenced in the various roles of the relation.StringRelationService. getRelationTypeName(String relationId)Returns name of associated relation type for given relation.StringRelationServiceMBean. getRelationTypeName(String relationId)Returns name of associated relation type for given relation.List<ObjectName>Relation. getRole(String roleName)Retrieves role value for given role name.List<ObjectName>RelationService. getRole(String relationId, String roleName)Retrieves role value for given role name in given relation.List<ObjectName>RelationServiceMBean. getRole(String relationId, String roleName)Retrieves role value for given role name in given relation.List<ObjectName>RelationSupport. getRole(String roleName)Retrieves role value for given role name.IntegerRelation. getRoleCardinality(String roleName)Returns the number of MBeans currently referenced in the given role.IntegerRelationService. getRoleCardinality(String relationId, String roleName)Retrieves the number of MBeans currently referenced in the given role.IntegerRelationServiceMBean. getRoleCardinality(String relationId, String roleName)Retrieves the number of MBeans currently referenced in the given role.IntegerRelationSupport. getRoleCardinality(String roleName)Returns the number of MBeans currently referenced in the given role.RoleInfoRelationService. getRoleInfo(String relationTypeName, String roleInfoName)Retrieves role info for given role name of a given relation type.RoleInfoRelationServiceMBean. getRoleInfo(String relationTypeName, String roleInfoName)Retrieves role info for given role of a given relation type.RoleInfoRelationType. getRoleInfo(String roleInfoName)Returns the role info (RoleInfo object) for the given role info name (null if not found).RoleInfoRelationTypeSupport. getRoleInfo(String roleInfoName)Returns the role info (RoleInfo object) for the given role info name (null if not found).List<RoleInfo>RelationService. getRoleInfos(String relationTypeName)Retrieves list of role infos (RoleInfo objects) of a given relation type.List<RoleInfo>RelationServiceMBean. getRoleInfos(String relationTypeName)Retrieves list of role infos (RoleInfo objects) of a given relation type.RoleResultRelation. getRoles(String[] roleNameArray)Retrieves values of roles with given names.RoleResultRelationService. getRoles(String relationId, String[] roleNameArray)Retrieves values of roles with given names in given relation.RoleResultRelationServiceMBean. getRoles(String relationId, String[] roleNameArray)Retrieves values of roles with given names in given relation.RoleResultRelationSupport. getRoles(String[] roleNameArray)Retrieves values of roles with given names.voidRelation. handleMBeanUnregistration(ObjectName objectName, String roleName)Callback used by the Relation Service when a MBean referenced in a role is unregistered.voidRelationSupport. handleMBeanUnregistration(ObjectName objectName, String roleName)Callback used by the Relation Service when a MBean referenced in a role is unregistered.BooleanRelationService. hasRelation(String relationId)Checks if there is a relation identified in Relation Service with given relation id.BooleanRelationServiceMBean. hasRelation(String relationId)Checks if there is a relation identified in Relation Service with given relation id.ObjectNameRelationService. isRelationMBean(String relationId)If the relation is represented by an MBean (created by the user and added as a relation in the Relation Service), returns the ObjectName of the MBean.ObjectNameRelationServiceMBean. isRelationMBean(String relationId)If the relation is represented by an MBean (created by the user and added as a relation in the Relation Service), returns the ObjectName of the MBean.voidRelationService. removeRelation(String relationId)Removes given relation from the Relation Service.voidRelationServiceMBean. removeRelation(String relationId)Removes given relation from the Relation Service.voidRelationService. removeRelationType(String relationTypeName)Removes given relation type from Relation Service.voidRelationServiceMBean. removeRelationType(String relationTypeName)Removes given relation type from Relation Service.voidRelationService. sendRelationCreationNotification(String relationId)Sends a notification (RelationNotification) for a relation creation.voidRelationServiceMBean. sendRelationCreationNotification(String relationId)Sends a notification (RelationNotification) for a relation creation.voidRelationService. sendRelationRemovalNotification(String relationId, List<ObjectName> unregMBeanList)Sends a notification (RelationNotification) for a relation removal.voidRelationServiceMBean. sendRelationRemovalNotification(String relationId, List<ObjectName> unregMBeanList)Sends a notification (RelationNotification) for a relation removal.voidRelationService. sendRoleUpdateNotification(String relationId, Role newRole, List<ObjectName> oldValue)Sends a notification (RelationNotification) for a role update in the given relation.voidRelationServiceMBean. sendRoleUpdateNotification(String relationId, Role newRole, List<ObjectName> oldRoleValue)Sends a notification (RelationNotification) for a role update in the given relation.voidRelationService. setRole(String relationId, Role role)Sets the given role in given relation.voidRelationServiceMBean. setRole(String relationId, Role role)Sets the given role in given relation.voidRole. setRoleName(String roleName)Sets role name.voidRoleUnresolved. setRoleName(String name)Sets role name.RoleResultRelationService. setRoles(String relationId, RoleList roleList)Sets the given roles in given relation.RoleResultRelationServiceMBean. setRoles(String relationId, RoleList roleList)Sets the given roles in given relation.voidRelationService. updateRoleMap(String relationId, Role newRole, List<ObjectName> oldValue)Handles update of the Relation Service role map for the update of given role in given relation.voidRelationServiceMBean. updateRoleMap(String relationId, Role newRole, List<ObjectName> oldRoleValue)Handles update of the Relation Service role map for the update of given role in given relation.Constructors in javax.management.relation with parameters of type String Constructor Description InvalidRelationIdException(String message)Constructor with given message put in exception.InvalidRelationServiceException(String message)Constructor with given message put in exception.InvalidRelationTypeException(String message)Constructor with given message put in exception.InvalidRoleInfoException(String message)Constructor with given message put in exception.InvalidRoleValueException(String message)Constructor with given message put in exception.RelationException(String message)Constructor with given message put in exception.RelationNotFoundException(String message)Constructor with given message put in exception.RelationNotification(String notifType, Object sourceObj, long sequence, long timeStamp, String message, String id, String typeName, ObjectName objectName, String name, List<ObjectName> newValue, List<ObjectName> oldValue)Creates a notification for a role update in a relation.RelationNotification(String notifType, Object sourceObj, long sequence, long timeStamp, String message, String id, String typeName, ObjectName objectName, List<ObjectName> unregMBeanList)Creates a notification for either a relation creation (RelationSupport object created internally in the Relation Service, or an MBean added as a relation) or for a relation removal from the Relation Service.RelationServiceNotRegisteredException(String message)Constructor with given message put in exception.RelationSupport(String relationId, ObjectName relationServiceName, String relationTypeName, RoleList list)Creates aRelationSupportobject.RelationSupport(String relationId, ObjectName relationServiceName, MBeanServer relationServiceMBeanServer, String relationTypeName, RoleList list)Creates aRelationSupportobject.RelationTypeNotFoundException(String message)Constructor with given message put in exception.RelationTypeSupport(String relationTypeName)Constructor to be used for subclasses.RelationTypeSupport(String relationTypeName, RoleInfo[] roleInfoArray)Constructor where all role definitions are dynamically created and passed as parameter.Role(String roleName, List<ObjectName> roleValue)Make a new Role object.RoleInfo(String roleName, String mbeanClassName)Constructor.RoleInfo(String roleName, String mbeanClassName, boolean read, boolean write)Constructor.RoleInfo(String roleName, String mbeanClassName, boolean read, boolean write, int min, int max, String descr)Constructor.RoleInfoNotFoundException(String message)Constructor with given message put in exception.RoleNotFoundException(String message)Constructor with given message put in exception.RoleUnresolved(String name, List<ObjectName> value, int pbType)Constructor. -
Uses of String in javax.management.remote
Fields in javax.management.remote declared as String Modifier and Type Field Description static StringJMXConnectorServer. AUTHENTICATORName of the attribute that specifies the authenticator for a connector server.static StringJMXConnectionNotification. CLOSEDNotification type string for a connection-closed notification.static StringJMXConnector. CREDENTIALSName of the attribute that specifies the credentials to send to the connector server during connection.static StringJMXConnectorFactory. DEFAULT_CLASS_LOADERName of the attribute that specifies the default class loader.static StringJMXConnectorServerFactory. DEFAULT_CLASS_LOADERName of the attribute that specifies the default class loader.static StringJMXConnectorServerFactory. DEFAULT_CLASS_LOADER_NAMEName of the attribute that specifies the default class loader MBean name.static StringJMXConnectionNotification. FAILEDNotification type string for a connection-failed notification.static StringJMXConnectionNotification. NOTIFS_LOSTNotification type string for a connection that has possibly lost notifications.static StringJMXConnectionNotification. OPENEDNotification type string for a connection-opened notification.static StringJMXConnectorFactory. PROTOCOL_PROVIDER_CLASS_LOADERName of the attribute that specifies the class loader for loading protocol providers.static StringJMXConnectorServerFactory. PROTOCOL_PROVIDER_CLASS_LOADERName of the attribute that specifies the class loader for loading protocol providers.static StringJMXConnectorFactory. PROTOCOL_PROVIDER_PACKAGESName of the attribute that specifies the provider packages that are consulted when looking for the handler for a protocol.static StringJMXConnectorServerFactory. PROTOCOL_PROVIDER_PACKAGESName of the attribute that specifies the provider packages that are consulted when looking for the handler for a protocol.Methods in javax.management.remote that return String Modifier and Type Method Description StringJMXConnectionNotification. getConnectionId()The connection ID to which this notification pertains.StringJMXConnector. getConnectionId()Gets this connection's ID from the connector server.String[]JMXConnectorServerMBean. getConnectionIds()The list of IDs for currently-open connections to this connector server.StringJMXServiceURL. getHost()The host part of the Service URL.StringJMXPrincipal. getName()Returns the name of this principal.StringJMXServiceURL. getProtocol()The protocol part of the Service URL.StringJMXServiceURL. getURLPath()The URL Path part of the Service URL.StringJMXPrincipal. toString()Returns a string representation of thisJMXPrincipal.StringJMXServiceURL. toString()The string representation of this Service URL.StringNotificationResult. toString()Returns a string representation of the object.StringTargetedNotification. toString()Returns a textual representation of this Targeted Notification.Methods in javax.management.remote that return types with arguments of type String Modifier and Type Method Description Map<String,?>JMXConnectorServerMBean. getAttributes()The attributes for this connector server.Methods in javax.management.remote with parameters of type String Modifier and Type Method Description protected voidJMXConnectorServer. connectionClosed(String connectionId, String message, Object userData)Called by a subclass when a client connection is closed normally.protected voidJMXConnectorServer. connectionFailed(String connectionId, String message, Object userData)Called by a subclass when a client connection fails.protected voidJMXConnectorServer. connectionOpened(String connectionId, String message, Object userData)Called by a subclass when a new client connection is opened.Method parameters in javax.management.remote with type arguments of type String Modifier and Type Method Description voidJMXConnector. connect(Map<String,?> env)Establishes the connection to the connector server.static JMXConnectorJMXConnectorFactory. connect(JMXServiceURL serviceURL, Map<String,?> environment)Creates a connection to the connector server at the given address.static JMXConnectorJMXConnectorFactory. newJMXConnector(JMXServiceURL serviceURL, Map<String,?> environment)Creates a connector client for the connector server at the given address.JMXConnectorJMXConnectorProvider. newJMXConnector(JMXServiceURL serviceURL, Map<String,?> environment)Creates a new connector client that is ready to connect to the connector server at the given address.static JMXConnectorServerJMXConnectorServerFactory. newJMXConnectorServer(JMXServiceURL serviceURL, Map<String,?> environment, MBeanServer mbeanServer)Creates a connector server at the given address.JMXConnectorServerJMXConnectorServerProvider. newJMXConnectorServer(JMXServiceURL serviceURL, Map<String,?> environment, MBeanServer mbeanServer)Creates a new connector server at the given address.JMXConnectorJMXConnectorServer. toJMXConnector(Map<String,?> env)Returns a client stub for this connector server.JMXConnectorJMXConnectorServerMBean. toJMXConnector(Map<String,?> env)Returns a client stub for this connector server.Constructors in javax.management.remote with parameters of type String Constructor Description JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)Constructs a new connection notification.JMXPrincipal(String name)Creates a JMXPrincipal for a given identity.JMXProviderException(String message)Constructs aJMXProviderExceptionwith the specified detail message.JMXProviderException(String message, Throwable cause)Constructs aJMXProviderExceptionwith the specified detail message and nested exception.JMXServerErrorException(String s, Error err)Constructs aJMXServerErrorExceptionwith the specified detail message and nested error.JMXServiceURL(String serviceURL)Constructs aJMXServiceURLby parsing a Service URL string.JMXServiceURL(String protocol, String host, int port)Constructs aJMXServiceURLwith the given protocol, host, and port.JMXServiceURL(String protocol, String host, int port, String urlPath)Constructs aJMXServiceURLwith the given parts.SubjectDelegationPermission(String name)Creates a new SubjectDelegationPermission with the specified name.SubjectDelegationPermission(String name, String actions)Creates a new SubjectDelegationPermission object with the specified name. -
Uses of String in javax.management.remote.rmi
Fields in javax.management.remote.rmi declared as String Modifier and Type Field Description static StringRMIConnectorServer. CREDENTIAL_TYPESDeprecated, for removal: This API element is subject to removal in a future version.UseRMIConnectorServer.CREDENTIALS_FILTER_PATTERNwith a filter pattern string instead.static StringRMIConnectorServer. CREDENTIALS_FILTER_PATTERNName of the attribute that specifies anObjectInputFilterpattern string to filter classes acceptable forRMIServer.newClient()remote method call.static StringRMIConnectorServer. JNDI_REBIND_ATTRIBUTEName of the attribute that specifies whether theRMIServerstub that represents an RMI connector server should override an existing stub at the same address.static StringRMIConnectorServer. RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTEName of the attribute that specifies theRMIClientSocketFactoryfor the RMI objects created in conjunction with this connector.static StringRMIConnectorServer. RMI_SERVER_SOCKET_FACTORY_ATTRIBUTEName of the attribute that specifies theRMIServerSocketFactoryfor the RMI objects created in conjunction with this connector.static StringRMIConnectorServer. SERIAL_FILTER_PATTERNThis attribute defines a pattern from which to create aObjectInputFilterthat will be used when deserializing objects sent to theJMXConnectorServerby any client.Methods in javax.management.remote.rmi that return String Modifier and Type Method Description StringRMIConnection. getConnectionId()Returns the connection ID.StringRMIConnection. getDefaultDomain(Subject delegationSubject)Handles the methodMBeanServerConnection.getDefaultDomain().String[]RMIConnection. getDomains(Subject delegationSubject)Handles the methodMBeanServerConnection.getDomains().protected abstract StringRMIServerImpl. getProtocol()Returns the protocol string for this object.StringRMIServer. getVersion()The version of the RMI Connector Protocol understood by this connector server.StringRMIConnectionImpl. toString()Returns a string representation of this object.StringRMIConnector. toString()Returns a string representation of this object.Methods in javax.management.remote.rmi with parameters of type String Modifier and Type Method Description ObjectInstanceRMIConnection. createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)Handles the methodMBeanServerConnection.createMBean(String, ObjectName, Object[], String[]).ObjectInstanceRMIConnection. createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)ObjectInstanceRMIConnection. createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)Handles the methodMBeanServerConnection.createMBean(String, ObjectName, ObjectName).ObjectInstanceRMIConnection. createMBean(String className, ObjectName name, Subject delegationSubject)Handles the methodMBeanServerConnection.createMBean(String, ObjectName).ObjectRMIConnection. getAttribute(ObjectName name, String attribute, Subject delegationSubject)Handles the methodMBeanServerConnection.getAttribute(ObjectName, String).AttributeListRMIConnection. getAttributes(ObjectName name, String[] attributes, Subject delegationSubject)Handles the methodMBeanServerConnection.getAttributes(ObjectName, String[]).ObjectRMIConnection. invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)Handles the methodMBeanServerConnection.invoke(ObjectName, String, Object[], String[]).booleanRMIConnection. isInstanceOf(ObjectName name, String className, Subject delegationSubject)Handles the methodMBeanServerConnection.isInstanceOf(ObjectName, String).protected RMIConnectionRMIJRMPServerImpl. makeClient(String connectionId, Subject subject)Creates a new client connection as an RMI object exported through JRMP.protected abstract RMIConnectionRMIServerImpl. makeClient(String connectionId, Subject subject)Creates a new client connection.Method parameters in javax.management.remote.rmi with type arguments of type String Modifier and Type Method Description voidRMIConnector. connect(Map<String,?> environment)JMXConnectorRMIConnectorServer. toJMXConnector(Map<String,?> env)Returns a client stub for this connector server.Constructors in javax.management.remote.rmi with parameters of type String Constructor Description RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String,?> env)Constructs a newRMIConnection.Constructor parameters in javax.management.remote.rmi with type arguments of type String Constructor Description RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String,?> env)Constructs a newRMIConnection.RMIConnector(JMXServiceURL url, Map<String,?> environment)Constructs anRMIConnectorthat will connect the RMI connector server with the given address.RMIConnector(RMIServer rmiServer, Map<String,?> environment)Constructs anRMIConnectorusing the given RMI stub.RMIConnectorServer(JMXServiceURL url, Map<String,?> environment)Makes anRMIConnectorServer.RMIConnectorServer(JMXServiceURL url, Map<String,?> environment, MBeanServer mbeanServer)Makes anRMIConnectorServerfor the given MBean server.RMIConnectorServer(JMXServiceURL url, Map<String,?> environment, RMIServerImpl rmiServerImpl, MBeanServer mbeanServer)Makes anRMIConnectorServerfor the given MBean server.RMIIIOPServerImpl(Map<String,?> env)Deprecated.RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String,?> env)Creates a newRMIServerobject that will be exported on the given port using the given socket factories.RMIServerImpl(Map<String,?> env)Constructs a newRMIServerImpl. -
Uses of String in javax.management.timer
Methods in javax.management.timer that return String Modifier and Type Method Description StringTimer. getNotificationMessage(Integer id)Gets the timer notification detailed message corresponding to the specified identifier.StringTimerMBean. getNotificationMessage(Integer id)Gets the timer notification detailed message corresponding to the specified identifier.StringTimer. getNotificationType(Integer id)Gets the timer notification type corresponding to the specified identifier.StringTimerMBean. getNotificationType(Integer id)Gets the timer notification type corresponding to the specified identifier.Methods in javax.management.timer with parameters of type String Modifier and Type Method Description IntegerTimer. addNotification(String type, String message, Object userData, Date date)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.IntegerTimer. addNotification(String type, String message, Object userData, Date date, long period)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.IntegerTimer. addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimer. addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences, boolean fixedRate)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimerMBean. addNotification(String type, String message, Object userData, Date date)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.IntegerTimerMBean. addNotification(String type, String message, Object userData, Date date, long period)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.IntegerTimerMBean. addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimerMBean. addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences, boolean fixedRate)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.Vector<Integer>Timer. getNotificationIDs(String type)Gets all the identifiers of timer notifications corresponding to the specified type.Vector<Integer>TimerMBean. getNotificationIDs(String type)Gets all the identifiers of timer notifications corresponding to the specified type.voidTimer. removeNotifications(String type)Removes all the timer notifications corresponding to the specified type from the list of notifications.voidTimerMBean. removeNotifications(String type)Removes all the timer notifications corresponding to the specified type from the list of notifications.Constructors in javax.management.timer with parameters of type String Constructor Description TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, Integer id)Creates a timer notification object. -
Uses of String in javax.naming
Fields in javax.naming declared as String Modifier and Type Field Description protected StringRefAddr. addrTypeContains the type of this address.static StringContext. APPLETDeprecated.An environment property with this name is ignored while constructing an initial context.static StringContext. AUTHORITATIVEConstant that holds the name of the environment property for specifying the authoritativeness of the service requested.static StringContext. BATCHSIZEConstant that holds the name of the environment property for specifying the batch size to use when returning data via the service's protocol.protected StringReference. classFactoryContains the name of the factory class for creating an instance of the object to which this Reference refers.protected StringReference. classFactoryLocationContains the location of the factory class.protected StringReference. classNameContains the fully-qualified name of the class of the object to which this Reference refers.static StringContext. DNS_URLConstant that holds the name of the environment property for specifying the DNS host and domain names to use for the JNDI URL context (for example, "dns://somehost/wiz.com").static StringContext. INITIAL_CONTEXT_FACTORYConstant that holds the name of the environment property for specifying the initial context factory to use.static StringContext. LANGUAGEConstant that holds the name of the environment property for specifying the preferred language to use with the service.protected StringLinkException. linkExplanationContains the exception of why resolution of the link failed.static StringContext. OBJECT_FACTORIESConstant that holds the name of the environment property for specifying the list of object factories to use.static StringContext. PROVIDER_URLConstant that holds the name of the environment property for specifying configuration information for the service provider to use.static StringContext. REFERRALConstant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed.static StringContext. SECURITY_AUTHENTICATIONConstant that holds the name of the environment property for specifying the security level to use.static StringContext. SECURITY_CREDENTIALSConstant that holds the name of the environment property for specifying the credentials of the principal for authenticating the caller to the service.static StringContext. SECURITY_PRINCIPALConstant that holds the name of the environment property for specifying the identity of the principal for authenticating the caller to the service.static StringContext. SECURITY_PROTOCOLConstant that holds the name of the environment property for specifying the security protocol to use.static StringContext. STATE_FACTORIESConstant that holds the name of the environment property for specifying the list of state factories to use.static StringContext. URL_PKG_PREFIXESConstant that holds the name of the environment property for specifying the list of package prefixes to use when loading in URL context factories.Methods in javax.naming that return String Modifier and Type Method Description StringContext. composeName(String name, String prefix)Composes the name of this context with a name relative to this context.StringInitialContext. composeName(String name, String prefix)Composes the name of this context with a name relative to this context.StringCompositeName. get(int posn)Retrieves a component of this composite name.StringCompoundName. get(int posn)Retrieves a component of this compound name.StringName. get(int posn)Retrieves a component of this name.StringBinding. getClassName()Retrieves the class name of the object bound to the name of this binding.StringNameClassPair. getClassName()Retrieves the class name of the object bound to the name of this binding.StringReference. getClassName()Retrieves the class name of the object to which this reference refers.StringNamingException. getExplanation()Retrieves the explanation associated with this exception.StringReference. getFactoryClassLocation()Retrieves the location of the factory of the object to which this reference refers.StringReference. getFactoryClassName()Retrieves the class name of the factory of the object to which this reference refers.StringLinkException. getLinkExplanation()Retrieves the explanation associated with the problem encountered when resolving a link.StringLinkRef. getLinkName()Retrieves the name of this link.StringNameClassPair. getName()Retrieves the name of this binding.StringContext. getNameInNamespace()Retrieves the full name of this context within its own namespace.StringNameClassPair. getNameInNamespace()Retrieves the full name of this binding.StringRefAddr. getType()Retrieves the address type of this address.StringBinaryRefAddr. toString()Generates the string representation of this address.StringBinding. toString()Generates the string representation of this binding.StringCompositeName. toString()Generates the string representation of this composite name.StringCompoundName. toString()Generates the string representation of this compound name, using the syntax rules of the compound name.StringLinkException. toString()Generates the string representation of this exception.StringLinkException. toString(boolean detail)Generates the string representation of this exception.StringNameClassPair. toString()Generates the string representation of this name/class pair.StringNamingException. toString()Generates the string representation of this exception.StringNamingException. toString(boolean detail)Generates the string representation in more detail.StringRefAddr. toString()Generates the string representation of this address.StringReference. toString()Generates the string representation of this reference.Methods in javax.naming that return types with arguments of type String Modifier and Type Method Description Enumeration<String>CompositeName. getAll()Retrieves the components of this composite name as an enumeration of strings.Enumeration<String>CompoundName. getAll()Retrieves the components of this compound name as an enumeration of strings.Enumeration<String>Name. getAll()Retrieves the components of this name as an enumeration of strings.Methods in javax.naming with parameters of type String Modifier and Type Method Description NameCompositeName. add(int posn, String comp)Adds a single component at a specified position within this composite name.NameCompositeName. add(String comp)Adds a single component to the end of this composite name.NameCompoundName. add(int posn, String comp)Adds a single component at a specified position within this compound name.NameCompoundName. add(String comp)Adds a single component to the end of this compound name.NameName. add(int posn, String comp)Adds a single component at a specified position within this name.NameName. add(String comp)Adds a single component to the end of this name.ObjectContext. addToEnvironment(String propName, Object propVal)Adds a new environment property to the environment of this context.voidNamingException. appendRemainingComponent(String name)Add name as the last component in remaining name.voidContext. bind(String name, Object obj)Binds a name to an object.StringContext. composeName(String name, String prefix)Composes the name of this context with a name relative to this context.StringInitialContext. composeName(String name, String prefix)Composes the name of this context with a name relative to this context.ContextContext. createSubcontext(String name)Creates and binds a new context.voidContext. destroySubcontext(String name)Destroys the named context and removes it from the namespace.static <T> TInitialContext. doLookup(String name)A static method to retrieve the named object.RefAddrReference. get(String addrType)Retrieves the first address that has the address type 'addrType'.NameParserContext. getNameParser(String name)Retrieves the parser associated with the named context.protected ContextInitialContext. getURLOrDefaultInitCtx(String name)Retrieves a context for resolving the string namename.NamingEnumeration<NameClassPair>Context. list(String name)Enumerates the names bound in the named context, along with the class names of objects bound to them.NamingEnumeration<Binding>Context. listBindings(String name)Enumerates the names bound in the named context, along with the objects bound to them.ObjectContext. lookup(String name)Retrieves the named object.ObjectContext. lookupLink(String name)Retrieves the named object, following links except for the terminal atomic component of the name.NameNameParser. parse(String name)Parses a name into its components.voidContext. rebind(String name, Object obj)Binds a name to an object, overwriting any existing binding.ObjectContext. removeFromEnvironment(String propName)Removes an environment property from the environment of this context.voidContext. rename(String oldName, String newName)Binds a new name to the object bound to an old name, and unbinds the old name.voidNameClassPair. setClassName(String name)Sets the class name of this binding.voidLinkException. setLinkExplanation(String msg)Sets the explanation associated with the problem encountered when resolving a link.voidNameClassPair. setName(String name)Sets the name of this binding.voidNameClassPair. setNameInNamespace(String fullName)Sets the full name of this binding.voidContext. unbind(String name)Unbinds the named object.Constructors in javax.naming with parameters of type String Constructor Description AuthenticationException(String explanation)Constructs a new instance of AuthenticationException using the explanation supplied.AuthenticationNotSupportedException(String explanation)Constructs a new instance of AuthenticationNotSupportedException using an explanation.BinaryRefAddr(String addrType, byte[] src)Constructs a new instance of BinaryRefAddr using its address type and a byte array for contents.BinaryRefAddr(String addrType, byte[] src, int offset, int count)Constructs a new instance of BinaryRefAddr using its address type and a region of a byte array for contents.Binding(String name, Object obj)Constructs an instance of a Binding given its name and object.Binding(String name, Object obj, boolean isRelative)Constructs an instance of a Binding given its name, object, and whether the name is relative.Binding(String name, String className, Object obj)Constructs an instance of a Binding given its name, class name, and object.Binding(String name, String className, Object obj, boolean isRelative)Constructs an instance of a Binding given its name, class name, object, and whether the name is relative.CannotProceedException(String explanation)Constructs a new instance of CannotProceedException using an explanation.CommunicationException(String explanation)Constructs a new instance of CommunicationException using the arguments supplied.CompositeName(String n)Constructs a new composite name instance by parsing the string n using the composite name syntax (left-to-right, slash separated).CompoundName(String n, Properties syntax)Constructs a new compound name instance by parsing the string n using the syntax specified by the syntax properties supplied.ConfigurationException(String explanation)Constructs a new instance of ConfigurationException using an explanation.ContextNotEmptyException(String explanation)Constructs a new instance of ContextNotEmptyException using an explanation.InsufficientResourcesException(String explanation)Constructs a new instance of InsufficientResourcesException using an explanation.InterruptedNamingException(String explanation)Constructs an instance of InterruptedNamingException using an explanation of the problem.InvalidNameException(String explanation)Constructs an instance of InvalidNameException using an explanation of the problem.LimitExceededException(String explanation)Constructs a new instance of LimitExceededException using an explanation.LinkException(String explanation)Constructs a new instance of LinkException with an explanation.LinkLoopException(String explanation)Constructs a new instance of LinkLoopException with an explanation.LinkRef(String linkName)Constructs a LinkRef for a string name.MalformedLinkException(String explanation)Constructs a new instance of MalformedLinkException with an explanation.NameAlreadyBoundException(String explanation)Constructs a new instance of NameAlreadyBoundException using the explanation supplied.NameClassPair(String name, String className)Constructs an instance of a NameClassPair given its name and class name.NameClassPair(String name, String className, boolean isRelative)Constructs an instance of a NameClassPair given its name, class name, and whether it is relative to the listing context.NameNotFoundException(String explanation)Constructs a new instance of NameNotFoundException using the explanation supplied.NamingException(String explanation)Constructs a new NamingException with an explanation.NamingSecurityException(String explanation)Constructs a new instance of NamingSecurityException using the explanation supplied.NoInitialContextException(String explanation)Constructs an instance of NoInitialContextException with an explanation.NoPermissionException(String explanation)Constructs a new instance of NoPermissionException using an explanation.NotContextException(String explanation)Constructs a new instance of NotContextException using an explanation.OperationNotSupportedException(String explanation)Constructs a new instance of OperationNotSupportedException using an explanation.PartialResultException(String explanation)Constructs a new instance of the exception using the explanation message specified.RefAddr(String addrType)Constructs a new instance of RefAddr using its address type.Reference(String className)Constructs a new reference for an object with class name 'className'.Reference(String className, String factory, String factoryLocation)Constructs a new reference for an object with class name 'className', and the class name and location of the object's factory.Reference(String className, RefAddr addr)Constructs a new reference for an object with class name 'className' and an address.Reference(String className, RefAddr addr, String factory, String factoryLocation)Constructs a new reference for an object with class name 'className', the class name and location of the object's factory, and the address for the object.ReferralException(String explanation)Constructs a new instance of ReferralException using the explanation supplied.ServiceUnavailableException(String explanation)Constructs a new instance of ServiceUnavailableException using an explanation.SizeLimitExceededException(String explanation)Constructs a new instance of SizeLimitExceededException using an explanation.StringRefAddr(String addrType, String addr)Constructs a new instance of StringRefAddr using its address type and contents.TimeLimitExceededException(String explanation)Constructs a new instance of TimeLimitExceededException using the argument supplied.Constructor parameters in javax.naming with type arguments of type String Constructor Description CompositeName(Enumeration<String> comps)Constructs a new composite name instance using the components specified by 'comps'.CompoundName(Enumeration<String> comps, Properties syntax)Constructs a new compound name instance using the components specified in comps and syntax. -
Uses of String in javax.naming.directory
Fields in javax.naming.directory declared as String Modifier and Type Field Description protected StringBasicAttribute. attrIDHolds the attribute's id.Methods in javax.naming.directory that return String Modifier and Type Method Description StringAttribute. getID()Retrieves the id of this attribute.String[]SearchControls. getReturningAttributes()Retrieves the attributes that will be returned as part of the search.StringAttributeModificationException. toString()The string representation of this exception consists of information about where the error occurred, and the first unexecuted modification.StringBasicAttribute. toString()Generates the string representation of this attribute.StringBasicAttributes. toString()Generates the string representation of this attribute set.StringModificationItem. toString()Generates the string representation of this modification item, which consists of the modification operation and its related attribute.StringSearchResult. toString()Generates the string representation of this SearchResult.Methods in javax.naming.directory that return types with arguments of type String Modifier and Type Method Description NamingEnumeration<String>Attributes. getIDs()Retrieves an enumeration of the ids of the attributes in the attribute set.Methods in javax.naming.directory with parameters of type String Modifier and Type Method Description voidDirContext. bind(String name, Object obj, Attributes attrs)Binds a name to an object, along with associated attributes.DirContextDirContext. createSubcontext(String name, Attributes attrs)Creates and binds a new context, along with associated attributes.AttributeAttributes. get(String attrID)Retrieves the attribute with the given attribute id from the attribute set.AttributesDirContext. getAttributes(String name)Retrieves all of the attributes associated with a named object.AttributesDirContext. getAttributes(String name, String[] attrIds)Retrieves selected attributes associated with a named object.AttributesDirContext. getAttributes(Name name, String[] attrIds)Retrieves selected attributes associated with a named object.DirContextDirContext. getSchema(String name)Retrieves the schema associated with the named object.DirContextDirContext. getSchemaClassDefinition(String name)Retrieves a context containing the schema objects of the named object's class definitions.voidDirContext. modifyAttributes(String name, int mod_op, Attributes attrs)Modifies the attributes associated with a named object.voidDirContext. modifyAttributes(String name, ModificationItem[] mods)Modifies the attributes associated with a named object using an ordered list of modifications.AttributeAttributes. put(String attrID, Object val)Adds a new attribute to the attribute set.voidDirContext. rebind(String name, Object obj, Attributes attrs)Binds a name to an object, along with associated attributes, overwriting any existing binding.AttributeAttributes. remove(String attrID)Removes the attribute with the attribute id 'attrID' from the attribute set.NamingEnumeration<SearchResult>DirContext. search(String name, String filterExpr, Object[] filterArgs, SearchControls cons)Searches in the named context or object for entries that satisfy the given search filter.NamingEnumeration<SearchResult>DirContext. search(String name, String filter, SearchControls cons)Searches in the named context or object for entries that satisfy the given search filter.NamingEnumeration<SearchResult>DirContext. search(String name, Attributes matchingAttributes)Searches in a single context for objects that contain a specified set of attributes.NamingEnumeration<SearchResult>DirContext. search(String name, Attributes matchingAttributes, String[] attributesToReturn)Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.NamingEnumeration<SearchResult>DirContext. search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons)Searches in the named context or object for entries that satisfy the given search filter.NamingEnumeration<SearchResult>DirContext. search(Name name, String filter, SearchControls cons)Searches in the named context or object for entries that satisfy the given search filter.NamingEnumeration<SearchResult>DirContext. search(Name name, Attributes matchingAttributes, String[] attributesToReturn)Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.voidSearchControls. setReturningAttributes(String[] attrs)Specifies the attributes that will be returned as part of the search.Constructors in javax.naming.directory with parameters of type String Constructor Description AttributeInUseException(String explanation)Constructs a new instance of AttributeInUseException with an explanation.AttributeModificationException(String explanation)Constructs a new instance of AttributeModificationException using an explanation.BasicAttribute(String id)Constructs a new instance of an unordered attribute with no value.BasicAttribute(String id, boolean ordered)Constructs a new instance of a possibly ordered attribute with no value.BasicAttribute(String id, Object value)Constructs a new instance of an unordered attribute with a single value.BasicAttribute(String id, Object value, boolean ordered)Constructs a new instance of a possibly ordered attribute with a single value.BasicAttributes(String attrID, Object val)Constructs a new instance of Attributes with one attribute.BasicAttributes(String attrID, Object val, boolean ignoreCase)Constructs a new instance of Attributes with one attribute.InvalidAttributeIdentifierException(String explanation)Constructs a new instance of InvalidAttributeIdentifierException using the explanation supplied.InvalidAttributesException(String explanation)Constructs a new instance of InvalidAttributesException using an explanation.InvalidAttributeValueException(String explanation)Constructs a new instance of InvalidAttributeValueException using an explanation.InvalidSearchControlsException(String msg)Constructs a new instance of InvalidSearchControlsException with an explanation.InvalidSearchFilterException(String msg)Constructs a new instance of InvalidSearchFilterException with an explanation.NoSuchAttributeException(String explanation)Constructs a new instance of NoSuchAttributeException using an explanation.SchemaViolationException(String explanation)Constructs a new instance of SchemaViolationException using the explanation supplied.SearchControls(int scope, long countlim, int timelim, String[] attrs, boolean retobj, boolean deref)Constructs a search constraints using arguments.SearchResult(String name, Object obj, Attributes attrs)Constructs a search result using the result's name, its bound object, and its attributes.SearchResult(String name, Object obj, Attributes attrs, boolean isRelative)Constructs a search result using the result's name, its bound object, and its attributes, and whether the name is relative.SearchResult(String name, String className, Object obj, Attributes attrs)Constructs a search result using the result's name, its class name, its bound object, and its attributes.SearchResult(String name, String className, Object obj, Attributes attrs, boolean isRelative)Constructs a search result using the result's name, its class name, its bound object, its attributes, and whether the name is relative. -
Uses of String in javax.naming.event
Methods in javax.naming.event with parameters of type String Modifier and Type Method Description voidEventContext. addNamingListener(String target, int scope, NamingListener l)Adds a listener for receiving naming events fired when the object named by the string target name and scope changes.voidEventDirContext. addNamingListener(String target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l)Adds a listener for receiving naming events fired when objects identified by the search filterfilterand filter arguments at the object named by the string target name are modified.voidEventDirContext. addNamingListener(String target, String filter, SearchControls ctls, NamingListener l)Adds a listener for receiving naming events fired when objects identified by the search filterfilterat the object named by the string target name are modified.voidEventDirContext. addNamingListener(Name target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l)Adds a listener for receiving naming events fired when objects identified by the search filterfilterand filter arguments at the object named by the target are modified.voidEventDirContext. addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l)Adds a listener for receiving naming events fired when objects identified by the search filterfilterat the object named by target are modified. -
Uses of String in javax.naming.ldap
Fields in javax.naming.ldap declared as String Modifier and Type Field Description static StringLdapContext. CONTROL_FACTORIESConstant that holds the name of the environment property for specifying the list of control factories to use.protected StringBasicControl. idThe control's object identifier string.static StringManageReferralControl. OIDThe ManageReferral control's assigned object identifier is 2.16.840.1.113730.3.4.2.static StringPagedResultsControl. OIDThe paged-results control's assigned object identifier is 1.2.840.113556.1.4.319.static StringPagedResultsResponseControl. OIDThe paged-results response control's assigned object identifier is 1.2.840.113556.1.4.319.static StringSortControl. OIDThe server-side sort control's assigned object identifier is 1.2.840.113556.1.4.473.static StringSortResponseControl. OIDThe server-side sort response control's assigned object identifier is 1.2.840.113556.1.4.474.static StringStartTlsRequest. OIDThe StartTLS extended request's assigned object identifier is 1.3.6.1.4.1.1466.20037.static StringStartTlsResponse. OIDThe StartTLS extended response's assigned object identifier is 1.3.6.1.4.1.1466.20037.Methods in javax.naming.ldap that return String Modifier and Type Method Description static StringRdn. escapeValue(Object val)Given the value of an attribute, returns a string escaped according to the rules specified in RFC 2253.StringLdapName. get(int posn)Retrieves a component of this LDAP name as a string.StringSortKey. getAttributeID()Retrieves the attribute ID of the sort key.StringSortResponseControl. getAttributeID()Retrieves the ID of the attribute that caused the sort to fail.StringBasicControl. getID()Retrieves the control's object identifier string.StringControl. getID()Retrieves the object identifier assigned for the LDAP control.StringExtendedRequest. getID()Retrieves the object identifier of the request.StringExtendedResponse. getID()Retrieves the object identifier of the response.StringStartTlsRequest. getID()Retrieves the StartTLS request's object identifier string.StringStartTlsResponse. getID()Retrieves the StartTLS response's object identifier string.StringSortKey. getMatchingRuleID()Retrieves the matching rule ID used to order the attribute values.String[]UnsolicitedNotification. getReferrals()Retrieves the referral(s) sent by the server.StringRdn. getType()Retrieves one of this Rdn's type.StringLdapName. toString()Returns a string representation of this LDAP name in a format defined by RFC 2253 and described in the class description.StringRdn. toString()Methods in javax.naming.ldap that return types with arguments of type String Modifier and Type Method Description Enumeration<String>LdapName. getAll()Retrieves the components of this name as an enumeration of strings.Methods in javax.naming.ldap with parameters of type String Modifier and Type Method Description NameLdapName. add(int posn, String comp)Adds a single component at a specified position within this LDAP name.NameLdapName. add(String comp)Adds a single component to the end of this LDAP name.ExtendedResponseExtendedRequest. createExtendedResponse(String id, byte[] berValue, int offset, int length)Creates the response object that corresponds to this request.ExtendedResponseStartTlsRequest. createExtendedResponse(String id, byte[] berValue, int offset, int length)Creates an extended response object that corresponds to the LDAP StartTLS extended request.abstract voidStartTlsResponse. setEnabledCipherSuites(String[] suites)Overrides the default list of cipher suites enabled for use on the TLS connection.static ObjectRdn. unescapeValue(String val)Given an attribute value string formatted according to the rules specified in RFC 2253, returns the unformatted value.Constructors in javax.naming.ldap with parameters of type String Constructor Description BasicControl(String id)Constructs a non-critical control.BasicControl(String id, boolean criticality, byte[] value)Constructs a control using the supplied arguments.LdapName(String name)Constructs an LDAP name from the given distinguished name.LdapReferralException(String explanation)Constructs a new instance of LdapReferralException using the explanation supplied.PagedResultsResponseControl(String id, boolean criticality, byte[] value)Constructs a paged-results response control.Rdn(String rdnString)Constructs an Rdn from the given string.Rdn(String type, Object value)Constructs an Rdn from the given attribute type and value.SortControl(String[] sortBy, boolean criticality)Constructs a control to sort on a list of attributes in ascending order.SortControl(String sortBy, boolean criticality)Constructs a control to sort on a single attribute in ascending order.SortKey(String attrID)Creates the default sort key for an attribute.SortKey(String attrID, boolean ascendingOrder, String matchingRuleID)Creates a sort key for an attribute.SortResponseControl(String id, boolean criticality, byte[] value)Constructs a control to indicate the outcome of a sort request. -
Uses of String in javax.naming.spi
Fields in javax.naming.spi declared as String Modifier and Type Field Description static StringNamingManager. CPEConstant that holds the name of the environment property into whichgetContinuationContext()stores the value of itsCannotProceedExceptionparameter.Methods in javax.naming.spi with parameters of type String Modifier and Type Method Description voidResolveResult. appendRemainingComponent(String name)Adds a single component to the end of remaining name.static ContextNamingManager. getURLContext(String scheme, Hashtable<?,?> environment)Creates a context for the given URL scheme id.ResolveResultResolver. resolveToClass(String name, Class<? extends Context> contextType)Partially resolves a name.Constructors in javax.naming.spi with parameters of type String Constructor Description ResolveResult(Object robj, String rcomp)Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component. -
Uses of String in javax.net
Methods in javax.net with parameters of type String Modifier and Type Method Description abstract SocketSocketFactory. createSocket(String host, int port)Creates a socket and connects it to the specified remote host at the specified remote port.abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)Creates a socket and connects it to the specified remote host on the specified remote port. -
Uses of String in javax.net.ssl
Methods in javax.net.ssl that return String Modifier and Type Method Description StringX509KeyManager. chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509ExtendedKeyManager. chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)Choose an alias to authenticate the client side of anSSLEngineconnection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509ExtendedKeyManager. chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)Choose an alias to authenticate the server side of anSSLEngineconnection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509KeyManager. chooseServerAlias(String keyType, Principal[] issuers, Socket socket)Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringKeyManagerFactory. getAlgorithm()Returns the algorithm name of thisKeyManagerFactoryobject.StringTrustManagerFactory. getAlgorithm()Returns the algorithm name of thisTrustManagerFactoryobject.StringSSLEngine. getApplicationProtocol()Returns the most recent application protocol value negotiated for this connection.StringSSLSocket. getApplicationProtocol()Returns the most recent application protocol value negotiated for this connection.String[]SSLParameters. getApplicationProtocols()Returns a prioritized array of application-layer protocol names that can be negotiated over the SSL/TLS/DTLS protocols.StringSNIHostName. getAsciiName()Returns theStandardCharsets.US_ASCII-compliant hostname of thisSNIHostNameobject.StringHandshakeCompletedEvent. getCipherSuite()Returns the cipher suite in use by the session which was produced by the handshake.abstract StringHttpsURLConnection. getCipherSuite()Returns the cipher suite in use on this connection.StringSSLSession. getCipherSuite()Returns the name of the SSL cipher suite which is used for all connections in the session.String[]SSLParameters. getCipherSuites()Returns a copy of the array of ciphersuites or null if none have been set.String[]X509KeyManager. getClientAliases(String keyType, Principal[] issuers)Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).static StringKeyManagerFactory. getDefaultAlgorithm()Obtains the default KeyManagerFactory algorithm name.static StringTrustManagerFactory. getDefaultAlgorithm()Obtains the default TrustManagerFactory algorithm name.abstract String[]SSLServerSocketFactory. getDefaultCipherSuites()Returns the list of cipher suites which are enabled by default.abstract String[]SSLSocketFactory. getDefaultCipherSuites()Returns the list of cipher suites which are enabled by default.abstract String[]SSLEngine. getEnabledCipherSuites()Returns the names of the SSL cipher suites which are currently enabled for use on this engine.abstract String[]SSLServerSocket. getEnabledCipherSuites()Returns the list of cipher suites which are currently enabled for use by newly accepted connections.abstract String[]SSLSocket. getEnabledCipherSuites()Returns the names of the SSL cipher suites which are currently enabled for use on this connection.abstract String[]SSLEngine. getEnabledProtocols()Returns the names of the protocol versions which are currently enabled for use with thisSSLEngine.abstract String[]SSLServerSocket. getEnabledProtocols()Returns the names of the protocols which are currently enabled for use by the newly accepted connections.abstract String[]SSLSocket. getEnabledProtocols()Returns the names of the protocol versions which are currently enabled for use on this connection.StringSSLParameters. getEndpointIdentificationAlgorithm()Gets the endpoint identification algorithm.StringSSLEngine. getHandshakeApplicationProtocol()Returns the application protocol value negotiated on a SSL/TLS handshake currently in progress.StringSSLSocket. getHandshakeApplicationProtocol()Returns the application protocol value negotiated on a SSL/TLS handshake currently in progress.abstract String[]ExtendedSSLSession. getLocalSupportedSignatureAlgorithms()Obtains an array of supported signature algorithms that the local side is willing to use.StringSSLSessionBindingEvent. getName()Returns the name to which the object is being bound, or the name from which the object is being unbound.StringSSLEngine. getPeerHost()Returns the host name of the peer.StringSSLSession. getPeerHost()Returns the host name of the peer in this session.abstract String[]ExtendedSSLSession. getPeerSupportedSignatureAlgorithms()Obtains an array of supported signature algorithms that the peer is able to use.StringSSLContext. getProtocol()Returns the protocol name of thisSSLContextobject.StringSSLSession. getProtocol()Returns the standard name of the protocol used for all connections in the session.String[]SSLParameters. getProtocols()Returns a copy of the array of protocols or null if none have been set.String[]X509KeyManager. getServerAliases(String keyType, Principal[] issuers)Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).abstract String[]SSLEngine. getSupportedCipherSuites()Returns the names of the cipher suites which could be enabled for use on this engine.abstract String[]SSLServerSocket. getSupportedCipherSuites()Returns the names of the cipher suites which could be enabled for use on an SSL connection.abstract String[]SSLServerSocketFactory. getSupportedCipherSuites()Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory.abstract String[]SSLSocket. getSupportedCipherSuites()Returns the names of the cipher suites which could be enabled for use on this connection.abstract String[]SSLSocketFactory. getSupportedCipherSuites()Returns the names of the cipher suites which could be enabled for use on an SSL connection.abstract String[]SSLEngine. getSupportedProtocols()Returns the names of the protocols which could be enabled for use with thisSSLEngine.abstract String[]SSLServerSocket. getSupportedProtocols()Returns the names of the protocols which could be enabled for use.abstract String[]SSLSocket. getSupportedProtocols()Returns the names of the protocols which could be enabled for use on an SSL connection.String[]SSLSession. getValueNames()Returns an array of the names of all the application layer data objects bound into the Session.StringSNIHostName. toString()Returns a string representation of the object, including the DNS hostname in thisSNIHostNameobject.StringSNIServerName. toString()Returns a string representation of this server name, including the server name type and the encoded server name value in thisSNIServerNameobject.StringSSLEngineResult. toString()Returns a String representation of this object.Methods in javax.net.ssl that return types with arguments of type String Modifier and Type Method Description BiFunction<SSLEngine,List<String>,String>SSLEngine. getHandshakeApplicationProtocolSelector()Retrieves the callback function that selects an application protocol value during a SSL/TLS/DTLS handshake.BiFunction<SSLEngine,List<String>,String>SSLEngine. getHandshakeApplicationProtocolSelector()Retrieves the callback function that selects an application protocol value during a SSL/TLS/DTLS handshake.BiFunction<SSLSocket,List<String>,String>SSLSocket. getHandshakeApplicationProtocolSelector()Retrieves the callback function that selects an application protocol value during a SSL/TLS/DTLS handshake.BiFunction<SSLSocket,List<String>,String>SSLSocket. getHandshakeApplicationProtocolSelector()Retrieves the callback function that selects an application protocol value during a SSL/TLS/DTLS handshake.Methods in javax.net.ssl with parameters of type String Modifier and Type Method Description abstract voidX509ExtendedTrustManager. checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.abstract voidX509ExtendedTrustManager. checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine)Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.voidX509TrustManager. checkClientTrusted(X509Certificate[] chain, String authType)Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for client SSL authentication based on the authentication type.abstract voidX509ExtendedTrustManager. checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.abstract voidX509ExtendedTrustManager. checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine)Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.voidX509TrustManager. checkServerTrusted(X509Certificate[] chain, String authType)Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for server SSL authentication based on the authentication type.StringX509KeyManager. chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509ExtendedKeyManager. chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)Choose an alias to authenticate the client side of anSSLEngineconnection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509ExtendedKeyManager. chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)Choose an alias to authenticate the server side of anSSLEngineconnection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).StringX509KeyManager. chooseServerAlias(String keyType, Principal[] issuers, Socket socket)Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).static SNIMatcherSNIHostName. createSNIMatcher(String regex)Creates anSNIMatcherobject forSNIHostNames.abstract SocketSSLSocketFactory. createSocket(Socket s, String host, int port, boolean autoClose)Returns a socket layered over an existing socket connected to the named host, at the given port.SSLEngineSSLContext. createSSLEngine(String peerHost, int peerPort)Creates a newSSLEngineusing this context using advisory peer information.protected abstract SSLEngineSSLContextSpi. engineCreateSSLEngine(String host, int port)Creates aSSLEngineusing this context.X509Certificate[]X509KeyManager. getCertificateChain(String alias)Returns the certificate chain associated with the given alias.String[]X509KeyManager. getClientAliases(String keyType, Principal[] issuers)Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).static KeyManagerFactoryKeyManagerFactory. getInstance(String algorithm)Returns aKeyManagerFactoryobject that acts as a factory for key managers.static KeyManagerFactoryKeyManagerFactory. getInstance(String algorithm, String provider)Returns aKeyManagerFactoryobject that acts as a factory for key managers.static KeyManagerFactoryKeyManagerFactory. getInstance(String algorithm, Provider provider)Returns aKeyManagerFactoryobject that acts as a factory for key managers.static SSLContextSSLContext. getInstance(String protocol)Returns aSSLContextobject that implements the specified secure socket protocol.static SSLContextSSLContext. getInstance(String protocol, String provider)Returns aSSLContextobject that implements the specified secure socket protocol.static SSLContextSSLContext. getInstance(String protocol, Provider provider)Returns aSSLContextobject that implements the specified secure socket protocol.static TrustManagerFactoryTrustManagerFactory. getInstance(String algorithm)Returns aTrustManagerFactoryobject that acts as a factory for trust managers.static TrustManagerFactoryTrustManagerFactory. getInstance(String algorithm, String provider)Returns aTrustManagerFactoryobject that acts as a factory for trust managers.static TrustManagerFactoryTrustManagerFactory. getInstance(String algorithm, Provider provider)Returns aTrustManagerFactoryobject that acts as a factory for trust managers.PrivateKeyX509KeyManager. getPrivateKey(String alias)Returns the key associated with the given alias.String[]X509KeyManager. getServerAliases(String keyType, Principal[] issuers)Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).ObjectSSLSession. getValue(String name)Returns the object bound to the given name in the session's application layer data.voidSSLSession. putValue(String name, Object value)Binds the specifiedvalueobject into the session's application layer data with the givenname.voidSSLSession. removeValue(String name)Removes the object bound to the given name in the session's application layer data.voidSSLParameters. setApplicationProtocols(String[] protocols)Sets the prioritized array of application-layer protocol names that can be negotiated over the SSL/TLS/DTLS protocols.voidSSLParameters. setCipherSuites(String[] cipherSuites)Sets the array of ciphersuites.abstract voidSSLEngine. setEnabledCipherSuites(String[] suites)Sets the cipher suites enabled for use on this engine.abstract voidSSLServerSocket. setEnabledCipherSuites(String[] suites)Sets the cipher suites enabled for use by accepted connections.abstract voidSSLSocket. setEnabledCipherSuites(String[] suites)Sets the cipher suites enabled for use on this connection.abstract voidSSLEngine. setEnabledProtocols(String[] protocols)Set the protocol versions enabled for use on this engine.abstract voidSSLServerSocket. setEnabledProtocols(String[] protocols)Controls which particular protocols are enabled for use by accepted connections.abstract voidSSLSocket. setEnabledProtocols(String[] protocols)Sets the protocol versions enabled for use on this connection.voidSSLParameters. setEndpointIdentificationAlgorithm(String algorithm)Sets the endpoint identification algorithm.voidSSLParameters. setProtocols(String[] protocols)Sets the array of protocols.static SSLEngineResult.HandshakeStatusSSLEngineResult.HandshakeStatus. valueOf(String name)Returns the enum constant of this type with the specified name.static SSLEngineResult.StatusSSLEngineResult.Status. valueOf(String name)Returns the enum constant of this type with the specified name.booleanHostnameVerifier. verify(String hostname, SSLSession session)Verify that the host name is an acceptable match with the server's authentication scheme.Method parameters in javax.net.ssl with type arguments of type String Modifier and Type Method Description voidSSLEngine. setHandshakeApplicationProtocolSelector(BiFunction<SSLEngine,List<String>,String> selector)Registers a callback function that selects an application protocol value for a SSL/TLS/DTLS handshake.voidSSLEngine. setHandshakeApplicationProtocolSelector(BiFunction<SSLEngine,List<String>,String> selector)Registers a callback function that selects an application protocol value for a SSL/TLS/DTLS handshake.voidSSLSocket. setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket,List<String>,String> selector)Registers a callback function that selects an application protocol value for a SSL/TLS/DTLS handshake.voidSSLSocket. setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket,List<String>,String> selector)Registers a callback function that selects an application protocol value for a SSL/TLS/DTLS handshake.Constructors in javax.net.ssl with parameters of type String Constructor Description KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm)Creates a KeyManagerFactory object.SNIHostName(String hostname)Creates anSNIHostNameusing the specified hostname.SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol)Creates an SSLContext object.SSLEngine(String peerHost, int peerPort)Constructor for anSSLEngine.SSLException(String reason)Constructs an exception reporting an error found by an SSL subsystem.SSLException(String message, Throwable cause)Creates aSSLExceptionwith the specified detail message and cause.SSLHandshakeException(String reason)Constructs an exception reporting an error found by an SSL subsystem during handshaking.SSLKeyException(String reason)Constructs an exception reporting a key management error found by an SSL subsystem.SSLParameters(String[] cipherSuites)Constructs SSLParameters from the specified array of ciphersuites.SSLParameters(String[] cipherSuites, String[] protocols)Constructs SSLParameters from the specified array of ciphersuites and protocols.SSLPeerUnverifiedException(String reason)Constructs an exception reporting that the SSL peer's identity has not been verified.SSLPermission(String name)Creates a new SSLPermission with the specified name.SSLPermission(String name, String actions)Creates a new SSLPermission object with the specified name.SSLProtocolException(String reason)Constructs an exception reporting an SSL protocol error detected by an SSL subsystem.SSLSessionBindingEvent(SSLSession session, String name)Constructs a new SSLSessionBindingEvent.SSLSocket(String host, int port)Used only by subclasses.SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)Used only by subclasses.TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm)Creates a TrustManagerFactory object. -
Uses of String in javax.print
Fields in javax.print declared as String Modifier and Type Field Description static StringServiceUIFactory. DIALOG_UIDenotes a UI implemented as an AWT dialog.static StringDocFlavor. hostEncodingA string representing the host operating system encoding.static StringServiceUIFactory. JCOMPONENT_UIDenotes a UI implemented as a Swing component.static StringServiceUIFactory. JDIALOG_UIDenotes a UI implemented as a Swing dialog.static StringServiceUIFactory. PANEL_UIDenotes a UI implemented as an AWT panel.Methods in javax.print that return String Modifier and Type Method Description StringDocFlavor. getMediaSubtype()Returns this doc flavor object's media subtype (from the MIME type).StringDocFlavor. getMediaType()Returns this doc flavor object's media type (from the MIME type).StringDocFlavor. getMimeType()Returns this doc flavor object's MIME type string based on the canonical form.StringPrintService. getName()Returns a string name for this print service which may be used by applications to request a particular print service.abstract StringStreamPrintService. getOutputFormat()Returns the document format emitted by this print service.abstract StringStreamPrintServiceFactory. getOutputFormat()Queries the factory for the document format that is emitted by printers obtained from this factory.StringDocFlavor. getParameter(String paramName)Returns aStringrepresenting a MIME parameter.StringDocFlavor. getRepresentationClassName()Returns the name of this doc flavor object's representation class.abstract String[]ServiceUIFactory. getUIClassNamesForRole(int role)Given a UI role obtained from this factory obtain the UI types available from this factory which implement this role.StringDocFlavor. toString()Converts thisDocFlavorto a string.Methods in javax.print with parameters of type String Modifier and Type Method Description StringDocFlavor. getParameter(String paramName)Returns aStringrepresenting a MIME parameter.abstract ObjectServiceUIFactory. getUI(int role, String ui)Get a UI object which may be cast to the requested UI type by the application and used in its user interface.static StreamPrintServiceFactory[]StreamPrintServiceFactory. lookupStreamPrintServiceFactories(DocFlavor flavor, String outputMimeType)Locates factories for print services that can be used with a print job to output a stream of data in the format specified byoutputMimeType.Constructors in javax.print with parameters of type String Constructor Description BYTE_ARRAY(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"[B"(byte array).CHAR_ARRAY(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"[C"(character array).DocFlavor(String mimeType, String className)Constructs a new doc flavor object from the given MIME type and representation class name.INPUT_STREAM(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"java.io.InputStream"(byte stream).PrintException(String s)Construct a print exception with the given detail message.PrintException(String s, Exception e)Construct a print exception with the given detail message and chained exception.READER(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"java.io.Reader"(character stream).SERVICE_FORMATTED(String className)Constructs a new doc flavor with a MIME type of"application/x-java-jvm-local-objectref"indicating service formatted print data and the given print data representation class name.STRING(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"java.lang.String".URL(String mimeType)Constructs a new doc flavor with the given MIME type and a print data representation class name of"java.net.URL". -
Uses of String in javax.print.attribute
Methods in javax.print.attribute that return String Modifier and Type Method Description StringAttribute. getName()Get the name of the category of which this attribute value is an instance.protected String[]EnumSyntax. getStringTable()Returns the string table for this enumeration value's enumeration class.StringTextSyntax. getValue()Returns this text attribute's text string.StringDateTimeSyntax. toString()Returns a string value corresponding to this date-time attribute.StringEnumSyntax. toString()Returns a string value corresponding to this enumeration value.StringIntegerSyntax. toString()Returns a string value corresponding to this integer attribute.StringResolutionSyntax. toString()Returns a string version of this resolution attribute.StringResolutionSyntax. toString(int units, String unitsName)Returns a string version of this resolution attribute in the given units.StringSetOfIntegerSyntax. toString()Returns a string value corresponding to this set-of-integer attribute.StringSize2DSyntax. toString()Returns a string version of this two-dimensional size attribute.StringSize2DSyntax. toString(int units, String unitsName)Returns a string version of this two-dimensional size attribute in the given units.StringTextSyntax. toString()Returns aStringidentifying this text attribute.StringURISyntax. toString()Returns aStringidentifying thisURIattribute.Methods in javax.print.attribute with parameters of type String Modifier and Type Method Description StringResolutionSyntax. toString(int units, String unitsName)Returns a string version of this resolution attribute in the given units.StringSize2DSyntax. toString(int units, String unitsName)Returns a string version of this two-dimensional size attribute in the given units.Constructors in javax.print.attribute with parameters of type String Constructor Description SetOfIntegerSyntax(String members)Construct a new set-of-integer attribute with the given members in string form.TextSyntax(String value, Locale locale)Constructs aTextAttributewith the specified string and locale.UnmodifiableSetException(String message)Constructs anUnmodifiableSetExceptionwith the specified detail message. -
Uses of String in javax.print.attribute.standard
Methods in javax.print.attribute.standard that return String Modifier and Type Method Description StringChromaticity. getName()Get the name of the category of which this attribute value is an instance.StringColorSupported. getName()Get the name of the category of which this attribute value is an instance.StringCompression. getName()Get the name of the category of which this attribute value is an instance.StringCopies. getName()Get the name of the category of which this attribute value is an instance.StringCopiesSupported. getName()Get the name of the category of which this attribute value is an instance.StringDateTimeAtCompleted. getName()Get the name of the category of which this attribute value is an instance.StringDateTimeAtCreation. getName()Get the name of the category of which this attribute value is an instance.StringDateTimeAtProcessing. getName()Get the name of the category of which this attribute value is an instance.StringDestination. getName()Get the name of the category of which this attribute value is an instance.StringDialogOwner. getName()Get the name of the category of which this attribute value is an instance.StringDialogTypeSelection. getName()Gets the name of the category of which this attribute value is an instance.StringDocumentName. getName()Get the name of the category of which this attribute value is an instance.StringFidelity. getName()Get the name of the category of which this attribute value is an instance.StringFinishings. getName()Get the name of the category of which this attribute value is an instance.StringJobHoldUntil. getName()Get the name of the category of which this attribute value is an instance.StringJobImpressions. getName()Get the name of the category of which this attribute value is an instance.StringJobImpressionsCompleted. getName()Get the name of the category of which this attribute value is an instance.StringJobImpressionsSupported. getName()Get the name of the category of which this attribute value is an instance.StringJobKOctets. getName()Get the name of the category of which this attribute value is an instance.StringJobKOctetsProcessed. getName()Get the name of the category of which this attribute value is an instance.StringJobKOctetsSupported. getName()Get the name of the category of which this attribute value is an instance.StringJobMediaSheets. getName()Get the name of the category of which this attribute value is an instance.StringJobMediaSheetsCompleted. getName()Get the name of the category of which this attribute value is an instance.StringJobMediaSheetsSupported. getName()Get the name of the category of which this attribute value is an instance.StringJobMessageFromOperator. getName()Get the name of the category of which this attribute value is an instance.StringJobName. getName()Get the name of the category of which this attribute value is an instance.StringJobOriginatingUserName. getName()Get the name of the category of which this attribute value is an instance.StringJobPriority. getName()Get the name of the category of which this attribute value is an instance.StringJobPrioritySupported. getName()Get the name of the category of which this attribute value is an instance.StringJobSheets. getName()Get the name of the category of which this attribute value is an instance.StringJobState. getName()Get the name of the category of which this attribute value is an instance.StringJobStateReason. getName()Get the name of the category of which this attribute value is an instance.StringJobStateReasons. getName()Get the name of the category of which this attribute value is an instance.StringMedia. getName()Get the name of the category of which this attribute value is an instance.StringMediaPrintableArea. getName()Get the name of the category of which this attribute value is an instance.StringMediaSize. getName()Get the name of the category of which this attribute value is an instance.StringMultipleDocumentHandling. getName()Get the name of the category of which this attribute value is an instance.StringNumberOfDocuments. getName()Get the name of the category of which this attribute value is an instance.StringNumberOfInterveningJobs. getName()Get the name of the category of which this attribute value is an instance.StringNumberUp. getName()Get the name of the category of which this attribute value is an instance.StringNumberUpSupported. getName()Get the name of the category of which this attribute value is an instance.StringOrientationRequested. getName()Get the name of the category of which this attribute value is an instance.StringOutputDeviceAssigned. getName()Get the name of the category of which this attribute value is an instance.StringPageRanges. getName()Get the name of the category of which this attribute value is an instance.StringPagesPerMinute. getName()Get the name of the category of which this attribute value is an instance.StringPagesPerMinuteColor. getName()Get the name of the category of which this attribute value is an instance.StringPDLOverrideSupported. getName()Get the name of the category of which this attribute value is an instance.StringPresentationDirection. getName()Get the name of the category of which this attribute value is an instance.StringPrinterInfo. getName()Get the name of the category of which this attribute value is an instance.StringPrinterIsAcceptingJobs. getName()Get the name of the category of which this attribute value is an instance.StringPrinterLocation. getName()Get the name of the category of which this attribute value is an instance.StringPrinterMakeAndModel. getName()Get the name of the category of which this attribute value is an instance.StringPrinterMessageFromOperator. getName()Get the name of the category of which this attribute value is an instance.StringPrinterMoreInfo. getName()Get the name of the category of which this attribute value is an instance.StringPrinterMoreInfoManufacturer. getName()Get the name of the category of which this attribute value is an instance.StringPrinterName. getName()Get the name of the category of which this attribute value is an instance.StringPrinterResolution. getName()Get the name of the category of which this attribute value is an instance.StringPrinterState. getName()Get the name of the category of which this attribute value is an instance.StringPrinterStateReason. getName()Get the name of the category of which this attribute value is an instance.StringPrinterStateReasons. getName()Get the name of the category of which this attribute value is an instance.StringPrinterURI. getName()Get the name of the category of which this attribute value is an instance.StringPrintQuality. getName()Get the name of the category of which this attribute value is an instance.StringQueuedJobCount. getName()Get the name of the category of which this attribute value is an instance.StringReferenceUriSchemesSupported. getName()Get the name of the category of which this attribute value is an instance.StringRequestingUserName. getName()Get the name of the category of which this attribute value is an instance.StringSeverity. getName()Get the name of the category of which this attribute value is an instance.StringSheetCollate. getName()Get the name of the category of which this attribute value is an instance.StringSides. getName()Get the name of the category of which this attribute value is an instance.protected String[]Chromaticity. getStringTable()Returns the string table for classChromaticity.protected String[]ColorSupported. getStringTable()Returns the string table for classColorSupported.protected String[]Compression. getStringTable()Returns the string table for classCompression.protected String[]DialogTypeSelection. getStringTable()Returns the string table for classDialogTypeSelection.protected String[]Fidelity. getStringTable()Returns the string table for classFidelity.protected String[]Finishings. getStringTable()Returns the string table for classFinishings.protected String[]JobSheets. getStringTable()Returns the string table for classJobSheets.protected String[]JobState. getStringTable()Returns the string table for classJobState.protected String[]JobStateReason. getStringTable()Returns the string table for classJobStateReason.protected String[]MediaName. getStringTable()Returns the string table for classMediaTray.protected String[]MediaSizeName. getStringTable()Returns the string table for classMediaSizeName.protected String[]MediaTray. getStringTable()Returns the string table for classMediaTray.protected String[]MultipleDocumentHandling. getStringTable()Returns the string table for classMultipleDocumentHandling.protected String[]OrientationRequested. getStringTable()Returns the string table for classOrientationRequested.protected String[]PDLOverrideSupported. getStringTable()Returns the string table for classPDLOverrideSupported.protected String[]PresentationDirection. getStringTable()Returns the string table for classPresentationDirection.protected String[]PrinterIsAcceptingJobs. getStringTable()Returns the string table for classPrinterIsAcceptingJobs.protected String[]PrinterState. getStringTable()Returns the string table for classPrinterState.protected String[]PrinterStateReason. getStringTable()Returns the string table for classPrinterStateReason.protected String[]PrintQuality. getStringTable()Returns the string table for classPrintQuality.protected String[]ReferenceUriSchemesSupported. getStringTable()Returns the string table for classReferenceUriSchemesSupported.protected String[]Severity. getStringTable()Returns the string table for classSeverity.protected String[]SheetCollate. getStringTable()Returns the string table for classSheetCollate.protected String[]Sides. getStringTable()Returns the string table for classSides.StringMediaPrintableArea. toString()Returns a string version of this rectangular size attribute in mm.StringMediaPrintableArea. toString(int units, String unitsName)Returns a string version of this rectangular size attribute in the given units.Methods in javax.print.attribute.standard with parameters of type String Modifier and Type Method Description StringMediaPrintableArea. toString(int units, String unitsName)Returns a string version of this rectangular size attribute in the given units.Constructors in javax.print.attribute.standard with parameters of type String Constructor Description DocumentName(String documentName, Locale locale)Constructs a new document name attribute with the given document name and locale.JobMessageFromOperator(String message, Locale locale)Constructs a new job message from operator attribute with the given message and locale.JobName(String jobName, Locale locale)Constructs a new job name attribute with the given job name and locale.JobOriginatingUserName(String userName, Locale locale)Constructs a new job originating user name attribute with the given user name and locale.OutputDeviceAssigned(String deviceName, Locale locale)Constructs a new output device assigned attribute with the given device name and locale.PageRanges(String members)Construct a new page ranges attribute with the given members in string form.PrinterInfo(String info, Locale locale)Constructs a new printer info attribute with the given information string and locale.PrinterLocation(String location, Locale locale)Constructs a new printer location attribute with the given location and locale.PrinterMakeAndModel(String makeAndModel, Locale locale)Constructs a new printer make and model attribute with the given make and model string and locale.PrinterMessageFromOperator(String message, Locale locale)Constructs a new printer message from operator attribute with the given message and locale.PrinterName(String printerName, Locale locale)Constructs a new printer name attribute with the given name and locale.RequestingUserName(String userName, Locale locale)Constructs a new requesting user name attribute with the given user name and locale. -
Uses of String in javax.print.event
Methods in javax.print.event that return String Modifier and Type Method Description StringPrintEvent. toString()Returns a string representation of thisPrintEvent. -
Uses of String in javax.rmi.ssl
Methods in javax.rmi.ssl that return String Modifier and Type Method Description String[]SslRMIServerSocketFactory. getEnabledCipherSuites()Returns the names of the cipher suites enabled on SSL connections accepted by server sockets created by this factory, ornullif this factory uses the cipher suites that are enabled by default.String[]SslRMIServerSocketFactory. getEnabledProtocols()Returns the names of the protocol versions enabled on SSL connections accepted by server sockets created by this factory, ornullif this factory uses the protocol versions that are enabled by default.Methods in javax.rmi.ssl with parameters of type String Modifier and Type Method Description SocketSslRMIClientSocketFactory. createSocket(String host, int port)Creates an SSL socket.Constructors in javax.rmi.ssl with parameters of type String Constructor Description SslRMIServerSocketFactory(String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth)Creates a newSslRMIServerSocketFactorywith the specified SSL socket configuration.SslRMIServerSocketFactory(SSLContext context, String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth)Creates a newSslRMIServerSocketFactorywith the specifiedSSLContextand SSL socket configuration. -
Uses of String in javax.script
Fields in javax.script declared as String Modifier and Type Field Description static StringScriptEngine. ARGVReserved key for a named value that passes an array of positional arguments to a script.static StringScriptEngine. ENGINEReserved key for a named value that is the name of theScriptEngineimplementation.static StringScriptEngine. ENGINE_VERSIONReserved key for a named value that identifies the version of theScriptEngineimplementation.static StringScriptEngine. FILENAMEReserved key for a named value that is the name of the file being executed.static StringScriptEngine. LANGUAGEReserved key for a named value that is the full name of Scripting Language supported by the implementation.static StringScriptEngine. LANGUAGE_VERSIONReserved key for the named value that identifies the version of the scripting language supported by the implementation.static StringScriptEngine. NAMEReserved key for a named value that identifies the short name of the scripting language.Methods in javax.script that return String Modifier and Type Method Description StringScriptEngineFactory. getEngineName()Returns the full name of theScriptEngine.StringScriptEngineFactory. getEngineVersion()Returns the version of theScriptEngine.StringScriptException. getFileName()Get the source of the script causing the error.StringScriptEngineFactory. getLanguageName()Returns the name of the scripting language supported by thisScriptEngine.StringScriptEngineFactory. getLanguageVersion()Returns the version of the scripting language supported by thisScriptEngine.StringScriptException. getMessage()Returns a message containing the String passed to a constructor as well as line and column numbers and filename if any of these are known.StringScriptEngineFactory. getMethodCallSyntax(String obj, String m, String... args)Returns a String which can be used to invoke a method of a Java object using the syntax of the supported scripting language.StringScriptEngineFactory. getOutputStatement(String toDisplay)Returns a String that can be used as a statement to display the specified String using the syntax of the supported scripting language.StringScriptEngineFactory. getProgram(String... statements)Returns a valid scripting language executable program with given statements.Methods in javax.script that return types with arguments of type String Modifier and Type Method Description List<String>ScriptEngineFactory. getExtensions()Returns an immutable list of filename extensions, which generally identify scripts written in the language supported by thisScriptEngine.List<String>ScriptEngineFactory. getMimeTypes()Returns an immutable list of mimetypes, associated with scripts that can be executed by the engine.List<String>ScriptEngineFactory. getNames()Returns an immutable list of short names for theScriptEngine, which may be used to identify theScriptEngineby theScriptEngineManager.Methods in javax.script with parameters of type String Modifier and Type Method Description CompiledScriptCompilable. compile(String script)Compiles the script (source represented as aString) for later execution.ObjectAbstractScriptEngine. eval(String script)Same aseval(Reader)except that the abstracteval(String, ScriptContext)is used.ObjectAbstractScriptEngine. eval(String script, Bindings bindings)Same aseval(Reader, Bindings)except that the abstracteval(String, ScriptContext)is used.ObjectScriptEngine. eval(String script)Executes the specified script.ObjectScriptEngine. eval(String script, Bindings n)Executes the script using theBindingsargument as theENGINE_SCOPEBindingsof theScriptEngineduring the script execution.ObjectScriptEngine. eval(String script, ScriptContext context)Causes the immediate execution of the script whose source is the String passed as the first argument.ObjectAbstractScriptEngine. get(String key)Gets the value for the specified key in theENGINE_SCOPEof the protectedcontextfield.ObjectScriptEngine. get(String key)Retrieves a value set in the state of this engine.ObjectScriptEngineManager. get(String key)Gets the value for the specified key in the Global ScopeObjectScriptContext. getAttribute(String name)Retrieves the value of the attribute with the given name in the scope occurring earliest in the search order.ObjectScriptContext. getAttribute(String name, int scope)Gets the value of an attribute in a given scope.ObjectSimpleScriptContext. getAttribute(String name)Retrieves the value of the attribute with the given name in the scope occurring earliest in the search order.ObjectSimpleScriptContext. getAttribute(String name, int scope)Gets the value of an attribute in a given scope.intScriptContext. getAttributesScope(String name)Get the lowest scope in which an attribute is defined.intSimpleScriptContext. getAttributesScope(String name)Get the lowest scope in which an attribute is defined.ScriptEngineScriptEngineManager. getEngineByExtension(String extension)Look up and create aScriptEnginefor a given extension.ScriptEngineScriptEngineManager. getEngineByMimeType(String mimeType)Look up and create aScriptEnginefor a given mime type.ScriptEngineScriptEngineManager. getEngineByName(String shortName)Looks up and creates aScriptEnginefor a given name.StringScriptEngineFactory. getMethodCallSyntax(String obj, String m, String... args)Returns a String which can be used to invoke a method of a Java object using the syntax of the supported scripting language.StringScriptEngineFactory. getOutputStatement(String toDisplay)Returns a String that can be used as a statement to display the specified String using the syntax of the supported scripting language.ObjectScriptEngineFactory. getParameter(String key)Returns the value of an attribute whose meaning may be implementation-specific.StringScriptEngineFactory. getProgram(String... statements)Returns a valid scripting language executable program with given statements.ObjectInvocable. invokeFunction(String name, Object... args)Used to call top-level procedures and functions defined in scripts.ObjectInvocable. invokeMethod(Object thiz, String name, Object... args)Calls a method on a script object compiled during a previous script execution, which is retained in the state of theScriptEngine.voidAbstractScriptEngine. put(String key, Object value)Sets the specified value with the specified key in theENGINE_SCOPEBindingsof the protectedcontextfield.ObjectBindings. put(String name, Object value)Set a named value.voidScriptEngine. put(String key, Object value)Sets a key/value pair in the state of the ScriptEngine that may either create a Java Language Binding to be used in the execution of scripts or be used in some other way, depending on whether the key is reserved.voidScriptEngineManager. put(String key, Object value)Sets the specified key/value pair in the Global Scope.ObjectSimpleBindings. put(String name, Object value)Sets the specified key/value in the underlyingmapfield.voidScriptEngineManager. registerEngineExtension(String extension, ScriptEngineFactory factory)Registers aScriptEngineFactoryto handle an extension.voidScriptEngineManager. registerEngineMimeType(String type, ScriptEngineFactory factory)Registers aScriptEngineFactoryto handle a mime type.voidScriptEngineManager. registerEngineName(String name, ScriptEngineFactory factory)Registers aScriptEngineFactoryto handle a language name.ObjectScriptContext. removeAttribute(String name, int scope)Remove an attribute in a given scope.ObjectSimpleScriptContext. removeAttribute(String name, int scope)Remove an attribute in a given scope.voidScriptContext. setAttribute(String name, Object value, int scope)Sets the value of an attribute in a given scope.voidSimpleScriptContext. setAttribute(String name, Object value, int scope)Sets the value of an attribute in a given scope.Method parameters in javax.script with type arguments of type String Modifier and Type Method Description voidBindings. putAll(Map<? extends String,? extends Object> toMerge)Adds all the mappings in a givenMapto thisBindings.voidSimpleBindings. putAll(Map<? extends String,? extends Object> toMerge)putAllis implemented usingMap.putAll.Constructors in javax.script with parameters of type String Constructor Description ScriptException(String s)Creates aScriptExceptionwith a String to be used in its message.ScriptException(String message, String fileName, int lineNumber)Creates aScriptExceptionwith message, filename and linenumber to be used in error messages.ScriptException(String message, String fileName, int lineNumber, int columnNumber)ScriptExceptionconstructor specifying message, filename, line number and column number.Constructor parameters in javax.script with type arguments of type String Constructor Description SimpleBindings(Map<String,Object> m)Constructor uses an existingMapto store the values. -
Uses of String in javax.security.auth
Methods in javax.security.auth that return String Modifier and Type Method Description StringPrivateCredentialPermission. getActions()Returns the "canonical string representation" of the actions.StringPrivateCredentialPermission. getCredentialClass()Returns the Class name of the Credential associated with thisPrivateCredentialPermission.String[][]PrivateCredentialPermission. getPrincipals()Returns thePrincipalclasses and names associated with thisPrivateCredentialPermission.StringSubject. toString()Return the String representation of thisSubject.Constructors in javax.security.auth with parameters of type String Constructor Description AuthPermission(String name)Creates a new AuthPermission with the specified name.AuthPermission(String name, String actions)Creates a new AuthPermission object with the specified name.DestroyFailedException(String msg)Constructs a DestroyFailedException with the specified detail message.PrivateCredentialPermission(String name, String actions)Creates a newPrivateCredentialPermissionwith the specifiedname.RefreshFailedException(String msg)Constructs a RefreshFailedException with the specified detail message. -
Uses of String in javax.security.auth.callback
Methods in javax.security.auth.callback that return String Modifier and Type Method Description String[]ChoiceCallback. getChoices()Get the list of choices.StringNameCallback. getDefaultName()Get the default name.StringTextInputCallback. getDefaultText()Get the default text.StringTextOutputCallback. getMessage()Get the message to be displayed.StringNameCallback. getName()Get the retrieved name.String[]ConfirmationCallback. getOptions()Get the confirmation options.StringChoiceCallback. getPrompt()Get the prompt.StringConfirmationCallback. getPrompt()Get the prompt.StringNameCallback. getPrompt()Get the prompt.StringPasswordCallback. getPrompt()Get the prompt.StringTextInputCallback. getPrompt()Get the prompt.StringTextInputCallback. getText()Get the retrieved text.Methods in javax.security.auth.callback with parameters of type String Modifier and Type Method Description voidNameCallback. setName(String name)Set the retrieved name.voidTextInputCallback. setText(String text)Set the retrieved text.Constructors in javax.security.auth.callback with parameters of type String Constructor Description ChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multipleSelectionsAllowed)Construct aChoiceCallbackwith a prompt, a list of choices, a default choice, and a boolean specifying whether or not multiple selections from the list of choices are allowed.ConfirmationCallback(int messageType, String[] options, int defaultOption)Construct aConfirmationCallbackwith a message type, a list of options and a default option.ConfirmationCallback(String prompt, int messageType, int optionType, int defaultOption)Construct aConfirmationCallbackwith a prompt, message type, an option type and a default option.ConfirmationCallback(String prompt, int messageType, String[] options, int defaultOption)Construct aConfirmationCallbackwith a prompt, message type, a list of options and a default option.NameCallback(String prompt)Construct aNameCallbackwith a prompt.NameCallback(String prompt, String defaultName)Construct aNameCallbackwith a prompt and default name.PasswordCallback(String prompt, boolean echoOn)Construct aPasswordCallbackwith a prompt and a boolean specifying whether the password should be displayed as it is being typed.TextInputCallback(String prompt)Construct aTextInputCallbackwith a prompt.TextInputCallback(String prompt, String defaultText)Construct aTextInputCallbackwith a prompt and default input value.TextOutputCallback(int messageType, String message)Construct a TextOutputCallback with a message type and message to be displayed.UnsupportedCallbackException(Callback callback, String msg)Constructs a UnsupportedCallbackException with the specified detail message. -
Uses of String in javax.security.auth.kerberos
Methods in javax.security.auth.kerberos that return String Modifier and Type Method Description StringServicePermission. getActions()Returns the canonical string representation of the actions.StringEncryptionKey. getAlgorithm()Returns the standard algorithm name for this key.StringKerberosKey. getAlgorithm()Returns the standard algorithm name for this key.StringEncryptionKey. getFormat()Returns the name of the encoding format for this key.StringKerberosKey. getFormat()Returns the name of the encoding format for this secret key.StringKerberosPrincipal. getName()The returned string corresponds to the single-string representation of a Kerberos Principal name as specified in Section 2.1 of RFC 1964.StringKerberosPrincipal. getRealm()Returns the realm component of this Kerberos principal.StringEncryptionKey. toString()Returns an informative textual representation of thisEncryptionKey.StringKerberosCredMessage. toString()Returns an informative textual representation of thisKerberosCredMessage.StringKerberosKey. toString()Returns an informative textual representation of thisKerberosKey.StringKerberosPrincipal. toString()Returns an informative textual representation of thisKerberosPrincipal.StringKerberosTicket. toString()Returns an informative textual representation of thisKerberosTicket.StringKeyTab. toString()Returns an informative textual representation of thisKeyTab.Constructors in javax.security.auth.kerberos with parameters of type String Constructor Description DelegationPermission(String principals)Create a newDelegationPermissionwith the specified subordinate and target principals.DelegationPermission(String principals, String actions)Create a newDelegationPermissionwith the specified subordinate and target principals.KerberosKey(KerberosPrincipal principal, char[] password, String algorithm)Constructs aKerberosKeyfrom a principal's password using the specified algorithm name.KerberosPrincipal(String name)Constructs aKerberosPrincipalfrom the provided string input.KerberosPrincipal(String name, int nameType)Constructs aKerberosPrincipalfrom the provided string and name type input.ServicePermission(String servicePrincipal, String action)Create a newServicePermissionwith the specifiedservicePrincipalandaction. -
Uses of String in javax.security.auth.login
Methods in javax.security.auth.login that return String Modifier and Type Method Description StringAppConfigurationEntry. getLoginModuleName()Get the class name of the configuredLoginModule.StringConfiguration. getType()Return the type of this Configuration.StringAppConfigurationEntry.LoginModuleControlFlag. toString()Return a String representation of this controlFlag.Methods in javax.security.auth.login that return types with arguments of type String Modifier and Type Method Description Map<String,?>AppConfigurationEntry. getOptions()Get the options configured for thisLoginModule.Methods in javax.security.auth.login with parameters of type String Modifier and Type Method Description protected abstract AppConfigurationEntry[]ConfigurationSpi. engineGetAppConfigurationEntry(String name)Retrieve the AppConfigurationEntries for the specifiedname.abstract AppConfigurationEntry[]Configuration. getAppConfigurationEntry(String name)Retrieve the AppConfigurationEntries for the specifiednamefrom this Configuration.static ConfigurationConfiguration. getInstance(String type, Configuration.Parameters params)Returns a Configuration object of the specified type.static ConfigurationConfiguration. getInstance(String type, Configuration.Parameters params, String provider)Returns a Configuration object of the specified type.static ConfigurationConfiguration. getInstance(String type, Configuration.Parameters params, Provider provider)Returns a Configuration object of the specified type.Constructors in javax.security.auth.login with parameters of type String Constructor Description AccountException(String msg)Constructs a AccountException with the specified detail message.AccountExpiredException(String msg)Constructs a AccountExpiredException with the specified detail message.AccountLockedException(String msg)Constructs a AccountLockedException with the specified detail message.AccountNotFoundException(String msg)Constructs a AccountNotFoundException with the specified detail message.AppConfigurationEntry(String loginModuleName, AppConfigurationEntry.LoginModuleControlFlag controlFlag, Map<String,?> options)Default constructor for this class.CredentialException(String msg)Constructs a CredentialException with the specified detail message.CredentialExpiredException(String msg)Constructs a CredentialExpiredException with the specified detail message.CredentialNotFoundException(String msg)Constructs a CredentialNotFoundException with the specified detail message.FailedLoginException(String msg)Constructs a FailedLoginException with the specified detail message.LoginContext(String name)Instantiate a newLoginContextobject with a name.LoginContext(String name, CallbackHandler callbackHandler)Instantiate a newLoginContextobject with a name and aCallbackHandlerobject.LoginContext(String name, Subject subject)Instantiate a newLoginContextobject with a name and aSubjectobject.LoginContext(String name, Subject subject, CallbackHandler callbackHandler)Instantiate a newLoginContextobject with a name, aSubjectto be authenticated, and aCallbackHandlerobject.LoginContext(String name, Subject subject, CallbackHandler callbackHandler, Configuration config)Instantiate a newLoginContextobject with a name, aSubjectto be authenticated, aCallbackHandlerobject, and a loginConfiguration.LoginException(String msg)Constructs a LoginException with the specified detail message.Constructor parameters in javax.security.auth.login with type arguments of type String Constructor Description AppConfigurationEntry(String loginModuleName, AppConfigurationEntry.LoginModuleControlFlag controlFlag, Map<String,?> options)Default constructor for this class. -
Uses of String in javax.security.auth.spi
Method parameters in javax.security.auth.spi with type arguments of type String Modifier and Type Method Description voidLoginModule. initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)Initialize thisLoginModule. -
Uses of String in javax.security.auth.x500
Fields in javax.security.auth.x500 declared as String Modifier and Type Field Description static StringX500Principal. CANONICALCanonical String format of Distinguished Names.static StringX500Principal. RFC1779RFC 1779 String format of Distinguished Names.static StringX500Principal. RFC2253RFC 2253 String format of Distinguished Names.Methods in javax.security.auth.x500 that return String Modifier and Type Method Description StringX500PrivateCredential. getAlias()Returns the KeyStore alias.StringX500Principal. getName()Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253.StringX500Principal. getName(String format)Returns a string representation of the X.500 distinguished name using the specified format.StringX500Principal. getName(String format, Map<String,String> oidMap)Returns a string representation of the X.500 distinguished name using the specified format.StringX500Principal. toString()Return a user-friendly string representation of thisX500Principal.Methods in javax.security.auth.x500 with parameters of type String Modifier and Type Method Description StringX500Principal. getName(String format)Returns a string representation of the X.500 distinguished name using the specified format.StringX500Principal. getName(String format, Map<String,String> oidMap)Returns a string representation of the X.500 distinguished name using the specified format.Method parameters in javax.security.auth.x500 with type arguments of type String Modifier and Type Method Description StringX500Principal. getName(String format, Map<String,String> oidMap)Returns a string representation of the X.500 distinguished name using the specified format.StringX500Principal. getName(String format, Map<String,String> oidMap)Returns a string representation of the X.500 distinguished name using the specified format.Constructors in javax.security.auth.x500 with parameters of type String Constructor Description X500Principal(String name)Creates anX500Principalfrom a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").X500Principal(String name, Map<String,String> keywordMap)Creates anX500Principalfrom a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias)Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.Constructor parameters in javax.security.auth.x500 with type arguments of type String Constructor Description X500Principal(String name, Map<String,String> keywordMap)Creates anX500Principalfrom a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").X500Principal(String name, Map<String,String> keywordMap)Creates anX500Principalfrom a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US"). -
Uses of String in javax.security.cert
Methods in javax.security.cert that return String Modifier and Type Method Description abstract StringX509Certificate. getSigAlgName()Deprecated.Gets the signature algorithm name for the certificate signature algorithm.abstract StringX509Certificate. getSigAlgOID()Deprecated.Gets the signature algorithm OID string from the certificate.abstract StringCertificate. toString()Deprecated.Returns a string representation of this certificate.Methods in javax.security.cert with parameters of type String Modifier and Type Method Description abstract voidCertificate. verify(PublicKey key, String sigProvider)Deprecated.Verifies that this certificate was signed using the private key that corresponds to the specified public key.Constructors in javax.security.cert with parameters of type String Constructor Description CertificateEncodingException(String message)Deprecated.Constructs a CertificateEncodingException with the specified detail message.CertificateException(String msg)Deprecated.Constructs a certificate exception with the given detail message.CertificateExpiredException(String message)Deprecated.Constructs a CertificateExpiredException with the specified detail message.CertificateNotYetValidException(String message)Deprecated.Constructs a CertificateNotYetValidException with the specified detail message.CertificateParsingException(String message)Deprecated.Constructs a CertificateParsingException with the specified detail message. -
Uses of String in javax.security.sasl
Fields in javax.security.sasl declared as String Modifier and Type Field Description static StringSasl. BOUND_SERVER_NAMEThe name of a property that specifies the bound server name for an unbound server.static StringSasl. CREDENTIALSThe name of a property that specifies the credentials to use.static StringSasl. MAX_BUFFERThe name of a property that specifies the maximum size of the receive buffer in bytes ofSaslClient/SaslServer.static StringSasl. POLICY_FORWARD_SECRECYThe name of a property that specifies whether mechanisms that implement forward secrecy between sessions are required.static StringSasl. POLICY_NOACTIVEThe name of a property that specifies whether mechanisms susceptible to active (non-dictionary) attacks are not permitted.static StringSasl. POLICY_NOANONYMOUSThe name of a property that specifies whether mechanisms that accept anonymous login are not permitted.static StringSasl. POLICY_NODICTIONARYThe name of a property that specifies whether mechanisms susceptible to passive dictionary attacks are not permitted.static StringSasl. POLICY_NOPLAINTEXTThe name of a property that specifies whether mechanisms susceptible to simple plain passive attacks (e.g., "PLAIN") are not permitted.static StringSasl. POLICY_PASS_CREDENTIALSThe name of a property that specifies whether mechanisms that pass client credentials are required.static StringSasl. QOPThe name of a property that specifies the quality-of-protection to use.static StringSasl. RAW_SEND_SIZEThe name of a property that specifies the maximum size of the raw send buffer in bytes ofSaslClient/SaslServer.static StringSasl. REUSEThe name of a property that specifies whether to reuse previously authenticated session information.static StringSasl. SERVER_AUTHThe name of a property that specifies whether the server must authenticate to the client.static StringSasl. STRENGTHThe name of a property that specifies the cipher strength to use.Methods in javax.security.sasl that return String Modifier and Type Method Description StringAuthorizeCallback. getAuthenticationID()Returns the authentication id to check.StringAuthorizeCallback. getAuthorizationID()Returns the authorization id to check.StringSaslServer. getAuthorizationID()Reports the authorization ID in effect for the client of this session.StringAuthorizeCallback. getAuthorizedID()Returns the id of the authorized user.StringSaslClient. getMechanismName()Returns the IANA-registered mechanism name of this SASL client.StringSaslServer. getMechanismName()Returns the IANA-registered mechanism name of this SASL server.String[]SaslClientFactory. getMechanismNames(Map<String,?> props)Returns an array of names of mechanisms that match the specified mechanism selection policies.String[]SaslServerFactory. getMechanismNames(Map<String,?> props)Returns an array of names of mechanisms that match the specified mechanism selection policies.StringSaslException. toString()Returns the string representation of this exception.Methods in javax.security.sasl with parameters of type String Modifier and Type Method Description static SaslClientSasl. createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslClientusing the parameters supplied.SaslClientSaslClientFactory. createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates a SaslClient using the parameters supplied.static SaslServerSasl. createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslServerfor the specified mechanism.SaslServerSaslServerFactory. createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslServerusing the parameters supplied.ObjectSaslClient. getNegotiatedProperty(String propName)Retrieves the negotiated property.ObjectSaslServer. getNegotiatedProperty(String propName)Retrieves the negotiated property.voidAuthorizeCallback. setAuthorizedID(String id)Sets the id of the authorized entity.Method parameters in javax.security.sasl with type arguments of type String Modifier and Type Method Description static SaslClientSasl. createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslClientusing the parameters supplied.SaslClientSaslClientFactory. createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates a SaslClient using the parameters supplied.static SaslServerSasl. createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslServerfor the specified mechanism.SaslServerSaslServerFactory. createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)Creates aSaslServerusing the parameters supplied.String[]SaslClientFactory. getMechanismNames(Map<String,?> props)Returns an array of names of mechanisms that match the specified mechanism selection policies.String[]SaslServerFactory. getMechanismNames(Map<String,?> props)Returns an array of names of mechanisms that match the specified mechanism selection policies.Constructors in javax.security.sasl with parameters of type String Constructor Description AuthenticationException(String detail)Constructs a new instance ofAuthenticationExceptionwith a detailed message.AuthenticationException(String detail, Throwable ex)Constructs a new instance ofAuthenticationExceptionwith a detailed message and a root exception.AuthorizeCallback(String authnID, String authzID)Constructs an instance ofAuthorizeCallback.RealmCallback(String prompt)Constructs aRealmCallbackwith a prompt.RealmCallback(String prompt, String defaultRealmInfo)Constructs aRealmCallbackwith a prompt and default realm information.RealmChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multiple)Constructs aRealmChoiceCallbackwith a prompt, a list of choices and a default choice.SaslException(String detail)Constructs a new instance ofSaslExceptionwith a detailed message.SaslException(String detail, Throwable ex)Constructs a new instance ofSaslExceptionwith a detailed message and a root exception. -
Uses of String in javax.smartcardio
Methods in javax.smartcardio that return String Modifier and Type Method Description StringCardPermission. getActions()Returns the canonical string representation of the actions.static StringTerminalFactory. getDefaultType()Get the default TerminalFactory type.abstract StringCardTerminal. getName()Returns the unique name of this terminal.abstract StringCard. getProtocol()Returns the protocol in use for this card.StringTerminalFactory. getType()Returns the type of this TerminalFactory.StringATR. toString()Returns a string representation of this ATR.StringCommandAPDU. toString()Returns a string representation of this command APDU.StringResponseAPDU. toString()Returns a string representation of this response APDU.StringTerminalFactory. toString()Returns a string representation of this TerminalFactory.Methods in javax.smartcardio with parameters of type String Modifier and Type Method Description abstract CardCardTerminal. connect(String protocol)Establishes a connection to the card.static TerminalFactoryTerminalFactory. getInstance(String type, Object params)Returns a TerminalFactory of the specified type that is initialized with the specified parameters.static TerminalFactoryTerminalFactory. getInstance(String type, Object params, String provider)Returns a TerminalFactory of the specified type that is initialized with the specified parameters.static TerminalFactoryTerminalFactory. getInstance(String type, Object params, Provider provider)Returns a TerminalFactory of the specified type that is initialized with the specified parameters.CardTerminalCardTerminals. getTerminal(String name)Returns the terminal with the specified name or null if no such terminal exists.static CardTerminals.StateCardTerminals.State. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.smartcardio with parameters of type String Constructor Description CardException(String message)Constructs a new CardException with the specified detail message.CardException(String message, Throwable cause)Constructs a new CardException with the specified detail message and cause.CardNotPresentException(String message)Constructs a new CardNotPresentException with the specified detail message.CardNotPresentException(String message, Throwable cause)Constructs a new CardNotPresentException with the specified detail message and cause.CardPermission(String terminalName, String actions)Constructs a new CardPermission with the specified actions. -
Uses of String in javax.sound.midi
Methods in javax.sound.midi that return String Modifier and Type Method Description StringMidiDevice.Info. getDescription()Obtains the description of the device.StringSoundbank. getDescription()Obtains a textual description of the sound bank, suitable for display.StringMidiDevice.Info. getName()Obtains the name of the device.StringSoundbank. getName()Obtains the name of the sound bank.StringSoundbankResource. getName()Obtains the name of the resource.StringMidiDevice.Info. getVendor()Obtains the name of the company who supplies the device.StringSoundbank. getVendor()Obtains astringnaming the company that provides the sound bank.StringMidiDevice.Info. getVersion()Obtains the version of the device.StringSoundbank. getVersion()Obtains the version string for the sound bank.StringMidiDevice.Info. toString()Provides a string representation of the device information.StringSequencer.SyncMode. toString()Provides this synchronization mode's name as the string representation of the mode.Methods in javax.sound.midi that return types with arguments of type String Modifier and Type Method Description Map<String,Object>MidiFileFormat. properties()Obtain an unmodifiable map of properties.Methods in javax.sound.midi with parameters of type String Modifier and Type Method Description ObjectMidiFileFormat. getProperty(String key)Obtain the property value specified by the key.Constructors in javax.sound.midi with parameters of type String Constructor Description Info(String name, String vendor, String description, String version)Constructs a device info object.Instrument(Soundbank soundbank, Patch patch, String name, Class<?> dataClass)Constructs a new MIDI instrument from the specifiedPatch.InvalidMidiDataException(String message)Constructs anInvalidMidiDataExceptionwith the specified detail message.MidiUnavailableException(String message)Constructs aMidiUnavailableExceptionwith the specified detail message.SoundbankResource(Soundbank soundBank, String name, Class<?> dataClass)Constructs a newSoundbankResourcefrom the given sound bank and wavetable index.SyncMode(String name)Constructs a synchronization mode.Constructor parameters in javax.sound.midi with type arguments of type String Constructor Description MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds, Map<String,Object> properties)Construct aMidiFileFormatwith a set of properties. -
Uses of String in javax.sound.sampled
Methods in javax.sound.sampled that return String Modifier and Type Method Description StringMixer.Info. getDescription()Obtains the description of the mixer.StringAudioFileFormat.Type. getExtension()Obtains the common file name extension for this file type.StringFloatControl. getMaxLabel()Obtains the label for the maximum value, such as "Right" or "Full".StringFloatControl. getMidLabel()Obtains the label for the mid-point value, such as "Center" or "Default".StringFloatControl. getMinLabel()Obtains the label for the minimum value, such as "Left" or "Off".StringMixer.Info. getName()Obtains the name of the mixer.StringPort.Info. getName()Obtains the name of the port.StringReverbType. getName()Obtains the name of this reverb type.StringBooleanControl. getStateLabel(boolean state)Obtains the label for the specified state.StringFloatControl. getUnits()Obtains the label for the units in which the control's values are expressed, such as "dB" or "frames per second."StringMixer.Info. getVendor()Obtains the vendor of the mixer.StringMixer.Info. getVersion()Obtains the version of the mixer.StringAudioFileFormat. toString()Provides a string representation of the file format.StringAudioFileFormat.Type. toString()Provides the file type's name as theStringrepresentation of the file type.StringAudioFormat.Encoding. toString()Provides theStringrepresentation of the encoding.StringAudioFormat. toString()Returns a string that describes the format, such as: "PCM SIGNED 22050 Hz 16 bit mono big-endian".StringBooleanControl. toString()Provides a string representation of the control.StringCompoundControl. toString()Provides a string representation of the control.StringControl. toString()Obtains a string describing the control type and its current state.StringControl.Type. toString()Provides theStringrepresentation of the control type.StringDataLine.Info. toString()Obtains a textual description of the data line info.StringEnumControl. toString()Provides a string representation of the control.StringFloatControl. toString()Provides a string representation of the control.StringLine.Info. toString()Obtains a textual description of the line info.StringLineEvent. toString()Obtains a string representation of the event.StringLineEvent.Type. toString()Returns the type name as the string representation.StringMixer.Info. toString()Provides a string representation of the mixer info.StringPort.Info. toString()Provides aStringrepresentation of the port.StringReverbType. toString()Provides aStringrepresentation of the reverb type, including its name and its parameter settings.Methods in javax.sound.sampled that return types with arguments of type String Modifier and Type Method Description Map<String,Object>AudioFileFormat. properties()Obtain an unmodifiable map of properties.Map<String,Object>AudioFormat. properties()Obtain an unmodifiable map of properties.Methods in javax.sound.sampled with parameters of type String Modifier and Type Method Description ObjectAudioFileFormat. getProperty(String key)Obtain the property value specified by the key.ObjectAudioFormat. getProperty(String key)Obtain the property value specified by the key.Constructors in javax.sound.sampled with parameters of type String Constructor Description AudioPermission(String name)Creates a newAudioPermissionobject that has the specified symbolic name, such as "play" or "record".AudioPermission(String name, String actions)Creates a newAudioPermissionobject that has the specified symbolic name, such as "play" or "record".BooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)Constructs a new boolean control object with the given parameters.Encoding(String name)Constructs a new encoding.FloatControl(FloatControl.Type type, float minimum, float maximum, float precision, int updatePeriod, float initialValue, String units)Constructs a new float control object with the given parameters.FloatControl(FloatControl.Type type, float minimum, float maximum, float precision, int updatePeriod, float initialValue, String units, String minLabel, String midLabel, String maxLabel)Constructs a new float control object with the given parameters.Info(String name, String vendor, String description, String version)Constructs a mixer's info object, passing it the given textual information.Info(Class<?> lineClass, String name, boolean isSource)Constructs a port's info object from the information given.LineUnavailableException(String message)Constructs aLineUnavailableExceptionthat has the specified detail message.ReverbType(String name, int earlyReflectionDelay, float earlyReflectionIntensity, int lateReflectionDelay, float lateReflectionIntensity, int decayTime)Constructs a new reverb type that has the specified reverberation parameter values.Type(String name, String extension)Constructs a file type.Type(String name)Constructs a new boolean control type.Type(String name)Constructs a new compound control type.Type(String name)Constructs a new control type with the name specified.Type(String name)Constructs a new enumerated control type.Type(String name)Constructs a new float control type.Type(String name)Constructs a new event type.UnsupportedAudioFileException(String message)Constructs anUnsupportedAudioFileExceptionthat has the specified detail message.Constructor parameters in javax.sound.sampled with type arguments of type String Constructor Description AudioFileFormat(AudioFileFormat.Type type, AudioFormat format, int frameLength, Map<String,Object> properties)Construct an audio file format object with a set of defined properties.AudioFormat(AudioFormat.Encoding encoding, float sampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate, boolean bigEndian, Map<String,Object> properties)Constructs anAudioFormatwith the given parameters. -
Uses of String in javax.sql
Methods in javax.sql that return String Modifier and Type Method Description StringRowSet. getCommand()Retrieves thisRowSetobject's command property.StringRowSet. getDataSourceName()Retrieves the logical name that identifies the data source for thisRowSetobject.StringRowSet. getPassword()Retrieves the password used to create a database connection.StringRowSet. getUrl()Retrieves the url property thisRowSetobject will use to create a connection if it uses theDriverManagerinstead of aDataSourceobject to establish the connection.StringRowSet. getUsername()Retrieves the username used to create a database connection for thisRowSetobject.Methods in javax.sql that return types with arguments of type String Modifier and Type Method Description Map<String,Class<?>>RowSet. getTypeMap()Retrieves theMapobject associated with thisRowSetobject, which specifies the custom mapping of SQL user-defined types, if any.Methods in javax.sql with parameters of type String Modifier and Type Method Description ConnectionDataSource. getConnection(String username, String password)Attempts to establish a connection with the data source that thisDataSourceobject represents.PooledConnectionConnectionPoolDataSource. getPooledConnection(String user, String password)Attempts to establish a physical database connection that can be used as a pooled connection.XAConnectionXADataSource. getXAConnection(String user, String password)Attempts to establish a physical database connection, using the given user name and password.PooledConnectionBuilderPooledConnectionBuilder. password(String password)Specifies the password to be used when creating a connectionXAConnectionBuilderXAConnectionBuilder. password(String password)Specifies the password to be used when creating a connectionvoidRowSet. setAsciiStream(String parameterName, InputStream x)Sets the designated parameter to the given input stream.voidRowSet. setAsciiStream(String parameterName, InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidRowSet. setBigDecimal(String parameterName, BigDecimal x)Sets the designated parameter to the givenjava.math.BigDecimalvalue.voidRowSet. setBinaryStream(String parameterName, InputStream x)Sets the designated parameter to the given input stream.voidRowSet. setBinaryStream(String parameterName, InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidRowSet. setBlob(String parameterName, InputStream inputStream)Sets the designated parameter to aInputStreamobject.voidRowSet. setBlob(String parameterName, InputStream inputStream, long length)Sets the designated parameter to aInputStreamobject.voidRowSet. setBlob(String parameterName, Blob x)Sets the designated parameter to the givenjava.sql.Blobobject.voidRowSet. setBoolean(String parameterName, boolean x)Sets the designated parameter to the given Javabooleanvalue.voidRowSet. setByte(String parameterName, byte x)Sets the designated parameter to the given Javabytevalue.voidRowSet. setBytes(String parameterName, byte[] x)Sets the designated parameter to the given Java array of bytes.voidRowSetMetaData. setCatalogName(int columnIndex, String catalogName)Sets the designated column's table's catalog name, if any, to the givenString.voidRowSet. setCharacterStream(String parameterName, Reader reader)Sets the designated parameter to the givenReaderobject.voidRowSet. setCharacterStream(String parameterName, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidRowSet. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidRowSet. setClob(String parameterName, Clob x)Sets the designated parameter to the givenjava.sql.Clobobject.voidRowSetMetaData. setColumnLabel(int columnIndex, String label)Sets the suggested column title for use in printouts and displays, if any, to the givenString.voidRowSetMetaData. setColumnName(int columnIndex, String columnName)Sets the name of the designated column to the givenString.voidRowSetMetaData. setColumnTypeName(int columnIndex, String typeName)Sets the designated column's type name that is specific to the data source, if any, to the givenString.voidRowSet. setCommand(String cmd)Sets thisRowSetobject's command property to the given SQL query.voidRowSet. setDataSourceName(String name)Sets the data source name property for thisRowSetobject to the givenString.voidRowSet. 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.voidRowSet. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidRowSet. setDouble(String parameterName, double x)Sets the designated parameter to the given Javadoublevalue.voidRowSet. setFloat(String parameterName, float x)Sets the designated parameter to the given Javafloatvalue.voidRowSet. setInt(String parameterName, int x)Sets the designated parameter to the given Javaintvalue.voidRowSet. setLong(String parameterName, long x)Sets the designated parameter to the given Javalongvalue.voidRowSet. setNCharacterStream(String parameterName, Reader value)Sets the designated parameter to aReaderobject.voidRowSet. setNCharacterStream(String parameterName, Reader value, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(String parameterName, NClob value)Sets the designated parameter to ajava.sql.NClobobject.voidRowSet. setNString(int parameterIndex, String value)Sets the designated parameter to the givenStringobject.voidRowSet. setNString(String parameterName, String value)Sets the designated parameter to the givenStringobject.voidRowSet. setNull(int paramIndex, int sqlType, String typeName)Sets the designated parameter in thisRowSetobject's SQL command to SQLNULL.voidRowSet. setNull(String parameterName, int sqlType)Sets the designated parameter to SQLNULL.voidRowSet. setNull(String parameterName, int sqlType, String typeName)Sets the designated parameter to SQLNULL.voidRowSet. setObject(String parameterName, Object x)Sets the value of the designated parameter with the given object.voidRowSet. setObject(String parameterName, Object x, int targetSqlType)Sets the value of the designated parameter with the given object.voidRowSet. setObject(String parameterName, Object x, int targetSqlType, int scale)Sets the value of the designated parameter with the given object.voidRowSet. setPassword(String password)Sets the database password for thisRowSetobject to the givenString.voidRowSet. setRowId(String parameterName, RowId x)Sets the designated parameter to the givenjava.sql.RowIdobject.voidRowSetMetaData. setSchemaName(int columnIndex, String schemaName)Sets the name of the designated column's table's schema, if any, to the givenString.voidRowSet. setShort(String parameterName, short x)Sets the designated parameter to the given Javashortvalue.voidRowSet. setSQLXML(String parameterName, SQLXML xmlObject)Sets the designated parameter to the givenjava.sql.SQLXMLobject.voidRowSet. setString(int parameterIndex, String x)Sets the designated parameter in thisRowSetobject's command to the given JavaStringvalue.voidRowSet. setString(String parameterName, String x)Sets the designated parameter to the given JavaStringvalue.voidRowSetMetaData. setTableName(int columnIndex, String tableName)Sets the designated column's table name, if any, to the givenString.voidRowSet. setTime(String parameterName, Time x)Sets the designated parameter to the givenjava.sql.Timevalue.voidRowSet. setTime(String parameterName, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidRowSet. setTimestamp(String parameterName, Timestamp x)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidRowSet. setTimestamp(String parameterName, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidRowSet. setUrl(String url)Sets the URL thisRowSetobject will use when it uses theDriverManagerto create a connection.voidRowSet. setUsername(String name)Sets the username property for thisRowSetobject to the givenString.PooledConnectionBuilderPooledConnectionBuilder. user(String username)Specifies the username to be used when creating a connectionXAConnectionBuilderXAConnectionBuilder. user(String username)Specifies the username to be used when creating a connectionMethod parameters in javax.sql with type arguments of type String Modifier and Type Method Description voidRowSet. setTypeMap(Map<String,Class<?>> map)Installs the givenjava.util.Mapobject as the default type map for thisRowSetobject. -
Uses of String in javax.sql.rowset
Fields in javax.sql.rowset declared as String Modifier and Type Field Description static StringWebRowSet. PUBLIC_XML_SCHEMAThe public identifier for the XML Schema definition that defines the XML tags and their valid values for aWebRowSetimplementation.static StringWebRowSet. SCHEMA_SYSTEM_IDThe URL for the XML Schema definition file that defines the XML tags and their valid values for aWebRowSetimplementation.Methods in javax.sql.rowset that return String Modifier and Type Method Description StringRowSetMetaDataImpl. getCatalogName(int columnIndex)Retrieves the catalog name of the table from which the value in the designated column was derived.StringRowSetMetaDataImpl. getColumnClassName(int columnIndex)Retrieves the fully-qualified name of the class in the Java programming language to which a value in the designated column will be mapped.StringRowSetMetaDataImpl. getColumnLabel(int columnIndex)Retrieves the suggested column title for the designated column for use in printouts and displays.StringRowSetMetaDataImpl. getColumnName(int columnIndex)Retrieves the name of the designated column.StringRowSetMetaDataImpl. getColumnTypeName(int columnIndex)Retrieves the DBMS-specific type name for values stored in the designated column.StringBaseRowSet. getCommand()Retrieves the SQL query that is the command for thisRowSetobject.StringBaseRowSet. getDataSourceName()Returns the logical name that when supplied to a naming service that uses the Java Naming and Directory Interface (JNDI) API, will retrieve ajavax.sql.DataSourceobject.String[]Joinable. getMatchColumnNames()Retrieves the names of the match columns that were set for thisRowSetobject with the methodsetMatchColumn(String [] columnNames).StringBaseRowSet. getPassword()Returns the password used to create a database connection for thisRowSetobject.String[]JoinRowSet. getRowSetNames()Returns aStringarray containing the names of theRowSetobjects added to thisJoinRowSetobject.StringRowSetMetaDataImpl. getSchemaName(int columnIndex)Retrieves the schema name of the table from which the value in the designated column was derived.StringCachedRowSet. getTableName()Returns an identifier for the object (table) that was used to create thisCachedRowSetobject.StringRowSetMetaDataImpl. getTableName(int columnIndex)Retrieves the name of the table from which the value in the designated column was derived.StringBaseRowSet. getUrl()Retrieves the JDBC URL that thisRowSetobject'sjavax.sql.Readerobject uses to make a connection with a relational database using a JDBC technology-enabled driver.StringBaseRowSet. getUsername()Returns the user name used to create a database connection.StringJoinRowSet. getWhereClause()Return a SQL-like description of the WHERE clause being used in a JoinRowSet object.Methods in javax.sql.rowset that return types with arguments of type String Modifier and Type Method Description Map<String,Class<?>>BaseRowSet. getTypeMap()Retrieves the type map associated with theConnectionobject for thisRowSetobject.Methods in javax.sql.rowset with parameters of type String Modifier and Type Method Description voidJoinRowSet. addRowSet(RowSet[] rowset, String[] columnName)Adds one or moreRowSetobjects contained in the given array ofRowSetobjects to thisJoinRowSetobject and sets the match column for each of theRowSetobjects to the match columns in the given array of column names.voidJoinRowSet. addRowSet(RowSet rowset, String columnName)Adds rowset to thisJoinRowSetobject and sets the designated column as the match column.booleanCachedRowSet. columnUpdated(String columnName)Indicates whether the designated column in the current row of thisCachedRowSetobject has been updated.booleanPredicate. evaluate(Object value, String columnName)This method is called by theFilteredRowSetobject to check whether the value lies between the filtering criteria set using the setFilter method.static RowSetFactoryRowSetProvider. newFactory(String factoryClassName, ClassLoader cl)Creates a new instance of aRowSetFactoryfrom the specified factory class name.voidBaseRowSet. setAsciiStream(String parameterName, InputStream x)Sets the designated parameter to the given input stream.voidBaseRowSet. setAsciiStream(String parameterName, InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidBaseRowSet. setBigDecimal(String parameterName, BigDecimal x)Sets the designated parameter to the givenjava.math.BigDecimalvalue.voidBaseRowSet. setBinaryStream(String parameterName, InputStream x)Sets the designated parameter to the given input stream.voidBaseRowSet. setBinaryStream(String parameterName, InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidBaseRowSet. setBlob(String parameterName, InputStream inputStream)Sets the designated parameter to aInputStreamobject.voidBaseRowSet. setBlob(String parameterName, InputStream inputStream, long length)Sets the designated parameter to aInputStreamobject.voidBaseRowSet. setBlob(String parameterName, Blob x)Sets the designated parameter to the givenjava.sql.Blobobject.voidBaseRowSet. setBoolean(String parameterName, boolean x)Sets the designated parameter to the given Javabooleanvalue.voidBaseRowSet. setByte(String parameterName, byte x)Sets the designated parameter to the given Javabytevalue.voidBaseRowSet. setBytes(String parameterName, byte[] x)Sets the designated parameter to the given Java array of bytes.voidRowSetMetaDataImpl. setCatalogName(int columnIndex, String catalogName)Sets the catalog name of the table from which the designated column was derived to catalogName.voidBaseRowSet. setCharacterStream(String parameterName, Reader reader)Sets the designated parameter to the givenReaderobject.voidBaseRowSet. setCharacterStream(String parameterName, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidBaseRowSet. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setClob(String parameterName, Clob x)Sets the designated parameter to the givenjava.sql.Clobobject.voidRowSetMetaDataImpl. setColumnLabel(int columnIndex, String label)Sets the suggested column label for use in printouts and displays, if any, to label.voidRowSetMetaDataImpl. setColumnName(int columnIndex, String columnName)Sets the column name of the designated column to the given name.voidRowSetMetaDataImpl. setColumnTypeName(int columnIndex, String typeName)Sets the type name used by the data source for values stored in the designated column to the given type name.voidBaseRowSet. setCommand(String cmd)Sets thisRowSetobject'scommandproperty to the givenStringobject and clears the parameters, if any, that were set for the previous command.voidBaseRowSet. setDataSourceName(String name)Sets theDataSourcename property for thisRowSetobject to the given logical name and sets thisRowSetobject's Url property tonull.voidBaseRowSet. 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.voidBaseRowSet. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidBaseRowSet. setDouble(String parameterName, double x)Sets the designated parameter to the given Javadoublevalue.voidBaseRowSet. setFloat(String parameterName, float x)Sets the designated parameter to the given Javafloatvalue.voidBaseRowSet. setInt(String parameterName, int x)Sets the designated parameter to the given Javaintvalue.voidBaseRowSet. setLong(String parameterName, long x)Sets the designated parameter to the given Javalongvalue.voidJoinable. setMatchColumn(String columnName)Sets the designated column as the match column for thisRowSetobject.voidJoinable. setMatchColumn(String[] columnNames)Sets the designated columns as the match column for thisRowSetobject.voidBaseRowSet. setNCharacterStream(String parameterName, Reader value)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNCharacterStream(String parameterName, Reader value, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(String parameterName, NClob value)Sets the designated parameter to ajava.sql.NClobobject.voidBaseRowSet. setNString(int parameterIndex, String value)Sets the designated parameter to the givenStringobject.voidBaseRowSet. setNString(String parameterName, String value)Sets the designated parameter to the givenStringobject.voidBaseRowSet. setNull(int parameterIndex, int sqlType, String typeName)Sets the designated parameter to SQLNULL.voidBaseRowSet. setNull(String parameterName, int sqlType)Sets the designated parameter to SQLNULL.voidBaseRowSet. setNull(String parameterName, int sqlType, String typeName)Sets the designated parameter to SQLNULL.voidBaseRowSet. setObject(String parameterName, Object x)Sets the value of the designated parameter with the given object.voidBaseRowSet. setObject(String parameterName, Object x, int targetSqlType)Sets the value of the designated parameter with the given object.voidBaseRowSet. setObject(String parameterName, Object x, int targetSqlType, int scale)Sets the value of the designated parameter with the given object.voidBaseRowSet. setPassword(String pass)Sets the password used to create a database connection for thisRowSetobject to the givenStringobject.voidBaseRowSet. setRowId(String parameterName, RowId x)Sets the designated parameter to the givenjava.sql.RowIdobject.voidRowSetMetaDataImpl. setSchemaName(int columnIndex, String schemaName)Sets the designated column's table's schema name, if any, to schemaName.voidBaseRowSet. setShort(String parameterName, short x)Sets the designated parameter to the given Javashortvalue.voidBaseRowSet. setSQLXML(String parameterName, SQLXML xmlObject)Sets the designated parameter to the givenjava.sql.SQLXMLobject.voidBaseRowSet. setString(int parameterIndex, String x)Sets the designated parameter to the givenStringvalue.voidBaseRowSet. setString(String parameterName, String x)Sets the designated parameter to the given JavaStringvalue.voidCachedRowSet. setSyncProvider(String provider)Sets theSyncProviderobject for thisCachedRowSetobject to the one specified.voidCachedRowSet. setTableName(String tabName)Sets the identifier for the table from which thisCachedRowSetobject was derived to the given table name.voidRowSetMetaDataImpl. setTableName(int columnIndex, String tableName)Sets the name of the table from which the designated column was derived to the given table name.voidBaseRowSet. setTime(String parameterName, Time x)Sets the designated parameter to the givenjava.sql.Timevalue.voidBaseRowSet. setTime(String parameterName, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidBaseRowSet. setTimestamp(String parameterName, Timestamp x)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidBaseRowSet. setTimestamp(String parameterName, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidBaseRowSet. setUrl(String url)Sets the Url property for thisRowSetobject to the givenStringobject and sets the dataSource name property tonull.voidBaseRowSet. setUsername(String name)Sets the username property for thisRowSetobject to the given user name.Collection<?>CachedRowSet. toCollection(String column)Converts the designated column in thisCachedRowSetobject to aCollectionobject.voidJoinable. unsetMatchColumn(String columnName)Unsets the designated column as the match column for thisRowSetobject.voidJoinable. unsetMatchColumn(String[] columnName)Unsets the designated columns as the match columns for thisRowSetobject.Method parameters in javax.sql.rowset with type arguments of type String Modifier and Type Method Description voidBaseRowSet. setTypeMap(Map<String,Class<?>> map)Installs the givenjava.util.Mapobject as the type map associated with theConnectionobject for thisRowSetobject.Constructors in javax.sql.rowset with parameters of type String Constructor Description RowSetWarning(String reason)Constructs aRowSetWarningobject with the given value for the reason; SQLState defaults to null, and vendorCode defaults to 0.RowSetWarning(String reason, String SQLState)Constructs aRowSetWarningobject initialized with the given values for the reason and SQLState.RowSetWarning(String reason, String SQLState, int vendorCode)Constructs a fully specifiedRowSetWarningobject initialized with the given values for the reason, SQLState and vendorCode. -
Uses of String in javax.sql.rowset.serial
Methods in javax.sql.rowset.serial that return String Modifier and Type Method Description StringSerialArray. getBaseTypeName()Retrieves the DBMS-specific type name for the elements in thisSerialArrayobject.StringSerialRef. getBaseTypeName()Returns a string describing the base type name of theRef.StringSerialStruct. getSQLTypeName()Retrieves the SQL type name for thisSerialStructobject.StringSerialClob. getSubString(long pos, int length)Returns a copy of the substring contained in thisSerialClobobject, starting at the given position and continuing for the specified number or characters.StringSQLInputImpl. readNString()Reads the next attribute in the stream and returns it as aStringin the Java programming language.StringSQLInputImpl. readString()Retrieves the next attribute in thisSQLInputImplobject as aStringin the Java programming language.Methods in javax.sql.rowset.serial with parameters of type String Modifier and Type Method Description longSerialClob. position(String searchStr, long start)Returns the position in thisSerialClobobject where the givenStringobject begins, starting the search at the specified position.intSerialClob. setString(long pos, String str)Writes the given JavaStringto theCLOBvalue that thisSerialClobobject represents, at the positionpos.intSerialClob. setString(long pos, String str, int offset, int length)Writeslencharacters ofstr, starting at characteroffset, to theCLOBvalue that thisClobrepresents.voidSQLOutputImpl. writeNString(String x)Writes the next attribute to the stream as aStringin the Java programming language.voidSQLOutputImpl. writeString(String x)Writes aStringin the Java programming language to thisSQLOutputImplobject.Method parameters in javax.sql.rowset.serial with type arguments of type String Modifier and Type Method Description ObjectSerialArray. getArray(long index, int count, Map<String,Class<?>> map)Returns a new array that is a copy of a slice of thisSerialArrayobject, starting with the element at the given index and containing the given number of consecutive elements.ObjectSerialArray. getArray(Map<String,Class<?>> map)Returns a new array that is a copy of thisSerialArrayobject, using the given type map for the custom mapping of each element when the elements are SQL UDTs.Object[]SerialStruct. getAttributes(Map<String,Class<?>> map)Retrieves the attributes for the SQL structured type that thisSerialStructrepresents as an array ofObjectvalues, using the given type map for custom mapping if appropriate.ObjectSerialRef. getObject(Map<String,Class<?>> map)Returns anObjectrepresenting the SQL structured type to which thisSerialRefobject refers.ResultSetSerialArray. getResultSet(long index, int count, Map<String,Class<?>> map)Retrieves a result set holding the elements of the subarray that starts at Retrieves aResultSetobject that contains a subarray of the elements in thisSerialArrayobject, starting at index index and containing up to count successive elements.ResultSetSerialArray. getResultSet(Map<String,Class<?>> map)Retrieves aResultSetobject that contains all of the elements of the SQLARRAYvalue represented by thisSerialArrayobject.Constructors in javax.sql.rowset.serial with parameters of type String Constructor Description SerialException(String msg)Creates a newSerialExceptionwith the specified message.Constructor parameters in javax.sql.rowset.serial with type arguments of type String Constructor Description SerialArray(Array array, Map<String,Class<?>> map)Constructs a newSerialArrayobject from the givenArrayobject, using the given type map for the custom mapping of each element when the elements are SQL UDTs.SerialStruct(SQLData in, Map<String,Class<?>> map)Constructs aSerialStructobject from the givenSQLDataobject, using the given type map to custom map it to a class in the Java programming language.SerialStruct(Struct in, Map<String,Class<?>> map)Constructs aSerialStructobject from the givenStructobject, using the givenjava.util.Mapobject for custom mapping the SQL structured type or any of its attributes that are SQL structured types.SQLInputImpl(Object[] attributes, Map<String,Class<?>> map)Creates anSQLInputImplobject initialized with the given array of attributes and the given type map.SQLOutputImpl(Vector<?> attributes, Map<String,?> map)Creates a newSQLOutputImplobject initialized with the given vector of attributes and type map. -
Uses of String in javax.sql.rowset.spi
Fields in javax.sql.rowset.spi declared as String Modifier and Type Field Description static StringSyncFactory. ROWSET_SYNC_PROVIDERThe standard property-id for a synchronization provider implementation name.static StringSyncFactory. ROWSET_SYNC_PROVIDER_VERSIONThe standard property-id for a synchronization provider implementation version tag.static StringSyncFactory. ROWSET_SYNC_VENDORThe standard property-id for a synchronization provider implementation vendor name.Methods in javax.sql.rowset.spi that return String Modifier and Type Method Description abstract StringSyncProvider. getProviderID()Returns the unique identifier for thisSyncProviderobject.abstract StringSyncProvider. getVendor()Returns the vendor name of thisSyncProviderinstanceabstract StringSyncProvider. getVersion()Returns the release version of thisSyncProviderinstance.Methods in javax.sql.rowset.spi with parameters of type String Modifier and Type Method Description ObjectSyncResolver. getConflictValue(String columnName)Retrieves the value in the designated column in the current row of thisSyncResolverobject, which is the value in the data source that caused a conflict.static SyncProviderSyncFactory. getInstance(String providerID)Returns theSyncProviderinstance identified by providerID.static voidSyncFactory. registerProvider(String providerID)Adds the given synchronization provider to the factory register.voidSyncResolver. setResolvedValue(String columnName, Object obj)Sets obj as the value in column columnName in the current row of theRowSetobject that is being synchronized.static voidSyncFactory. unregisterProvider(String providerID)Removes the designated currently registered synchronization provider from the Factory SPI register.Constructors in javax.sql.rowset.spi with parameters of type String Constructor Description SyncFactoryException(String msg)Constructs anSyncFactoryExceptionwith the specified detail message.SyncProviderException(String msg)Constructs aSyncProviderExceptionobject with the specified detail message. -
Uses of String in javax.swing
Fields in javax.swing declared as String Modifier and Type Field Description static StringAction. ACCELERATOR_KEYThe key used for storing aKeyStroketo be used as the accelerator for the action.static StringJFileChooser. ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTYIdentifies whether a the AcceptAllFileFilter is used or not.static StringJFileChooser. ACCESSORY_CHANGED_PROPERTYSays that a different accessory component is in use (for example, to preview files).static StringAction. ACTION_COMMAND_KEYThe key used to determine the commandStringfor theActionEventthat will be created when anActionis going to be notified as the result of residing in aKeymapassociated with aJComponent.protected StringDefaultButtonModel. actionCommandThe action command string fired by the button.protected StringJComboBox. actionCommandThis protected field is implementation specific.static StringJTree. ANCHOR_SELECTION_PATH_PROPERTYBound property name for anchor selection path.static StringJFileChooser. APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTYIdentifies change in the mnemonic for the approve (yes, ok) button.static StringJFileChooser. APPROVE_BUTTON_TEXT_CHANGED_PROPERTYIdentifies change in the text on the approve (yes, ok) button.static StringJFileChooser. APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTYIdentifies change in the tooltip text for the approve (yes, ok) button.static StringJFileChooser. APPROVE_SELECTIONInstruction to approve the current selection (same as pressing yes or ok).static StringSpringLayout. BASELINESpecifies the baseline of a component.static StringAbstractButton. BORDER_PAINTED_CHANGED_PROPERTYIdentifies a change to having the border drawn, or having it not drawn.static StringJCheckBox. BORDER_PAINTED_FLAT_CHANGED_PROPERTYIdentifies a change to the flat property.static StringJSplitPane. BOTTOMUsed to add aComponentbelow the otherComponent.static StringJFileChooser. CANCEL_SELECTIONInstruction to cancel the current selection.static StringJTree. CELL_EDITOR_PROPERTYBound property name forcellEditor.static StringJTree. CELL_RENDERER_PROPERTYBound property name forcellRenderer.static StringJFileChooser. CHOOSABLE_FILE_FILTER_CHANGED_PROPERTYIdentifies a change in the list of predefined file filters the user can choose from.static StringJColorChooser. CHOOSER_PANELS_PROPERTYThe chooserPanel array property name.static StringScrollPaneConstants. COLUMN_HEADERIdentifies the area at the top the viewport between the upper left corner and the upper right corner.static StringAbstractButton. CONTENT_AREA_FILLED_CHANGED_PROPERTYIdentifies a change to having the button paint the content area.static StringJInternalFrame. CONTENT_PANE_PROPERTYBound property name.static StringJSplitPane. CONTINUOUS_LAYOUT_PROPERTYBound property name for continuousLayout.static StringJFileChooser. CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTYInstruction to display the control buttons.static StringAction. DEFAULTNot currently used.static StringJFileChooser. DIALOG_TITLE_CHANGED_PROPERTYIdentifies a change in the dialog title.static StringJFileChooser. DIALOG_TYPE_CHANGED_PROPERTYIdentifies a change in the type of files displayed (files only, directories only, or both files and directories).static StringJFileChooser. DIRECTORY_CHANGED_PROPERTYIdentifies user's directory change.static StringAbstractButton. DISABLED_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the button has been disabled.static StringAbstractButton. DISABLED_SELECTED_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the button has been disabled and selected.static StringAction. DISPLAYED_MNEMONIC_INDEX_KEYThe key used for storing anIntegerthat corresponds to the index in the text (identified by theNAMEproperty) that the decoration for a mnemonic should be rendered at.static StringJSplitPane. DIVIDERUsed to add aComponentthat will represent the divider.static StringJSplitPane. DIVIDER_LOCATION_PROPERTYBound property for the dividerLocation.static StringJSplitPane. DIVIDER_SIZE_PROPERTYBound property name for border.static StringSpringLayout. EASTSpecifies the right edge of a component's bounding rectangle.static StringJTree. EDITABLE_PROPERTYBound property name foreditable.static StringJTree. EXPANDS_SELECTED_PATHS_PROPERTYBound property name for expands selected paths propertystatic StringJFileChooser. FILE_FILTER_CHANGED_PROPERTYUser changed the kind of files to display.static StringJFileChooser. FILE_HIDING_CHANGED_PROPERTYIdentifies a change in the display-hidden-files property.static StringJFileChooser. FILE_SELECTION_MODE_CHANGED_PROPERTYIdentifies a change in the kind of selection (single, multiple, etc.).static StringJFileChooser. FILE_SYSTEM_VIEW_CHANGED_PROPERTYSays that a different object is being used to find available drives on the system.static StringJFileChooser. FILE_VIEW_CHANGED_PROPERTYSays that a different object is being used to retrieve file information.static StringFocusManager. FOCUS_MANAGER_CLASS_PROPERTYThis field is obsolete, and its use is discouraged since its specification is incompatible with the 1.4 focus APIs.static StringAbstractButton. FOCUS_PAINTED_CHANGED_PROPERTYIdentifies a change to having the border highlighted when focused, or not.static StringJInternalFrame. FRAME_ICON_PROPERTYBound property name.static StringJInternalFrame. GLASS_PANE_PROPERTYBound property name.static StringSpringLayout. HEIGHTSpecifies the height of a component's bounding rectangle.static StringJEditorPane. HONOR_DISPLAY_PROPERTIESKey for a client property used to indicate whether the default font and foreground color from the component are used if a font or foreground color is not specified in the styled text.static StringAbstractButton. HORIZONTAL_ALIGNMENT_CHANGED_PROPERTYIdentifies a change in the button's horizontal alignment.static StringSpringLayout. HORIZONTAL_CENTERSpecifies the horizontal center of a component's bounding rectangle.static StringScrollPaneConstants. HORIZONTAL_SCROLLBARIdentifies a horizontal scrollbar.static StringScrollPaneConstants. HORIZONTAL_SCROLLBAR_POLICYIdentifies the horizontal scroll bar policy property.static StringAbstractButton. HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTYIdentifies a change in the button's horizontal text position.static StringAbstractButton. ICON_CHANGED_PROPERTYIdentifies a change to the icon that represents the button.static StringJOptionPane. ICON_PROPERTYBound property name foricon.static StringJOptionPane. INITIAL_SELECTION_VALUE_PROPERTYBound property name forinitialSelectionValue.static StringJOptionPane. INITIAL_VALUE_PROPERTYBound property name forinitialValue.static StringJOptionPane. INPUT_VALUE_PROPERTYBound property name forinputValue.static StringJTree. INVOKES_STOP_CELL_EDITING_PROPERTYBound property name formessagesStopCellEditing.static StringJInternalFrame. IS_CLOSED_PROPERTYConstrained property name indicating that the internal frame is closed.static StringJInternalFrame. IS_ICON_PROPERTYConstrained property name indicating that the internal frame is iconified.static StringJInternalFrame. IS_MAXIMUM_PROPERTYConstrained property name indicating that the internal frame is maximized.static StringJInternalFrame. IS_SELECTED_PROPERTYConstrained property name indicated that this frame has selected status.static StringAction. LARGE_ICON_KEYThe key used for storing anIcon.static StringJTree. LARGE_MODEL_PROPERTYBound property name forlargeModel.static StringJSplitPane. LAST_DIVIDER_LOCATION_PROPERTYBound property for lastLocation.static StringJLayeredPane. LAYER_PROPERTYBound propertystatic StringJInternalFrame. LAYERED_PANE_PROPERTYBound property name.static StringJTree. LEAD_SELECTION_PATH_PROPERTYBound property name forleadSelectionPath.static StringJSplitPane. LEFTUsed to add aComponentto the left of the otherComponent.static StringAction. LONG_DESCRIPTIONThe key used for storing a longerStringdescription for the action, could be used for context-sensitive help.static StringScrollPaneConstants. LOWER_LEADING_CORNERIdentifies the lower leading edge corner of the viewport.static StringScrollPaneConstants. LOWER_LEFT_CORNERIdentifies the lower left corner of the viewport.static StringScrollPaneConstants. LOWER_RIGHT_CORNERIdentifies the lower right corner of the viewport.static StringScrollPaneConstants. LOWER_TRAILING_CORNERIdentifies the lower trailing edge corner of the viewport.static StringAbstractButton. MARGIN_CHANGED_PROPERTYIdentifies a change in the button's margins.static StringJInternalFrame. MENU_BAR_PROPERTYBound property name.static StringJOptionPane. MESSAGE_PROPERTYBound property name formessage.static StringJOptionPane. MESSAGE_TYPE_PROPERTYBound property name fortype.static StringAbstractButton. MNEMONIC_CHANGED_PROPERTYIdentifies a change to the button's mnemonic.static StringAction. MNEMONIC_KEYThe key used for storing anIntegerthat corresponds to one of theKeyEventkey codes.static StringAbstractButton. MODEL_CHANGED_PROPERTYIdentifies a change in the button model.static StringJFileChooser. MULTI_SELECTION_ENABLED_CHANGED_PROPERTYEnables multiple-file selections.static StringAction. NAMEThe key used for storing theStringname for the action, used for a menu or button.static StringSpringLayout. NORTHSpecifies the top edge of a component's bounding rectangle.static StringJTextField. notifyActionName of the action to send notification that the contents of the field have been accepted.static StringJSplitPane. ONE_TOUCH_EXPANDABLE_PROPERTYBound property for oneTouchExpandable.static StringJOptionPane. OPTION_TYPE_PROPERTYBound property name foroptionType.static StringJOptionPane. OPTIONS_PROPERTYBound property name foroption.static StringJSplitPane. ORIENTATION_PROPERTYBound property name for orientation (horizontal or vertical).static StringAbstractButton. PRESSED_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the button has been pressed.static StringJColorChooser. PREVIEW_PANEL_PROPERTYThe preview panel property name.protected StringJProgressBar. progressStringAn optional string that can be displayed on the progress bar.static StringJSplitPane. RESIZE_WEIGHT_PROPERTYBound property for weight.static StringJSplitPane. RIGHTUsed to add aComponentto the right of the otherComponent.static StringAbstractButton. ROLLOVER_ENABLED_CHANGED_PROPERTYIdentifies a change from rollover enabled to disabled or back to enabled.static StringAbstractButton. ROLLOVER_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the cursor is over the button.static StringAbstractButton. ROLLOVER_SELECTED_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the cursor is over the button and it has been selected.static StringJInternalFrame. ROOT_PANE_PROPERTYBound property name.static StringJTree. ROOT_VISIBLE_PROPERTYBound property name forrootVisible.static StringScrollPaneConstants. ROW_HEADERIdentifies the area along the left side of the viewport between the upper left corner and the lower left corner.static StringJTree. ROW_HEIGHT_PROPERTYBound property name forrowHeight.static StringJTree. SCROLLS_ON_EXPAND_PROPERTYBound property name forscrollsOnExpand.static StringJFileChooser. SELECTED_FILE_CHANGED_PROPERTYIdentifies change in user's single-file selection.static StringJFileChooser. SELECTED_FILES_CHANGED_PROPERTYIdentifies change in user's multiple-file selection.static StringAbstractButton. SELECTED_ICON_CHANGED_PROPERTYIdentifies a change to the icon used when the button has been selected.static StringAction. SELECTED_KEYThe key used for storing aBooleanthat corresponds to the selected state.static StringJColorChooser. SELECTION_MODEL_PROPERTYThe selection model property name.static StringJTree. SELECTION_MODEL_PROPERTYBound property name for selectionModel.static StringJOptionPane. SELECTION_VALUES_PROPERTYBound property name forselectionValues.static StringAction. SHORT_DESCRIPTIONThe key used for storing a shortStringdescription for the action, used for tooltip text.static StringJTree. SHOWS_ROOT_HANDLES_PROPERTYBound property name forshowsRootHandles.static StringAction. SMALL_ICONThe key used for storing a smallIcon, such asImageIcon.static StringSpringLayout. SOUTHSpecifies the bottom edge of a component's bounding rectangle.static StringAbstractButton. TEXT_CHANGED_PROPERTYIdentifies a change in the button's text.protected StringJInternalFrame. titleThe title displayed in this internal frame's title bar.static StringJInternalFrame. TITLE_PROPERTYBound property name.static StringJTree. TOGGLE_CLICK_COUNT_PROPERTYBound property name fortoggleClickCount.static StringJComponent. TOOL_TIP_TEXT_KEYThe comment to display when the cursor is over the component, also known as a "value tip", "flyover help", or "flyover label".static StringJSplitPane. TOPUsed to add aComponentabove the otherComponent.static StringJTree. TREE_MODEL_PROPERTYBound property name fortreeModel.static StringScrollPaneConstants. UPPER_LEADING_CORNERIdentifies the upper leading edge corner of the viewport.static StringScrollPaneConstants. UPPER_LEFT_CORNERIdentifies the upper left corner of the viewport.static StringScrollPaneConstants. UPPER_RIGHT_CORNERIdentifies the upper right corner of the viewport.static StringScrollPaneConstants. UPPER_TRAILING_CORNERIdentifies the upper trailing edge corner of the viewport.static StringJOptionPane. VALUE_PROPERTYBound property name forvalue.static StringAbstractButton. VERTICAL_ALIGNMENT_CHANGED_PROPERTYIdentifies a change in the button's vertical alignment.static StringSpringLayout. VERTICAL_CENTERSpecifies the vertical center of a component's bounding rectangle.static StringScrollPaneConstants. VERTICAL_SCROLLBARIdentifies a vertical scrollbar.static StringScrollPaneConstants. VERTICAL_SCROLLBAR_POLICYIdentifies the vertical scroll bar policy property.static StringAbstractButton. VERTICAL_TEXT_POSITION_CHANGED_PROPERTYIdentifies a change in the button's vertical text position.static StringScrollPaneConstants. VIEWPORTIdentifies a "viewport" or display area, within which scrolled contents are visible.static StringJTree. VISIBLE_ROW_COUNT_PROPERTYBound property name forvisibleRowCount.static StringJEditorPane. W3C_LENGTH_UNITSKey for a client property used to indicate whether w3c compliant length units are used for html rendering.static StringJOptionPane. WANTS_INPUT_PROPERTYBound property name forwantsInput.static StringSpringLayout. WESTSpecifies the left edge of a component's bounding rectangle.static StringSpringLayout. WIDTHSpecifies the width of a component's bounding rectangle.Methods in javax.swing that return String Modifier and Type Method Description StringJTree. convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)Called by the renderers to convert the specified value to text.Stringdelegate()The name of the getter method in the annotated class, which returns the corresponding Swing container, if it is not recommended to add subcomponents to the annotated class directly.StringAbstractButton.AccessibleAbstractButton. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringJComboBox.AccessibleJComboBox. getAccessibleActionDescription(int i)Return a description of the specified action of the object.StringJEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink. getAccessibleActionDescription(int i)Return a String description of this particular link action.StringJList.AccessibleJList.AccessibleJListChild. getAccessibleActionDescription(int i)Returns a description of the specified action of the object.StringJSpinner.AccessibleJSpinner. getAccessibleActionDescription(int i)Returns a description of the specified action of the object.StringJTree.AccessibleJTree.AccessibleJTreeNode. getAccessibleActionDescription(int i)Return a description of the specified action of the tree node.StringJComponent.AccessibleJComponent. getAccessibleDescription()Gets the accessible description of this object.StringJEditorPane.AccessibleJEditorPane. getAccessibleDescription()Gets the accessibleDescription property of this object.StringJTable.AccessibleJTable.AccessibleJTableCell. getAccessibleDescription()Gets the accessible description of this object.StringJToolTip.AccessibleJToolTip. getAccessibleDescription()Get the accessible description of this object.StringJTree.AccessibleJTree.AccessibleJTreeNode. getAccessibleDescription()Get the accessible description of this object.StringProgressMonitor.AccessibleProgressMonitor. getAccessibleDescription()Gets the accessibleDescription property of this object.StringImageIcon.AccessibleImageIcon. getAccessibleIconDescription()Gets the description of the icon.StringAbstractButton.AccessibleAbstractButton. getAccessibleName()Returns the accessible name of this object.StringJComponent.AccessibleJComponent. getAccessibleName()Gets the accessible name of this object.StringJDialog.AccessibleJDialog. getAccessibleName()Get the accessible name of this object.StringJFrame.AccessibleJFrame. getAccessibleName()Get the accessible name of this object.StringJInternalFrame.AccessibleJInternalFrame. getAccessibleName()Get the accessible name of this object.StringJLabel.AccessibleJLabel. getAccessibleName()Get the accessible name of this object.StringJTabbedPane.AccessibleJTabbedPane. getAccessibleName()Returns the accessible name of this object, ornullif there is no accessible name.StringJTable.AccessibleJTable.AccessibleJTableCell. getAccessibleName()Gets the accessible name of this object.StringJTree.AccessibleJTree.AccessibleJTreeNode. getAccessibleName()Get the accessible name of this object.StringProgressMonitor.AccessibleProgressMonitor. getAccessibleName()Gets the accessibleName property of this object.StringAbstractButton. getActionCommand()Returns the action command for this button.StringButtonModel. getActionCommand()Returns the action command string for the button.StringJComboBox. getActionCommand()Returns the action command that is included in the event sent to action listeners.StringTimer. getActionCommand()Returns the string that will be delivered as the action command inActionEvents fired by this timer.StringAbstractButton.AccessibleAbstractButton. getAfterIndex(int part, int index)Returns the String after a given index.StringJLabel.AccessibleJLabel. getAfterIndex(int part, int index)Returns the String after a given index.StringJPasswordField.AccessibleJPasswordField. getAfterIndex(int part, int index)Returns theStringafter a givenindex.StringJSpinner.AccessibleJSpinner. getAfterIndex(int part, int index)Returns the String after a given index.StringProgressMonitor.AccessibleProgressMonitor. getAfterIndex(int part, int index)Returns the String after a given index.StringJFileChooser. getApproveButtonText()Returns the text used in theApproveButtonin theFileChooserUI.StringJFileChooser. getApproveButtonToolTipText()Returns the tooltip text used in theApproveButton.StringAbstractButton.AccessibleAbstractButton. getAtIndex(int part, int index)Returns the String at a given index.StringJLabel.AccessibleJLabel. getAtIndex(int part, int index)Returns the String at a given index.StringJPasswordField.AccessibleJPasswordField. getAtIndex(int part, int index)Returns theStringat a givenindex.StringJSpinner.AccessibleJSpinner. getAtIndex(int part, int index)Returns the String at a given index.StringProgressMonitor.AccessibleProgressMonitor. getAtIndex(int part, int index)Returns the String at a given index.StringAbstractButton.AccessibleAbstractButton. getBeforeIndex(int part, int index)Returns the String before a given index.StringJLabel.AccessibleJLabel. getBeforeIndex(int part, int index)Returns the String before a given index.StringJPasswordField.AccessibleJPasswordField. getBeforeIndex(int part, int index)Returns theStringbefore a givenindex.StringJSpinner.AccessibleJSpinner. getBeforeIndex(int part, int index)Returns the String before a given index.StringProgressMonitor.AccessibleProgressMonitor. getBeforeIndex(int part, int index)Returns the String before a given index.protected StringJComponent.AccessibleJComponent. getBorderTitle(Border b)Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title.StringUIManager.LookAndFeelInfo. getClassName()Returns the name of the class that implements this look and feel.StringJTable. getColumnName(int column)Returns the name of the column appearing in the view at column positioncolumn.StringJEditorPane. getContentType()Gets the type of content that this editor is currently set to deal with.static StringUIManager. getCrossPlatformLookAndFeelClassName()Returns the name of theLookAndFeelclass that implements the default cross platform look and feel -- the Java Look and Feel (JLF).StringImageIcon. getDescription()Gets the description of the image.StringJFileChooser. getDescription(File f)Returns the file description.abstract StringLookAndFeel. getDescription()Return a one line description of this look and feel implementation, e.g.StringJFileChooser. getDialogTitle()Gets the string that goes in theJFileChooser's titlebar.static StringJEditorPane. getEditorKitClassNameForContentType(String type)Returns the currently registeredEditorKitclass name for the typetype.abstract StringLookAndFeel. getID()Return a string that identifies this look and feel.StringAbstractButton. getLabel()Deprecated.- Replaced bygetTextStringJPopupMenu. getLabel()Returns the popup menu's labelStringJEditorPane.JEditorPaneAccessibleHypertextSupport. getLinkText(int linkIndex)Returns the contiguous text within the document that is associated with this hyperlink.StringJFileChooser. getName(File f)Returns the filename.abstract StringLookAndFeel. getName()Return a short string that identifies this look and feel, e.g.StringUIManager.LookAndFeelInfo. getName()Returns the name of the look and feel in a form suitable for a menu or other presentationStringProgressMonitor. getNote()Specifies the additional note that is displayed along with the progress message.StringAbstractButton.AccessibleAbstractButton. getSelectedText()Returns the portion of the text that is selected.StringJLabel.AccessibleJLabel. getSelectedText()Returns the portion of the text that is selected.StringJSpinner.AccessibleJSpinner. getSelectedText()Returns the portion of the text that is selected.StringProgressMonitor.AccessibleProgressMonitor. getSelectedText()Returns the portion of the text that is selected.StringJProgressBar. getString()Returns aStringrepresentation of the current progress.StringUIDefaults. getString(Object key)If the value ofkeyis aStringreturn it, otherwise returnnull.StringUIDefaults. getString(Object key, Locale l)If the value ofkeyfor the givenLocaleis aStringreturn it, otherwise returnnull.static StringUIManager. getString(Object key)Returns a string from the defaults.static StringUIManager. getString(Object key, Locale l)Returns a string from the defaults that is appropriate for the given locale.StringRowFilter.Entry. getStringValue(int index)Returns the string value at the specified index.StringDefaultRowSorter.ModelWrapper. getStringValueAt(int row, int column)Returns the value as aStringat the specified index.static StringUIManager. getSystemLookAndFeelClassName()Returns the name of theLookAndFeelclass that implements the native system look and feel if there is one, otherwise the name of the default cross platformLookAndFeelclass.StringAbstractButton. getText()Returns the button's text.StringJEditorPane. getText()Returns the text contained in thisTextComponentin terms of the content type of this editor.StringJLabel. getText()Returns the text string that the label displays.StringJPasswordField. getText()Deprecated.As of Java 2 platform v1.2, replaced bygetPassword.StringJPasswordField. getText(int offs, int len)Deprecated.As of Java 2 platform v1.2, replaced bygetPassword.StringJPasswordField.AccessibleJPasswordField. getTextRange(int startIndex, int endIndex)Returns the text between twoindices.StringJSpinner.AccessibleJSpinner. getTextRange(int startIndex, int endIndex)Returns the text string between two indices.StringJToolTip. getTipText()Returns the text that is shown when the tool tip is displayed.StringJInternalFrame. getTitle()Returns the title of theJInternalFrame.StringJTabbedPane. getTitleAt(int index)Returns the tab title atindex.StringAbstractButton.AccessibleAbstractButton. getTitledBorderText()Returns the titled border textStringJComponent.AccessibleJComponent. getTitledBorderText()Returns the titled border textStringJLabel.AccessibleJLabel. getTitledBorderText()Returns the titled border textStringAbstractButton.AccessibleAbstractButton. getToolTipText()Returns the tool tip textStringJComponent.AccessibleJComponent. getToolTipText()Returns the tool tip textStringJComponent. getToolTipText()Returns the tooltip string that has been set withsetToolTipText.StringJComponent. getToolTipText(MouseEvent event)Returns the string to be used as the tooltip for event.StringJLabel.AccessibleJLabel. getToolTipText()Returns the tool tip textStringJList. getToolTipText(MouseEvent event)Returns the tooltip text to be used for the given event.StringJTabbedPane. getToolTipText(MouseEvent event)Returns the tooltip text for the component determined by the mouse event location.StringJTable. getToolTipText(MouseEvent event)OverridesJComponent'sgetToolTipTextmethod in order to allow the renderer's tips to be used if it has text set.StringJTree. getToolTipText(MouseEvent event)OverridesJComponent'sgetToolTipTextmethod in order to allow renderer's tips to be used if it has text set.StringJTabbedPane. getToolTipTextAt(int index)Returns the tab tooltip text atindex.StringJFileChooser. getTypeDescription(File f)Returns the file type.StringJButton. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJCheckBox. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJCheckBoxMenuItem. getUIClassID()Returns the name of the L&F class that renders this component.StringJColorChooser. getUIClassID()Returns the name of the L&F class that renders this component.StringJComboBox. getUIClassID()Returns the name of the L&F class that renders this component.StringJComponent. getUIClassID()Returns theUIDefaultskey used to look up the name of theswing.plaf.ComponentUIclass that defines the look and feel for this component.StringJDesktopPane. getUIClassID()Returns the name of the L&F class that renders this component.StringJEditorPane. getUIClassID()Gets the class ID for the UI.StringJFileChooser. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJFormattedTextField. getUIClassID()Gets the class ID for a UI.StringJInternalFrame. getUIClassID()Returns the name of the look-and-feel class that renders this component.StringJInternalFrame.JDesktopIcon. getUIClassID()Returns the name of the look-and-feel class that renders this component.StringJLabel. getUIClassID()Returns a string that specifies the name of the l&f class that renders this component.StringJList. getUIClassID()Returns"ListUI", theUIDefaultskey used to look up the name of thejavax.swing.plaf.ListUIclass that defines the look and feel for this component.StringJMenu. getUIClassID()Returns the name of the L&F class that renders this component.StringJMenuBar. getUIClassID()Returns the name of the L&F class that renders this component.StringJMenuItem. getUIClassID()Returns the suffix used to construct the name of the L&F class used to render this component.StringJOptionPane. getUIClassID()Returns the name of the UI class that implements the L&F for this component.StringJPanel. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJPasswordField. getUIClassID()Returns the name of the L&F class that renders this component.StringJPopupMenu. getUIClassID()Returns the name of the L&F class that renders this component.StringJPopupMenu.Separator. getUIClassID()Returns the name of the L&F class that renders this component.StringJProgressBar. getUIClassID()Returns the name of the look-and-feel class that renders this component.StringJRadioButton. getUIClassID()Returns the name of the L&F class that renders this component.StringJRadioButtonMenuItem. getUIClassID()Returns the name of the L&F class that renders this component.StringJRootPane. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJScrollBar. getUIClassID()Returns the name of the LookAndFeel class for this component.StringJScrollPane. getUIClassID()Returns the suffix used to construct the name of the L&F class used to render this component.StringJSeparator. getUIClassID()Returns the name of the L&F class that renders this component.StringJSlider. getUIClassID()Returns the name of the L&F class that renders this component.StringJSpinner. getUIClassID()Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.StringJSplitPane. getUIClassID()Returns the name of the L&F class that renders this component.StringJTabbedPane. getUIClassID()Returns the name of the UI class that implements the L&F for this component.StringJTable. getUIClassID()Returns the suffix used to construct the name of the L&F class used to render this component.StringJTextArea. getUIClassID()Returns the class ID for the UI.StringJTextField. getUIClassID()Gets the class ID for a UI.StringJTextPane. getUIClassID()Returns the class ID for the UI.StringJToggleButton. getUIClassID()Returns a string that specifies the name of the l&f class that renders this component.StringJToolBar. getUIClassID()Returns the name of the L&F class that renders this component.StringJToolBar.Separator. getUIClassID()Returns the name of the L&F class that renders this component.StringJToolTip. getUIClassID()Returns the name of the L&F class that renders this component.StringJTree. getUIClassID()Returns the name of the L&F class that renders this component.StringJViewport. getUIClassID()Returns a string that specifies the name of the L&F class that renders this component.StringJInternalFrame. getWarningString()Gets the warning string that is displayed with this internal frame.static StringSwingUtilities. layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.static StringSwingUtilities. layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.protected StringAbstractButton. paramString()Returns a string representation of thisAbstractButton.protected StringJApplet. paramString()Deprecated.Returns a string representation of this JApplet.protected StringJButton. paramString()Returns a string representation of thisJButton.protected StringJCheckBox. paramString()Returns a string representation of this JCheckBox.protected StringJCheckBoxMenuItem. paramString()Returns a string representation of this JCheckBoxMenuItem.protected StringJColorChooser. paramString()Returns a string representation of thisJColorChooser.protected StringJComboBox. paramString()Returns a string representation of thisJComboBox.protected StringJComponent. paramString()Returns a string representation of thisJComponent.protected StringJDesktopPane. paramString()Returns a string representation of thisJDesktopPane.protected StringJDialog. paramString()Returns a string representation of thisJDialog.protected StringJEditorPane. paramString()Returns a string representation of thisJEditorPane.protected StringJFileChooser. paramString()Returns a string representation of thisJFileChooser.protected StringJFrame. paramString()Returns a string representation of thisJFrame.protected StringJInternalFrame. paramString()Returns a string representation of thisJInternalFrame.protected StringJLabel. paramString()Returns a string representation of this JLabel.protected StringJLayeredPane. paramString()Returns a string representation of this JLayeredPane.protected StringJList. paramString()Returns aStringrepresentation of thisJList.protected StringJMenu. paramString()Returns a string representation of thisJMenu.protected StringJMenuBar. paramString()Returns a string representation of thisJMenuBar.protected StringJMenuItem. paramString()Returns a string representation of thisJMenuItem.protected StringJOptionPane. paramString()Returns a string representation of thisJOptionPane.protected StringJPanel. paramString()Returns a string representation of this JPanel.protected StringJPasswordField. paramString()Returns a string representation of thisJPasswordField.protected StringJPopupMenu. paramString()Returns a string representation of thisJPopupMenu.protected StringJProgressBar. paramString()Returns a string representation of thisJProgressBar.protected StringJRadioButton. paramString()Returns a string representation of this JRadioButton.protected StringJRadioButtonMenuItem. paramString()Returns a string representation of thisJRadioButtonMenuItem.protected StringJRootPane. paramString()Returns a string representation of thisJRootPane.protected StringJScrollBar. paramString()Returns a string representation of this JScrollBar.protected StringJScrollPane. paramString()Returns a string representation of thisJScrollPane.protected StringJSeparator. paramString()Returns a string representation of thisJSeparator.protected StringJSlider. paramString()Returns a string representation of this JSlider.protected StringJSplitPane. paramString()Returns a string representation of thisJSplitPane.protected StringJTabbedPane. paramString()Returns a string representation of thisJTabbedPane.protected StringJTable. paramString()Returns a string representation of this table.protected StringJTextArea. paramString()Returns a string representation of this JTextArea.protected StringJTextField. paramString()Returns a string representation of thisJTextField.protected StringJTextPane. paramString()Returns a string representation of thisJTextPane.protected StringJToggleButton. paramString()Returns a string representation of this JToggleButton.protected StringJToolBar. paramString()Returns a string representation of thisJToolBar.protected StringJToolTip. paramString()Returns a string representation of thisJToolTip.protected StringJTree. paramString()Returns a string representation of thisJTree.protected StringJViewport. paramString()Returns a string representation of thisJViewport.protected StringJWindow. paramString()Returns a string representation of thisJWindow.static StringJOptionPane. showInputDialog(Component parentComponent, Object message)Shows a question-message dialog requesting input from the user parented toparentComponent.static StringJOptionPane. showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)Shows a question-message dialog requesting input from the user and parented toparentComponent.static StringJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType)Shows a dialog requesting input from the user parented toparentComponentwith the dialog having the titletitleand message typemessageType.static StringJOptionPane. showInputDialog(Object message)Shows a question-message dialog requesting input from the user.static StringJOptionPane. showInputDialog(Object message, Object initialSelectionValue)Shows a question-message dialog requesting input from the user, with the input value initialized toinitialSelectionValue.static StringJOptionPane. showInternalInputDialog(Component parentComponent, Object message)Shows an internal question-message dialog requesting input from the user parented toparentComponent.static StringJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)Shows an internal dialog requesting input from the user parented toparentComponentwith the dialog having the titletitleand message typemessageType.StringDefaultBoundedRangeModel. toString()Returns a string that displays all of theBoundedRangeModelproperties.StringDefaultListModel. toString()Returns a string that displays and identifies this object's properties.StringDefaultListSelectionModel. toString()Returns a string that displays and identifies this object's properties.StringGroupLayout. toString()Returns a string representation of thisGroupLayout.StringImageIcon. toString()Returns a string representation of this image.StringJList.DropLocation. toString()Returns a string representation of this drop location.StringJTable.DropLocation. toString()Returns a string representation of this drop location.StringJTree.DropLocation. toString()Returns a string representation of this drop location.StringLookAndFeel. toString()Returns a string that displays and identifies this object's properties.StringRepaintManager. toString()Returns a string that displays and identifies this object's properties.StringSizeRequirements. toString()Returns a string describing the minimum, preferred, and maximum size requirements, along with the alignment.StringTransferHandler.DropLocation. toString()Returns a string representation of this drop location.StringUIManager.LookAndFeelInfo. toString()Returns a string that displays and identifies this object's properties.abstract StringJFormattedTextField.AbstractFormatter. valueToString(Object value)Returns the string value to display forvalue.Methods in javax.swing with parameters of type String Modifier and Type Method Description protected voidAbstractButton. actionPropertyChanged(Action action, String propertyName)Updates the button's state in response to property changes in the associated action.protected voidJComboBox. actionPropertyChanged(Action action, String propertyName)Updates the combobox's state in response to property changes in associated action.protected voidJMenuItem. actionPropertyChanged(Action action, String propertyName)Updates the button's state in response to property changes in the associated action.protected voidJTextField. actionPropertyChanged(Action action, String propertyName)Updates the textfield's state in response to property changes in associated action.JMenuItemJMenu. add(String s)Creates a new menu item with the specified text and appends it to the end of this menu.JMenuItemJPopupMenu. add(String s)Creates a new menu item with the specified text and appends it to the end of this menu.ComponentJTabbedPane. add(String title, Component component)Adds acomponentwith the specified tab title.voidBoxLayout. addLayoutComponent(String name, Component comp)Not used by this class.voidGroupLayout. addLayoutComponent(String name, Component component)Notification that aComponenthas been added to the parent container.voidJSpinner.DefaultEditor. addLayoutComponent(String name, Component child)ThisLayoutManagermethod does nothing.voidOverlayLayout. addLayoutComponent(String name, Component comp)Adds the specified component to the layout.voidScrollPaneLayout. addLayoutComponent(String s, Component c)Adds the specified component to the layout.voidSpringLayout. addLayoutComponent(String name, Component c)Has no effect, since this layout manager does not use a per-component string.voidViewportLayout. addLayoutComponent(String name, Component c)Adds the specified component to the layout.voidUIDefaults. addResourceBundle(String bundleName)Adds a resource bundle to the list of resource bundles that are searched for localized values.StyleJTextPane. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.voidJTabbedPane. addTab(String title, Component component)Adds acomponentrepresented by atitleand no icon.voidJTabbedPane. addTab(String title, Icon icon, Component component)Adds acomponentrepresented by atitleand/oricon, either of which can benull.voidJTabbedPane. addTab(String title, Icon icon, Component component, String tip)Adds acomponentandtiprepresented by atitleand/oricon, either of which can benull.voidJTextArea. append(String str)Appends the given text to the end of the document.protected intAbstractButton. checkHorizontalKey(int key, String exception)Verify that thekeyargument is a legal value for thehorizontalAlignmentandhorizontalTextPositionproperties.protected intJLabel. checkHorizontalKey(int key, String message)Verify that key is a legal value for the horizontalAlignment properties.protected intAbstractButton. checkVerticalKey(int key, String exception)Verify that thekeyargument is a legal value for the vertical properties.protected intJLabel. checkVerticalKey(int key, String message)Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties.static intSwingUtilities. computeStringWidth(FontMetrics fm, String str)Compute the width of the string using a font with the specified "metrics" (sizes).static JDialogJColorChooser. createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)Creates and returns a new dialog containing the specifiedColorChooserpane along with "OK", "Cancel", and "Reset" buttons.JDialogJOptionPane. createDialog(Component parentComponent, String title)Creates and returns a newJDialogwrappingthiscentered on theparentComponentin theparentComponent's frame.JDialogJOptionPane. createDialog(String title)Creates and returns a new parentlessJDialogwith the specified title.static EditorKitJEditorPane. createEditorKitForContentType(String type)Creates a handler for the given type from the default registry of editor kits.JInternalFrameJOptionPane. createInternalFrame(Component parentComponent, String title)Creates and returns an instance ofJInternalFrame.static LookAndFeelUIManager. createLookAndFeel(String name)Creates a supported built-in JavaLookAndFeelspecified by the givenL&F namename.static TitledBorderBorderFactory. createTitledBorder(String title)Creates a new titled border with the specified title, the default border type (determined by the current look and feel), the default text position (determined by the current look and feel), the default justification (leading), and the default font and text color (determined by the current look and feel).static TitledBorderBorderFactory. createTitledBorder(Border border, String title)Adds a title to an existing border, with default positioning (determined by the current look and feel), default justification (leading) and the default font and text color (determined by the current look and feel).static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition)Adds a title to an existing border, with the specified positioning and using the default font and text color (determined by the current look and feel).static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)Adds a title to an existing border, with the specified positioning and font, and using the default text color (determined by the current look and feel).static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)Adds a title to an existing border, with the specified positioning, font and color.voidDebugGraphics. drawString(String aString, int x, int y)OverridesGraphics.drawString.protected voidJFileChooser. fireActionPerformed(String command)Notifies all listeners that have registered interest for notification on this event type.protected voidAbstractAction. firePropertyChange(String propertyName, Object oldValue, Object newValue)Supports reporting bound property changes.voidDefaultListCellRenderer. firePropertyChange(String propertyName, boolean oldValue, boolean newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, byte oldValue, byte newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, char oldValue, char newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, double oldValue, double newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, float oldValue, float newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, int oldValue, int newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, long oldValue, long newValue)Overridden for performance reasons.voidDefaultListCellRenderer. firePropertyChange(String propertyName, short oldValue, short newValue)Overridden for performance reasons.protected voidDefaultListCellRenderer. firePropertyChange(String propertyName, Object oldValue, Object newValue)Overridden for performance reasons.voidJComponent. firePropertyChange(String propertyName, boolean oldValue, boolean newValue)Support for reporting bound property changes for boolean properties.voidJComponent. firePropertyChange(String propertyName, int oldValue, int newValue)Support for reporting bound property changes for integer properties.protected voidJViewport. firePropertyChange(String propertyName, Object oldValue, Object newValue)Notifies listeners of a property change.voidSwingWorker. firePropertyChange(String propertyName, Object oldValue, Object newValue)Reports a bound property update to any registered listeners.protected voidUIDefaults. firePropertyChange(String propertyName, Object oldValue, Object newValue)Support for reporting bound property changes.protected voidJComponent. fireVetoableChange(String propertyName, Object oldValue, Object newValue)Supports reporting constrained property changes.static ContainerSwingUtilities. getAncestorNamed(String name, Component comp)Convenience method for searching abovecompin the component hierarchy and returns the first object ofnameit finds.SpringSpringLayout.Constraints. getConstraint(String edgeName)Returns the value of the specified edge, which may be a derived value, or evennull.SpringSpringLayout. getConstraint(String edgeName, Component c)Returns the spring controlling the distance between the specified edge of the component and the top or left edge of its parent.ComponentJScrollPane. getCorner(String key)Returns the component at the specified corner.ComponentScrollPaneLayout. getCorner(String key)Returns theComponentat the specified corner.static ObjectLookAndFeel. getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)Returns the value of the specified system desktop property by invokingToolkit.getDefaultToolkit().getDesktopProperty().static StringJEditorPane. getEditorKitClassNameForContentType(String type)Returns the currently registeredEditorKitclass name for the typetype.EditorKitJEditorPane. getEditorKitForContentType(String type)Fetches the editor kit to use for the given type of content.static KeyStrokeKeyStroke. getKeyStroke(String s)Parses a string and returns aKeyStroke.intJList. getNextMatch(String prefix, int startIndex, Position.Bias bias)Returns the next list element whosetoStringvalue starts with the given prefix.TreePathJTree. getNextMatch(String prefix, int startingRow, Position.Bias bias)Returns the TreePath to the next tree element that begins with a prefix.StyleJTextPane. getStyle(String nm)Fetches a named non-nullstyle previously added.Class<? extends ComponentUI>UIDefaults. getUIClass(String uiClassID)Returns the L&F class that renders this component.Class<? extends ComponentUI>UIDefaults. getUIClass(String uiClassID, ClassLoader uiClassLoader)The value ofget(uidClassID)must be theStringname of a class that implements the correspondingComponentUIclass.protected voidUIDefaults. getUIError(String msg)IfgetUI()fails for any reason, it calls this method before returningnull.ObjectAbstractAction. getValue(String key)Gets theObjectassociated with the specified key.ObjectAction. getValue(String key)Gets one of this object's properties using the associated key.intJTabbedPane. indexOfTab(String title)Returns the first tab index with a giventitle, or -1 if no tab has this title.protected voidAbstractButton. init(String text, Icon icon)Initialization of theAbstractButton.protected voidJMenuItem. init(String text, Icon icon)Initializes the menu item with the specified text and icon.voidJMenu. insert(String s, int pos)Inserts a new menu item with the specified text at a given position.voidJTextArea. insert(String str, int pos)Inserts the specified text at the specified position.voidJTabbedPane. insertTab(String title, Icon icon, Component component, String tip, int index)Inserts a new tab for the given component, at the given index, represented by the given title and/or icon, either of which may benull.voidJSpinner.AccessibleJSpinner. insertTextAtIndex(int index, String s)Inserts the specified string at the given index/static voidLookAndFeel. installBorder(JComponent c, String defaultBorderName)Convenience method for setting a component's border property with a value from the defaults.static voidLookAndFeel. installColors(JComponent c, String defaultBgName, String defaultFgName)Convenience method for setting a component's foreground and background color properties with values from the defaults.static voidLookAndFeel. installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName)Convenience method for setting a component's foreground, background and font properties with values from the defaults.static voidUIManager. installLookAndFeel(String name, String className)Adds the specified look and feel to the set of available look and feels.static voidLookAndFeel. installProperty(JComponent c, String propertyName, Object propertyValue)Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the developer.static StringSwingUtilities. layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.static StringSwingUtilities. layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.static ObjectLookAndFeel. makeIcon(Class<?> baseClass, String gifFile)Creates and returns aUIDefault.LazyValuethat loads an image.voidSpringLayout. putConstraint(String e1, Component c1, int pad, String e2, Component c2)Links edgee1of componentc1to edgee2of componentc2, with a fixed distance between the edges.voidSpringLayout. putConstraint(String e1, Component c1, Spring s, String e2, Component c2)Links edgee1of componentc1to edgee2of componentc2.voidAbstractAction. putValue(String key, Object newValue)Sets theValueassociated with the specified key.voidAction. putValue(String key, Object value)Sets one of this object's properties using the associated key.static <M,I>
RowFilter<M,I>RowFilter. regexFilter(String regex, int... indices)Returns aRowFilterthat uses a regular expression to determine which entries to include.static voidJEditorPane. registerEditorKitForContentType(String type, String classname)Establishes the default bindings oftypetoclassname.static voidJEditorPane. registerEditorKitForContentType(String type, String classname, ClassLoader loader)Establishes the default bindings oftypetoclassname.voidJComponent. registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)This method is now obsolete, please use a combination ofgetActionMap()andgetInputMap()for similar behavior.voidUIDefaults. removeResourceBundle(String bundleName)Removes a resource bundle from the list of resource bundles that are searched for localized defaults.voidJTextPane. removeStyle(String nm)Removes a named non-nullstyle previously added to the document.voidJTextArea. replaceRange(String str, int start, int end)Replaces text from the indicated start to end position with the new text specified.voidJEditorPane. replaceSelection(String content)Replaces the currently selected content with new content represented by the given string.voidJTextPane. replaceSelection(String content)Replaces the currently selected content with new content represented by the given string.voidJSpinner.AccessibleJSpinner. replaceText(int startIndex, int endIndex, String s)Replaces the text between two indices with the specified string.voidJEditorPane. scrollToReference(String reference)Scrolls the view to the given reference location (that is, the value returned by theURL.getRefmethod for the URL being displayed).voidJTable.AccessibleJTable.AccessibleJTableCell. setAccessibleDescription(String s)Sets the accessible description of this object.voidJTree.AccessibleJTree.AccessibleJTreeNode. setAccessibleDescription(String s)Set the accessible description of this object.voidImageIcon.AccessibleImageIcon. setAccessibleIconDescription(String description)Sets the description of the icon.voidJTable.AccessibleJTable.AccessibleJTableCell. setAccessibleName(String s)Sets the localized accessible name of this object.voidJTree.AccessibleJTree.AccessibleJTreeNode. setAccessibleName(String s)Set the localized accessible name of this object.voidAbstractButton. setActionCommand(String actionCommand)Sets the action command for this button.voidButtonModel. setActionCommand(String s)Sets the action command string that gets sent as part of theActionEventwhen the button is triggered.voidJComboBox. setActionCommand(String aCommand)Sets the action command that should be included in the event sent to action listeners.voidJTextField. setActionCommand(String command)Sets the command string used for action events.voidTimer. setActionCommand(String command)Sets the string that will be delivered as the action command inActionEvents fired by this timer.voidJFileChooser. setApproveButtonText(String approveButtonText)Sets the text used in theApproveButtonin theFileChooserUI.voidJFileChooser. setApproveButtonToolTipText(String toolTipText)Sets the tooltip text used in theApproveButton.voidSpringLayout.Constraints. setConstraint(String edgeName, Spring s)Sets the spring controlling the specified edge.voidJEditorPane. setContentType(String type)Sets the type of content that this editor handles.voidJScrollPane. setCorner(String key, Component corner)Adds a child that will appear in one of the scroll panes corners, if there's room.voidImageIcon. setDescription(String description)Sets the description of the image.voidJFileChooser. setDialogTitle(String dialogTitle)Sets the string that goes in theJFileChooserwindow's title bar.voidJEditorPane. setEditorKitForContentType(String type, EditorKit k)Directly sets the editor kit to use for the given type.voidAbstractButton. setLabel(String label)Deprecated.- Replaced bysetText(text)voidJPopupMenu. setLabel(String label)Sets the popup menu's label.static voidUIManager. setLookAndFeel(String className)Loads theLookAndFeelspecified by the given class name, using the current thread's context class loader, and passes it tosetLookAndFeel(LookAndFeel).voidProgressMonitor. setNote(String note)Specifies the additional note that is displayed along with the progress message.voidJEditorPane. setPage(String url)Sets the current URL being displayed.voidJProgressBar. setString(String s)Sets the value of the progress string.voidAbstractButton. setText(String text)Sets the button's text.voidJEditorPane. setText(String t)Sets the text of thisTextComponentto the specified content, which is expected to be in the format of the content type of this editor.voidJLabel. setText(String text)Defines the single line of text this component will display.voidJSpinner.AccessibleJSpinner. setTextContents(String s)Sets the text contents to the specified string.voidJToolTip. setTipText(String tipText)Sets the text to show when the tool tip is displayed.voidJInternalFrame. setTitle(String title)Sets theJInternalFrametitle.voidJTabbedPane. setTitleAt(int index, String title)Sets the title atindextotitlewhich can benull.voidJComponent. setToolTipText(String text)Registers the text to display in a tool tip.voidJTabbedPane. setToolTipTextAt(int index, String toolTipText)Sets the tooltip text atindextotoolTipTextwhich can benull.static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType)Brings up a dialog where the number of choices is determined by theoptionTypeparameter.static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)Brings up a dialog where the number of choices is determined by theoptionTypeparameter, where themessageTypeparameter determines the icon to display.static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)Brings up a dialog with a specified icon, where the number of choices is determined by theoptionTypeparameter.static ColorJColorChooser. showDialog(Component component, String title, Color initialColor)Shows a modal color-chooser dialog and blocks until the dialog is hidden.static ColorJColorChooser. showDialog(Component component, String title, Color initialColor, boolean colorTransparencySelectionEnabled)Shows a modal color-chooser dialog and blocks until the dialog is hidden.intJFileChooser. showDialog(Component parent, String approveButtonText)Pops a custom file chooser dialog with a custom approve button.static StringJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType)Shows a dialog requesting input from the user parented toparentComponentwith the dialog having the titletitleand message typemessageType.static ObjectJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)Brings up a internal dialog panel where the number of choices is determined by theoptionTypeparameter.static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)Brings up an internal dialog panel where the number of choices is determined by theoptionTypeparameter, where themessageTypeparameter determines the icon to display.static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)Brings up an internal dialog panel with a specified icon, where the number of choices is determined by theoptionTypeparameter.static StringJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)Shows an internal dialog requesting input from the user parented toparentComponentwith the dialog having the titletitleand message typemessageType.static ObjectJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)Brings up an internal dialog panel that displays a message using a default icon determined by themessageTypeparameter.static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)Brings up an internal dialog panel displaying a message, specifying all parameters.static intJOptionPane. showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)Brings up an internal dialog panel with a specified icon, where the initial choice is determined by theinitialValueparameter and the number of choices is determined by theoptionTypeparameter.static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType)Brings up a dialog that displays a message using a default icon determined by themessageTypeparameter.static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)Brings up a dialog displaying a message, specifying all parameters.static intJOptionPane. showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)Brings up a dialog with a specified icon, where the initial choice is determined by theinitialValueparameter and the number of choices is determined by theoptionTypeparameter.abstract ObjectJFormattedTextField.AbstractFormatter. stringToValue(String text)Parsestextreturning an arbitrary Object.static DropModeDropMode. valueOf(String name)Returns the enum constant of this type with the specified name.static GroupLayout.AlignmentGroupLayout.Alignment. valueOf(String name)Returns the enum constant of this type with the specified name.static JTable.PrintModeJTable.PrintMode. valueOf(String name)Returns the enum constant of this type with the specified name.static LayoutStyle.ComponentPlacementLayoutStyle.ComponentPlacement. valueOf(String name)Returns the enum constant of this type with the specified name.static RowFilter.ComparisonTypeRowFilter.ComparisonType. valueOf(String name)Returns the enum constant of this type with the specified name.static SortOrderSortOrder. valueOf(String name)Returns the enum constant of this type with the specified name.static SwingWorker.StateValueSwingWorker.StateValue. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.swing with parameters of type String Constructor Description AbstractAction(String name)Creates anActionwith the specified name.AbstractAction(String name, Icon icon)Creates anActionwith the specified name and small icon.DateEditor(JSpinner spinner, String dateFormatPattern)Construct aJSpinnereditor that supports displaying and editing the value of aSpinnerDateModelwith aJFormattedTextField.ImageIcon(byte[] imageData, String description)Creates an ImageIcon from an array of bytes which were read from an image file containing a supported image format, such as GIF, JPEG, or (as of 1.3) PNG.ImageIcon(Image image, String description)Creates an ImageIcon from the image.ImageIcon(String filename)Creates an ImageIcon from the specified file.ImageIcon(String filename, String description)Creates an ImageIcon from the specified file.ImageIcon(URL location, String description)Creates an ImageIcon from the specified URL.JButton(String text)Creates a button with text.JButton(String text, Icon icon)Creates a button with initial text and an icon.JCheckBox(String text)Creates an initially unselected check box with text.JCheckBox(String text, boolean selected)Creates a check box with text and specifies whether or not it is initially selected.JCheckBox(String text, Icon icon)Creates an initially unselected check box with the specified text and icon.JCheckBox(String text, Icon icon, boolean selected)Creates a check box with text and icon, and specifies whether or not it is initially selected.JCheckBoxMenuItem(String text)Creates an initially unselected check box menu item with text.JCheckBoxMenuItem(String text, boolean b)Creates a check box menu item with the specified text and selection state.JCheckBoxMenuItem(String text, Icon icon)Creates an initially unselected check box menu item with the specified text and icon.JCheckBoxMenuItem(String text, Icon icon, boolean b)Creates a check box menu item with the specified text, icon, and selection state.JDialog(Dialog owner, String title)Creates a modeless dialog with the specified title and with the specified owner dialog.JDialog(Dialog owner, String title, boolean modal)Creates a dialog with the specified title, modality and the specified ownerDialog.JDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc)Creates a dialog with the specified title, ownerDialog, modality andGraphicsConfiguration.JDialog(Frame owner, String title)Creates a modeless dialog with the specified title and with the specified owner frame.JDialog(Frame owner, String title, boolean modal)Creates a dialog with the specified title, ownerFrameand modality.JDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc)Creates a dialog with the specified title, ownerFrame, modality andGraphicsConfiguration.JDialog(Window owner, String title)Creates a modeless dialog with the specified title and ownerWindow.JDialog(Window owner, String title, Dialog.ModalityType modalityType)Creates a dialog with the specified title, ownerWindowand modality.JDialog(Window owner, String title, Dialog.ModalityType modalityType, GraphicsConfiguration gc)Creates a dialog with the specified title, ownerWindow, modality andGraphicsConfiguration.JEditorPane(String url)Creates aJEditorPanebased on a string containing a URL specification.JEditorPane(String type, String text)Creates aJEditorPanethat has been initialized to the given text.JFileChooser(String currentDirectoryPath)Constructs aJFileChooserusing the given path.JFileChooser(String currentDirectoryPath, FileSystemView fsv)Constructs aJFileChooserusing the given current directory path andFileSystemView.JFrame(String title)Creates a new, initially invisibleFramewith the specified title.JFrame(String title, GraphicsConfiguration gc)Creates aJFramewith the specified title and the specifiedGraphicsConfigurationof a screen device.JInternalFrame(String title)Creates a non-resizable, non-closable, non-maximizable, non-iconifiableJInternalFramewith the specified title.JInternalFrame(String title, boolean resizable)Creates a non-closable, non-maximizable, non-iconifiableJInternalFramewith the specified title and resizability.JInternalFrame(String title, boolean resizable, boolean closable)Creates a non-maximizable, non-iconifiableJInternalFramewith the specified title, resizability, and closability.JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)Creates a non-iconifiableJInternalFramewith the specified title, resizability, closability, and maximizability.JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)Creates aJInternalFramewith the specified title, resizability, closability, maximizability, and iconifiability.JLabel(String text)Creates aJLabelinstance with the specified text.JLabel(String text, int horizontalAlignment)Creates aJLabelinstance with the specified text and horizontal alignment.JLabel(String text, Icon icon, int horizontalAlignment)Creates aJLabelinstance with the specified text, image, and horizontal alignment.JMenu(String s)Constructs a newJMenuwith the supplied string as its text.JMenu(String s, boolean b)Constructs a newJMenuwith the supplied string as its text and specified as a tear-off menu or not.JMenuItem(String text)Creates aJMenuItemwith the specified text.JMenuItem(String text, int mnemonic)Creates aJMenuItemwith the specified text and keyboard mnemonic.JMenuItem(String text, Icon icon)Creates aJMenuItemwith the specified text and icon.JPasswordField(String text)Constructs a newJPasswordFieldinitialized with the specified text.JPasswordField(String text, int columns)Constructs a newJPasswordFieldinitialized with the specified text and columns.JPasswordField(Document doc, String txt, int columns)Constructs a newJPasswordFieldthat uses the given text storage model and the given number of columns.JPopupMenu(String label)Constructs aJPopupMenuwith the specified title.JRadioButton(String text)Creates an unselected radio button with the specified text.JRadioButton(String text, boolean selected)Creates a radio button with the specified text and selection state.JRadioButton(String text, Icon icon)Creates a radio button that has the specified text and image, and that is initially unselected.JRadioButton(String text, Icon icon, boolean selected)Creates a radio button that has the specified text, image, and selection state.JRadioButtonMenuItem(String text)Creates aJRadioButtonMenuItemwith text.JRadioButtonMenuItem(String text, boolean selected)Creates a radio button menu item with the specified text and selection state.JRadioButtonMenuItem(String text, Icon icon)Creates a radio button menu item with the specified text andIcon.JRadioButtonMenuItem(String text, Icon icon, boolean selected)Creates a radio button menu item that has the specified text, image, and selection state.JTextArea(String text)Constructs a new TextArea with the specified text displayed.JTextArea(String text, int rows, int columns)Constructs a new TextArea with the specified text and number of rows and columns.JTextArea(Document doc, String text, int rows, int columns)Constructs a new JTextArea with the specified number of rows and columns, and the given model.JTextField(String text)Constructs a newTextFieldinitialized with the specified text.JTextField(String text, int columns)Constructs a newTextFieldinitialized with the specified text and columns.JTextField(Document doc, String text, int columns)Constructs a newJTextFieldthat uses the given text storage model and the given number of columns.JToggleButton(String text)Creates an unselected toggle button with the specified text.JToggleButton(String text, boolean selected)Creates a toggle button with the specified text and selection state.JToggleButton(String text, Icon icon)Creates a toggle button that has the specified text and image, and that is initially unselected.JToggleButton(String text, Icon icon, boolean selected)Creates a toggle button with the specified text, image, and selection state.JToolBar(String name)Creates a new tool bar with the specifiedname.JToolBar(String name, int orientation)Creates a new tool bar with a specifiednameandorientation.LookAndFeelInfo(String name, String className)Constructs aUIManagersLookAndFeelInfoobject.NumberEditor(JSpinner spinner, String decimalFormatPattern)Construct aJSpinnereditor that supports displaying and editing the value of aSpinnerNumberModelwith aJFormattedTextField.ProgressMonitor(Component parentComponent, Object message, String note, int min, int max)Constructs a graphic object that shows progress, typically by filling in a rectangular bar as the process nears completion.ProxyLazyValue(String c)Creates aLazyValuewhich will construct an instance when asked.ProxyLazyValue(String c, Object[] o)Creates aLazyValuewhich will construct an instance when asked.ProxyLazyValue(String c, String m)Creates aLazyValuewhich will construct an instance when asked.ProxyLazyValue(String c, String m, Object[] o)Creates aLazyValuewhich will construct an instance when asked.TransferHandler(String property)Constructs a transfer handler that can transfer a Java Bean property from one component to another via the clipboard or a drag and drop operation.UnsupportedLookAndFeelException(String s)Constructs an UnsupportedLookAndFeelException object. -
Uses of String in javax.swing.border
Fields in javax.swing.border declared as String Modifier and Type Field Description protected StringTitledBorder. titleThe title the border should display.Methods in javax.swing.border that return String Modifier and Type Method Description StringTitledBorder. getTitle()Returns the title of the titled border.Methods in javax.swing.border with parameters of type String Modifier and Type Method Description voidTitledBorder. setTitle(String title)Sets the title of the titled border.Constructors in javax.swing.border with parameters of type String Constructor Description TitledBorder(String title)Creates a TitledBorder instance.TitledBorder(Border border, String title)Creates a TitledBorder instance with the specified border and title.TitledBorder(Border border, String title, int titleJustification, int titlePosition)Creates a TitledBorder instance with the specified border, title, title-justification, and title-position.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. -
Uses of String in javax.swing.colorchooser
Fields in javax.swing.colorchooser declared as String Modifier and Type Field Description static StringAbstractColorChooserPanel. TRANSPARENCY_ENABLED_PROPERTYIdentifies that the transparency of the color (alpha value) can be selectedMethods in javax.swing.colorchooser that return String Modifier and Type Method Description abstract StringAbstractColorChooserPanel. getDisplayName()Returns a string containing the display name of the panel. -
Uses of String in javax.swing.event
Methods in javax.swing.event that return String Modifier and Type Method Description StringHyperlinkEvent. getDescription()Get the description of the link as a string.StringInternalFrameEvent. paramString()Returns a parameter string identifying this event.StringDocumentEvent.EventType. toString()Converts the type to a string.StringEventListenerList. toString()Returns a string representation of the EventListenerList.StringHyperlinkEvent.EventType. toString()Converts the type to a string.StringListDataEvent. toString()Returns a string representation of this ListDataEvent.StringListSelectionEvent. toString()Returns aStringthat displays and identifies this object's properties.StringTreeModelEvent. toString()Returns a string that displays and identifies this object's properties.Methods in javax.swing.event with parameters of type String Modifier and Type Method Description static RowSorterEvent.TypeRowSorterEvent.Type. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.swing.event with parameters of type String Constructor Description HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc)Creates a new object representing a hypertext link event.HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement)Creates a new object representing a hypertext link event.HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement, InputEvent inputEvent)Creates a new object representing a hypertext link event. -
Uses of String in javax.swing.filechooser
Methods in javax.swing.filechooser that return String Modifier and Type Method Description abstract StringFileFilter. getDescription()The description of this filter.StringFileNameExtensionFilter. getDescription()The description of this filter.StringFileView. getDescription(File f)A human readable description of the file.String[]FileNameExtensionFilter. getExtensions()Returns the set of file name extensions files are tested against.StringFileView. getName(File f)The name of the file.StringFileSystemView. getSystemDisplayName(File f)Name of a file, directory, or folder as it would be displayed in a system file browser.StringFileSystemView. getSystemTypeDescription(File f)Type description for a file, directory, or folder as it would be displayed in a system file browser.StringFileView. getTypeDescription(File f)A human readable description of the type of the file.StringFileNameExtensionFilter. toString()Returns a string representation of theFileNameExtensionFilter.Methods in javax.swing.filechooser with parameters of type String Modifier and Type Method Description FileFileSystemView. createFileObject(File dir, String filename)Returns a File object constructed in dir from the given filename.FileFileSystemView. createFileObject(String path)Returns a File object constructed from the given path string.FileFileSystemView. getChild(File parent, String fileName)Constructors in javax.swing.filechooser with parameters of type String Constructor Description FileNameExtensionFilter(String description, String... extensions)Creates aFileNameExtensionFilterwith the specified description and file name extensions. -
Uses of String in javax.swing.plaf
Methods in javax.swing.plaf that return String Modifier and Type Method Description abstract StringFileChooserUI. getApproveButtonText(JFileChooser fc)Returns approve button text.abstract StringFileChooserUI. getDialogTitle(JFileChooser fc)Returns the dialog title.StringTextUI. getToolTipText(JTextComponent t, Point pt)Deprecated.replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)StringTextUI. getToolTipText2D(JTextComponent t, Point2D pt)Returns the string to be used as the tooltip at the passed in location.Methods in javax.swing.plaf with parameters of type String Modifier and Type Method Description voidLayerUI. addPropertyChangeListener(String propertyName, PropertyChangeListener listener)Adds a PropertyChangeListener to the listener list for a specific property.protected voidLayerUI. firePropertyChange(String propertyName, Object oldValue, Object newValue)Support for reporting bound property changes for Object properties.PropertyChangeListener[]LayerUI. getPropertyChangeListeners(String propertyName)Returns an array of all the listeners which have been associated with the named property.voidLayerUI. removePropertyChangeListener(String propertyName, PropertyChangeListener listener)Removes aPropertyChangeListenerfrom the listener list for a specific property.Constructors in javax.swing.plaf with parameters of type String Constructor Description FontUIResource(String name, int style, int size)Constructs aFontUIResource.TitledBorderUIResource(String title)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)Constructs aTitledBorderUIResource. -
Uses of String in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as String Modifier and Type Field Description protected StringBasicMenuItemUI. acceleratorDelimiterAccelerator delimiter string, such as'+'in'Ctrl+C'.protected StringBasicFileChooserUI. cancelButtonTextCancel button textprotected StringBasicFileChooserUI. cancelButtonToolTipTextCancel button tool tip textprotected static StringBasicInternalFrameTitlePane. CLOSE_CMDThe close button text property.protected StringBasicToolBarUI. constraintBeforeFloatingThe layout before floating.protected StringBasicFileChooserUI. directoryOpenButtonTextThe label text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.protected StringBasicFileChooserUI. directoryOpenButtonToolTipTextThe tooltip text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.static StringBasicHTML. documentBaseKeyKey stored as a client property to indicate the base that relative references are resolved against.protected StringBasicFileChooserUI. helpButtonTextHelp button textprotected StringBasicFileChooserUI. helpButtonToolTipTextHelp button tool tip textprotected static StringBasicInternalFrameTitlePane. ICONIFY_CMDThe minimize button text property.protected static StringBasicInternalFrameTitlePane. MAXIMIZE_CMDThe maximize button text property.protected static StringBasicInternalFrameTitlePane. MOVE_CMDThe move button text property.protected static StringBasicSplitPaneUI. NON_CONTINUOUS_DIVIDERThe divider used for non-continuous layout is added to the split pane with this object.protected StringBasicFileChooserUI. openButtonTextOpen button textprotected StringBasicFileChooserUI. openButtonToolTipTextOpen button tool tip textstatic StringBasicHTML. propertyKeyKey to use for the html renderer when stored as a client property of a JComponent.protected static StringBasicInternalFrameTitlePane. RESTORE_CMDThe restore button text property.protected StringBasicFileChooserUI. saveButtonTextSave button textprotected StringBasicFileChooserUI. saveButtonToolTipTextSave button tool tip textprotected static StringBasicInternalFrameTitlePane. SIZE_CMDThe size button text property.protected StringBasicFileChooserUI. updateButtonTextUpdate button textprotected StringBasicFileChooserUI. updateButtonToolTipTextUpdate button tool tip textMethods in javax.swing.plaf.basic that return String Modifier and Type Method Description StringBasicFileChooserUI. getApproveButtonToolTipText(JFileChooser fc)Returns the approve button tool tip.static StringBasicGraphicsUtils. getClippedString(JComponent c, FontMetrics fm, String string, int availTextWidth)Clips the passed in string to the space provided.StringBasicFileChooserUI. getDialogTitle(JFileChooser fc)Returns the title of this dialogStringBasicFileChooserUI. getDirectoryName()Returns the directory name.StringBasicFileChooserUI. getFileName()Returns the file name.protected StringBasicTextUI. getKeymapName()Fetches the name of the keymap that will be installed/used by default for this UI.protected StringBasicButtonUI. getPropertyPrefix()Returns the property prefix.protected StringBasicEditorPaneUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.protected StringBasicFormattedTextFieldUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.protected StringBasicMenuItemUI. getPropertyPrefix()Returns a property prefix.protected StringBasicPasswordFieldUI. getPropertyPrefix()Fetches the name used as a key to look up properties through the UIManager.protected StringBasicTextAreaUI. getPropertyPrefix()Fetches the name used as a key to look up properties through the UIManager.protected StringBasicTextFieldUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.protected StringBasicTextPaneUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.protected abstract StringBasicTextUI. getPropertyPrefix()Gets the name used as a key to look up properties through the UIManager.protected StringBasicInternalFrameTitlePane. getTitle(String text, FontMetrics fm, int availTextWidth)Returns the title.StringBasicTextUI. getToolTipText(JTextComponent t, Point pt)Returns the string to be used as the tooltip at the passed in location.protected StringBasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)Forwards the call to SwingUtilities.layoutCompoundLabel().Methods in javax.swing.plaf.basic with parameters of type String Modifier and Type Method Description voidBasicSplitPaneUI.BasicHorizontalLayoutManager. addLayoutComponent(String place, Component component)Adds the component at place.protected voidBasicOptionPaneUI. burstStringInto(Container c, String d, int maxll)Recursively creates newJLabelinstances to representd.static ViewBasicHTML. createHTMLView(JComponent c, String html)Create an html renderer for the given component and string of html.static voidBasicGraphicsUtils. drawString(Graphics g, String text, int underlinedChar, int x, int y)Draw a string with the graphicsgat location (x,y) just likeg.drawStringwould.static voidBasicGraphicsUtils. drawString(JComponent c, Graphics2D g, String string, float x, float y)Draws the given string at the specified location using text properties and anti-aliasing hints from the provided component.static voidBasicGraphicsUtils. drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)Draw a string with the graphicsgat location (x,y) just likeg.drawStringwould.static voidBasicGraphicsUtils. drawStringUnderlineCharAt(JComponent c, Graphics2D g, String string, int underlinedIndex, float x, float y)Draws the given string at the specified location underlining the specified character.protected voidBasicDirectoryModel. firePropertyChange(String propertyName, Object oldValue, Object newValue)Support for reporting bound property changes for boolean properties.static StringBasicGraphicsUtils. getClippedString(JComponent c, FontMetrics fm, String string, int availTextWidth)Clips the passed in string to the space provided.protected PointBasicProgressBarUI. getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)Designate the place where the progress string will be painted.static floatBasicGraphicsUtils. getStringWidth(JComponent c, FontMetrics fm, String string)Returns the width of the passed in string using text properties and anti-aliasing hints from the provided component.protected StringBasicInternalFrameTitlePane. getTitle(String text, FontMetrics fm, int availTextWidth)Returns the title.static booleanBasicHTML. isHTMLString(String s)Check the given string to see if it should trigger the html rendering logic in a non-text component that supports html rendering.protected StringBasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)Forwards the call to SwingUtilities.layoutCompoundLabel().protected voidBasicTabbedPaneUI. layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)Laysout a label.protected voidBasicLookAndFeel. loadSystemColors(UIDefaults table, String[] systemColors, boolean useNative)Populatestablewith thename-colorpairs insystemColors.protected voidBasicLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)Paint clippedText at textX, textY with background.lighter() and then shifted down and to the right by one pixel with background.darker().protected voidBasicLabelUI. paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)Paint clippedText at textX, textY with the labels foreground color.protected voidBasicButtonUI. paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)Method which renders the text of the current button.protected voidBasicButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)Method which renders the text of the current button.protected voidBasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)Renders the text of the current menu item.protected voidBasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)Paints text.voidBasicFileChooserUI. setDirectoryName(String dirname)Sets the directory name.voidBasicFileChooserUI. setFileName(String filename)Sets the file name.static voidBasicHTML. updateRenderer(JComponent c, String text)Stash the HTML render for the given text into the client properties of the given JComponent.Constructors in javax.swing.plaf.basic with parameters of type String Constructor Description TreeCancelEditingAction(String name)Constructs a new instance ofTreeCancelEditingAction.TreeHomeAction(int direction, String name)Constructs a new instance ofTreeHomeAction.TreeIncrementAction(int direction, String name)Constructs a new instance ofTreeIncrementAction.TreePageAction(int direction, String name)Constructs a new instance ofTreePageAction.TreeToggleAction(String name)Constructs a new instance ofTreeToggleAction.TreeTraverseAction(int direction, String name)Constructs a new instance ofTreeTraverseAction. -
Uses of String in javax.swing.plaf.metal
Fields in javax.swing.plaf.metal declared as String Modifier and Type Field Description static StringMetalScrollBarUI. FREE_STANDING_PROPThe propertyJScrollBar.isFreeStanding.protected static StringMetalInternalFrameUI. IS_PALETTEThe propertyJInternalFrame.isPalette.protected StringMetalSliderUI. SLIDER_FILLProperty forJSlider.isFilled.Methods in javax.swing.plaf.metal that return String Modifier and Type Method Description StringMetalToolTipUI. getAcceleratorString()Returns the accelerator string.StringMetalLookAndFeel. getDescription()Returns a short description of this look and feel.StringMetalFileChooserUI. getDirectoryName()Returns the directory name.StringMetalLookAndFeel. getID()Returns an identifier for this look and feel.StringDefaultMetalTheme. getName()Returns the name of this theme.StringMetalLookAndFeel. getName()Returns the name of this look and feel.abstract StringMetalTheme. getName()Returns the name of this theme.StringOceanTheme. getName()Return the name of this theme, "Ocean".Methods in javax.swing.plaf.metal with parameters of type String Modifier and Type Method Description protected voidMetalLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.voidMetalFileChooserUI. setDirectoryName(String dirname)Sets the directory name. -
Uses of String in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return String Modifier and Type Method Description StringMultiFileChooserUI. getApproveButtonText(JFileChooser a)Invokes thegetApproveButtonTextmethod on each UI handled by this object.StringMultiLookAndFeel. getDescription()Returns a one-line description of this look and feel.StringMultiFileChooserUI. getDialogTitle(JFileChooser a)Invokes thegetDialogTitlemethod on each UI handled by this object.StringMultiLookAndFeel. getID()Returns a string, suitable for use by applications/services, that identifies this look and feel.StringMultiLookAndFeel. getName()Returns a string, suitable for use in menus, that identifies this look and feel.StringMultiTextUI. getToolTipText(JTextComponent a, Point b)Invokes thegetToolTipTextmethod on each UI handled by this object. -
Uses of String in javax.swing.plaf.nimbus
Fields in javax.swing.plaf.nimbus declared as String Modifier and Type Field Description static StringNimbusStyle. LARGE_KEYLarge keystatic StringNimbusStyle. MINI_KEYMini keystatic StringNimbusStyle. SMALL_KEYSmall keyMethods in javax.swing.plaf.nimbus that return String Modifier and Type Method Description StringNimbusLookAndFeel. getDescription()Returns a textual description of this look and feel.StringNimbusLookAndFeel. getID()Return a string that identifies this look and feel.StringNimbusLookAndFeel. getName()Return a short string that identifies this look and feel.Methods in javax.swing.plaf.nimbus with parameters of type String Modifier and Type Method Description protected ColorAbstractRegionPainter. decodeColor(String key, float hOffset, float sOffset, float bOffset, int aOffset)Decodes and returns a color, which is derived from a base color in UI defaults.protected ColorAbstractRegionPainter. getComponentColor(JComponent c, String property, Color defaultColor, float saturationOffset, float brightnessOffset, int alphaOffset)Get a color property from the given JComponent.ColorNimbusLookAndFeel. getDerivedColor(String uiDefaultParentName, float hOffset, float sOffset, float bOffset, int aOffset, boolean uiResource)Get a derived color, derived colors are shared instances and is color value will change when its parent UIDefault color changes.voidNimbusLookAndFeel. register(Region region, String prefix)Registers a third party component with the NimbusLookAndFeel.static AbstractRegionPainter.PaintContext.CacheModeAbstractRegionPainter.PaintContext.CacheMode. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.swing.plaf.nimbus with parameters of type String Constructor Description State(String name)Create a new custom State. -
Uses of String in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return String Modifier and Type Method Description StringSynthLookAndFeel. getDescription()Returns a textual description of SynthLookAndFeel.StringSynthLookAndFeel. getID()Return a string that identifies this look and feel.StringRegion. getName()Returns the name of the region.StringSynthLookAndFeel. getName()Return a short string that identifies this look and feel.protected StringSynthFormattedTextFieldUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.protected StringSynthPasswordFieldUI. getPropertyPrefix()Fetches the name used as a key to look up properties through the UIManager.protected StringSynthTextPaneUI. getPropertyPrefix()Fetches the name used as a key to lookup properties through the UIManager.StringSynthStyle. getString(SynthContext context, Object key, String defaultValue)Convenience method to get a specific style property whose value is a String.StringSynthGraphicsUtils. layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)Lays out text and an icon returning, by reference, the location to place the icon and text.StringColorType. toString()Returns the textual description of thisColorType.StringRegion. toString()Returns the name of the Region.Methods in javax.swing.plaf.synth with parameters of type String Modifier and Type Method Description intSynthGraphicsUtils. computeStringWidth(SynthContext ss, Font font, FontMetrics metrics, String text)Returns the size of the passed in string.DimensionSynthGraphicsUtils. getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the maximum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the minimum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the preferred size needed to properly render an icon and text.StringSynthStyle. getString(SynthContext context, Object key, String defaultValue)Convenience method to get a specific style property whose value is a String.StringSynthGraphicsUtils. layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)Lays out text and an icon returning, by reference, the location to place the icon and text.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex)Paints text at the specified location.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)Paints text at the specified location.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)Paints an icon and text.protected voidSynthProgressBarUI. paintText(SynthContext context, Graphics g, String title)Paints the component's text.Constructors in javax.swing.plaf.synth with parameters of type String Constructor Description ColorType(String description)Creates a new ColorType with the specified description.Region(String name, String ui, boolean subregion)Creates a Region with the specified name. -
Uses of String in javax.swing.table
Fields in javax.swing.table declared as String Modifier and Type Field Description static StringTableColumn. CELL_RENDERER_PROPERTYObsolete as of Java 2 platform v1.3.static StringTableColumn. COLUMN_WIDTH_PROPERTYObsolete as of Java 2 platform v1.3.static StringTableColumn. HEADER_RENDERER_PROPERTYObsolete as of Java 2 platform v1.3.static StringTableColumn. HEADER_VALUE_PROPERTYObsolete as of Java 2 platform v1.3.Methods in javax.swing.table that return String Modifier and Type Method Description StringAbstractTableModel. getColumnName(int column)Returns a default name for the column using spreadsheet conventions: A, B, C, ...StringDefaultTableModel. getColumnName(int column)Returns the column name.StringTableModel. getColumnName(int columnIndex)Returns the name of the column atcolumnIndex.StringJTableHeader. getToolTipText(MouseEvent event)Allows the renderer's tips to be used if there is text set.StringJTableHeader. getUIClassID()Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.protected StringJTableHeader. paramString()Returns a string representation of thisJTableHeader.abstract StringTableStringConverter. toString(TableModel model, int row, int column)Returns the string representation of the value at the specified location.Methods in javax.swing.table with parameters of type String Modifier and Type Method Description intAbstractTableModel. findColumn(String columnName)Returns a column given its name.voidDefaultTableCellRenderer. firePropertyChange(String propertyName, boolean oldValue, boolean newValue)Overridden for performance reasons.protected voidDefaultTableCellRenderer. firePropertyChange(String propertyName, Object oldValue, Object newValue)Overridden for performance reasons. -
Uses of String in javax.swing.text
Fields in javax.swing.text declared as String Modifier and Type Field Description StringJTextComponent.KeyBinding. actionNameThe name of the action for the key.static StringDefaultEditorKit. backwardActionName of the Action for moving the caret logically backward one position.protected static StringAbstractDocument. BAD_LOCATIONError message to indicate a bad location.static StringDefaultEditorKit. beepActionName of the action to create a beep.static StringDefaultEditorKit. beginActionName of theActionfor moving the caret to the beginning of the document.static StringDefaultEditorKit. beginLineActionName of theActionfor moving the caret to the beginning of a line.static StringDefaultEditorKit. beginParagraphActionName of theActionfor moving the caret to the beginning of a paragraph.static StringDefaultEditorKit. beginWordActionName of theActionfor moving the caret to the beginning of a word.static StringAbstractDocument. BidiElementNameName of elements used to hold a unidirectional runstatic StringStyleConstants. ComponentElementNameName of elements used to represent components.static StringAbstractDocument. ContentElementNameName of elements used to represent contentstatic StringDefaultEditorKit. copyActionName of the action to copy the selected region and place the contents into the system clipboard.static StringDefaultEditorKit. cutActionName of the action to cut the selected region and place the contents into the system clipboard.static StringJTextComponent. DEFAULT_KEYMAPThe default keymap that will be shared by allJTextComponentinstances unless they have had a different keymap set.static StringStyleContext. DEFAULT_STYLEThe name given to the default logical style attached to paragraphs.static StringDefaultEditorKit. defaultKeyTypedActionName of the action that is executed by default if a key typed event is received and there is no keymap entry.static StringDefaultEditorKit. deleteNextCharActionName of the action to delete the character of content that follows the current caret position.static StringDefaultEditorKit. deleteNextWordActionName of the action to delete the word that follows the beginning of the selection.static StringDefaultEditorKit. deletePrevCharActionName of the action to delete the character of content that precedes the current caret position.static StringDefaultEditorKit. deletePrevWordActionName of the action to delete the word that precedes the beginning of the selection.static StringDefaultEditorKit. downActionName of the Action for moving the caret logically downward one position.static StringAbstractDocument. ElementNameAttributeName of the attribute used to specify element names.static StringDefaultEditorKit. endActionName of theActionfor moving the caret to the end of the document.static StringDefaultEditorKit. endLineActionName of theActionfor moving the caret to the end of a line.static StringDefaultEditorKit. EndOfLineStringPropertyWhen reading a document if a CRLF is encountered a property with this name is added and the value will be "\r\n".static StringDefaultEditorKit. endParagraphActionName of theActionfor moving the caret to the end of a paragraph.static StringDefaultEditorKit. endWordActionName of the Action for moving the caret to the end of a word.static StringJTextComponent. FOCUS_ACCELERATOR_KEYThe bound property name for the focus accelerator.static StringDefaultEditorKit. forwardActionName of the Action for moving the caret logically forward one position.static StringStyleConstants. IconElementNameName of elements used to represent icons.static StringDefaultEditorKit. insertBreakActionName of the action to place a line/paragraph break into the document.static StringDefaultEditorKit. insertContentActionName of the action to place content into the associated document.static StringDefaultEditorKit. insertTabActionName of the action to place a tab character into the document.static StringPlainDocument. lineLimitAttributeName of the attribute that specifies the maximum length of a line, if there is a maximum length.static StringDefaultEditorKit. nextWordActionName of theActionfor moving the caret to the beginning of the next word.static StringDefaultEditorKit. pageDownActionName of the action to page down vertically.static StringDefaultEditorKit. pageUpActionName of the action to page up vertically.static StringAbstractDocument. ParagraphElementNameName of elements used to represent paragraphsstatic StringDefaultEditorKit. pasteActionName of the action to paste the contents of the system clipboard into the selected region, or before the caret if nothing is selected.static StringDefaultEditorKit. previousWordActionName of theActionfor moving the caret to the beginning of the previous word.static StringDefaultEditorKit. readOnlyActionName of the action to set the editor into read-only mode.static StringAbstractDocument. SectionElementNameName of elements used to hold sections (lines/paragraphs).static StringDefaultEditorKit. selectAllActionName of the Action for selecting the entire documentstatic StringDefaultEditorKit. selectionBackwardActionName of the Action for extending the selection by moving the caret logically backward one position.static StringDefaultEditorKit. selectionBeginActionName of theActionfor moving the caret to the beginning of the document.static StringDefaultEditorKit. selectionBeginLineActionName of theActionfor moving the caret to the beginning of a line, extending the selection.static StringDefaultEditorKit. selectionBeginParagraphActionName of theActionfor moving the caret to the beginning of a paragraph, extending the selection.static StringDefaultEditorKit. selectionBeginWordActionName of theActionfor moving the caret to the beginning of a word, extending the selection.static StringDefaultEditorKit. selectionDownActionName of the Action for moving the caret logically downward one position, extending the selection.static StringDefaultEditorKit. selectionEndActionName of the Action for moving the caret to the end of the document.static StringDefaultEditorKit. selectionEndLineActionName of theActionfor moving the caret to the end of a line, extending the selection.static StringDefaultEditorKit. selectionEndParagraphActionName of theActionfor moving the caret to the end of a paragraph, extending the selection.static StringDefaultEditorKit. selectionEndWordActionName of the Action for moving the caret to the end of a word, extending the selection.static StringDefaultEditorKit. selectionForwardActionName of the Action for extending the selection by moving the caret logically forward one position.static StringDefaultEditorKit. selectionNextWordActionName of theActionfor moving the selection to the beginning of the next word, extending the selection.static StringDefaultEditorKit. selectionPreviousWordActionName of theActionfor moving the selection to the beginning of the previous word, extending the selection.static StringDefaultEditorKit. selectionUpActionName of the Action for moving the caret logically upward one position, extending the selection.static StringDefaultEditorKit. selectLineActionName of the Action for selecting a line around the caret.static StringDefaultEditorKit. selectParagraphActionName of the Action for selecting a paragraph around the caret.static StringDefaultEditorKit. selectWordActionName of the Action for selecting a word around the caret.static StringDocument. StreamDescriptionPropertyThe property name for the description of the stream used to initialize the document.static StringPlainDocument. tabSizeAttributeName of the attribute that specifies the tab size for tabs contained in the content.static StringDocument. TitlePropertyThe property name for the title of the document, if there is one.static StringDefaultEditorKit. upActionName of the Action for moving the caret logically upward one position.static StringDefaultEditorKit. writableActionName of the action to set the editor into writeable mode.Methods in javax.swing.text that return String Modifier and Type Method Description StringJTextComponent.AccessibleJTextComponent. getAccessibleActionDescription(int i)Returns a description of the specified action of the object.StringJTextComponent.AccessibleJTextComponent. getAfterIndex(int part, int index)Returns the String after a given index.StringJTextComponent.AccessibleJTextComponent. getAtIndex(int part, int index)Returns the String at a given index.StringJTextComponent.AccessibleJTextComponent. getBeforeIndex(int part, int index)Returns the String before a given index.StringChangedCharSetException. getCharSetSpec()Returns the char set specification.StringDefaultEditorKit. getContentType()Gets the MIME type of the data that this kit represents support for.abstract StringEditorKit. getContentType()Gets the MIME type of the data that this kit represents support for.static StringStyleConstants. getFontFamily(AttributeSet a)Gets the font family setting from the attribute list.StringMaskFormatter. getInvalidCharacters()Returns the characters that are not valid for input.StringAbstractWriter. getLineSeparator()Returns the string used to represent newlines.StringMaskFormatter. getMask()Returns the formatting mask.StringAbstractDocument.AbstractElement. getName()Gets the name of the element.StringAbstractDocument.BranchElement. getName()Gets the element name.StringAbstractDocument.LeafElement. getName()Gets the element name.StringDefaultStyledDocument.SectionElement. getName()Gets the name of the element.StringElement. getName()Fetches the name of the element.StringKeymap. getName()Fetches the name of the set of key-bindings.StringStyle. getName()Fetches the name of the style.StringStyleContext.NamedStyle. getName()Fetches the name of the style.StringMaskFormatter. getPlaceholder()Returns the String to use if the value does not completely fill in the mask.StringAbstractDocument.DefaultDocumentEvent. getPresentationName()Provides a localized, human readable description of this edit suitable for use in, say, a change log.StringAbstractDocument.DefaultDocumentEvent. getRedoPresentationName()Provides a localized, human readable description of the redoable form of this edit, e.g. for use as a Redo menu item.StringJTextComponent.AccessibleJTextComponent. getSelectedText()Returns the portion of the text that is selected.StringJTextComponent. getSelectedText()Returns the selected text contained in thisTextComponent.StringAbstractDocument.Content. getString(int where, int len)Fetches a string of characters contained in the sequence.StringGapContent. getString(int where, int len)Retrieves a portion of the content.StringStringContent. getString(int where, int len)Retrieves a portion of the content.StringAbstractDocument. getText(int offset, int length)Gets a sequence of text from the document.protected StringAbstractWriter. getText(Element elem)Returns the text associated with the element.StringDocument. getText(int offset, int length)Fetches the text contained within the given portion of the document.StringJTextComponent. getText()Returns the text contained in thisTextComponent.StringJTextComponent. getText(int offs, int len)Fetches a portion of the text represented by the component.StringJTextComponent.AccessibleJTextComponent. getTextRange(int startIndex, int endIndex)Returns the text string between two indices.StringJTextComponent. getToolTipText(MouseEvent event)Returns the string to be used as the tooltip forevent.StringView. getToolTipText(float x, float y, Shape allocation)Returns the tooltip text at the specified location.StringAbstractDocument.DefaultDocumentEvent. getUndoPresentationName()Provides a localized, human readable description of the undoable form of this edit, e.g. for use as an Undo menu item.StringMaskFormatter. getValidCharacters()Returns the valid characters that can be input.protected StringJTextComponent. paramString()Returns a string representation of thisJTextComponent.StringAbstractDocument.BranchElement. toString()Converts the element to a string.StringAbstractDocument.DefaultDocumentEvent. toString()Returns a string description of the change event.StringAbstractDocument.LeafElement. toString()Converts the element to a string.StringDefaultStyledDocument.ElementSpec. toString()Converts the element to a string.StringJTextComponent.DropLocation. toString()Returns a string representation of this drop location.StringPosition.Bias. toString()string representationStringSegment. toString()Converts a segment into a String.StringSimpleAttributeSet. toString()Converts the attribute set to a String.StringStyleConstants. toString()Returns the string representation.StringStyleContext.NamedStyle. toString()Converts the style to a string.StringStyleContext.SmallAttributeSet. toString()Returns a string showing the key/value pairs.StringStyleContext. toString()Converts a StyleContext to a String.StringTabSet. toString()Returns the string representation of the set of tabs.StringDefaultFormatter. valueToString(Object value)Converts the passed in Object into a String by way of thetoStringmethod.StringInternationalFormatter. valueToString(Object value)Returns a String representation of the Objectvalue.StringMaskFormatter. valueToString(Object value)Returns a String representation of the Objectvaluebased on the mask.Methods in javax.swing.text with parameters of type String Modifier and Type Method Description static KeymapJTextComponent. addKeymap(String nm, Keymap parent)Adds a new keymap into the keymap hierarchy.StyleDefaultStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.StyleStyleContext. addStyle(String nm, Style parent)Adds a new style into the style hierarchy.StyleStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.FontStyleContext. getFont(String family, int style, int size)Gets a new font.static KeymapJTextComponent. getKeymap(String nm)Fetches a named keymap previously added to the document.StyleDefaultStyledDocument. getStyle(String nm)Fetches a named style previously added.StyleStyleContext. getStyle(String nm)Fetches a named style previously added to the documentStyleStyledDocument. getStyle(String nm)Fetches a named style previously added.UndoableEditAbstractDocument.Content. insertString(int where, String str)Inserts a string of characters into the sequence.voidAbstractDocument. insertString(int offs, String str, AttributeSet a)Inserts some content into the document.voidDocument. insertString(int offset, String str, AttributeSet a)Inserts a string of content.abstract voidDocumentFilter.FilterBypass. insertString(int offset, String string, AttributeSet attr)Inserts the specified text, bypassing the DocumentFilter.voidDocumentFilter. insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr)Invoked prior to insertion of text into the specified Document.UndoableEditGapContent. insertString(int where, String str)Inserts a string into the content.voidPlainDocument. insertString(int offs, String str, AttributeSet a)Inserts some content into the document.UndoableEditStringContent. insertString(int where, String str)Inserts a string into the content.voidJTextComponent.AccessibleJTextComponent. insertTextAtIndex(int index, String s)Inserts the specified string at the given indexstatic KeymapJTextComponent. removeKeymap(String nm)Removes a named keymap previously added to the document.voidDefaultStyledDocument. removeStyle(String nm)Removes a named style previously added to the document.voidStyleContext. removeStyle(String nm)Removes a named style previously added to the document.voidStyledDocument. removeStyle(String nm)Removes a named style previously added to the document.voidAbstractDocument. replace(int offset, int length, String text, AttributeSet attrs)Deletes the region of text fromoffsettooffset + length, and replaces it withtext.abstract voidDocumentFilter.FilterBypass. replace(int offset, int length, String string, AttributeSet attrs)Deletes the region of text fromoffsettooffset + length, and replaces it withtext.voidDocumentFilter. replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)Invoked prior to replacing a region of text in the specified Document.voidJTextComponent. replaceSelection(String content)Replaces the currently selected content with new content represented by the given string.voidJTextComponent.AccessibleJTextComponent. replaceText(int startIndex, int endIndex, String s)Replaces the text between two indices with the specified string.static voidStyleConstants. setFontFamily(MutableAttributeSet a, String fam)Sets the font attribute.voidMaskFormatter. setInvalidCharacters(String invalidCharacters)Allows for further restricting of the characters that can be input.voidAbstractWriter. setLineSeparator(String value)Sets the String used to represent newlines.voidMaskFormatter. setMask(String mask)Sets the mask dictating the legal characters.voidStyleContext.NamedStyle. setName(String name)Changes the name of the style.voidMaskFormatter. setPlaceholder(String placeholder)Sets the string to use if the value does not completely fill in the mask.voidJTextComponent. setText(String t)Sets the text of thisTextComponentto the specified text.voidJTextComponent.AccessibleJTextComponent. setTextContents(String s)Sets the text contents to the specified string.voidMaskFormatter. setValidCharacters(String validCharacters)Allows for further restricting of the characters that can be input.ObjectDefaultFormatter. stringToValue(String string)Converts the passed in String into an instance ofgetValueClassby way of the constructor that takes a String argument.ObjectInternationalFormatter. stringToValue(String text)Returns theObjectrepresentation of theStringtext.ObjectMaskFormatter. stringToValue(String value)Parses the text, returning the appropriate Object representation of the Stringvalue.protected voidAbstractWriter. write(String content)Writes out a string.Constructors in javax.swing.text with parameters of type String Constructor Description AlignmentAction(String nm, int a)Creates a new AlignmentAction.BadLocationException(String s, int offs)Creates a new BadLocationException object.ChangedCharSetException(String charSetSpec, boolean charSetKey)Constructs aChangedCharSetException.FontFamilyAction(String nm, String family)Creates a new FontFamilyAction.FontSizeAction(String nm, int size)Creates a new FontSizeAction.ForegroundAction(String nm, Color fg)Creates a new ForegroundAction.KeyBinding(KeyStroke key, String actionName)Creates a new key binding.MaskFormatter(String mask)Creates aMaskFormatterwith the specified mask.NamedStyle(String name, Style parent)Creates a new named style.StyledTextAction(String nm)Creates a new StyledTextAction from a string action name.TextAction(String name)Creates a new JTextAction object. -
Uses of String in javax.swing.text.html
Fields in javax.swing.text.html declared as String Modifier and Type Field Description static StringHTMLDocument. AdditionalCommentsDocument property key value.static StringHTMLEditorKit. BOLD_ACTIONThe bold action identifierstatic StringHTMLEditorKit. COLOR_ACTIONThe Color choice action identifier The color is passed as an argumentstatic StringHTMLEditorKit. DEFAULT_CSSDefault Cascading Style Sheet file that sets up the tag views.static StringHTMLEditorKit. FONT_CHANGE_BIGGERThe font size increase to next value action identifierstatic StringHTMLEditorKit. FONT_CHANGE_SMALLERThe font size decrease to next value action identifierprotected StringHTMLEditorKit.InsertHTMLTextAction. htmlHTML to insert.static StringHTMLEditorKit. IMG_ALIGN_BOTTOMAlign images at the bottom.static StringHTMLEditorKit. IMG_ALIGN_MIDDLEAlign images in the middle.static StringHTMLEditorKit. IMG_ALIGN_TOPAlign images at the top.static StringHTMLEditorKit. IMG_BORDERAlign images at the border.static StringHTMLEditorKit. ITALIC_ACTIONThe italic action identifierstatic StringHTMLEditorKit. LOGICAL_STYLE_ACTIONThe logical style choice action identifier The logical style is passed in as an argumentstatic StringHTML. NULL_ATTRIBUTE_VALUENULL_ATTRIBUTE_VALUEused in cases where the value for the attribute has not been specified.static StringHTMLEditorKit. PARA_INDENT_LEFTThe paragraph left indent action identifierstatic StringHTMLEditorKit. PARA_INDENT_RIGHTThe paragraph right indent action identifierstatic StringFormView. RESETDeprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic StringFormView. SUBMITDeprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextMethods in javax.swing.text.html that return String Modifier and Type Method Description StringImageView. getAltText()Returns the text to display if the image cannot be loaded.StringHTMLEditorKit. getContentType()Get the MIME type of the data that this kit represents support for.StringFormSubmitEvent. getData()Gets the form submission data.StringCSS.Attribute. getDefaultValue()Fetch the default value for the attribute.StringOption. getLabel()Fetch the label associated with the option.StringHTMLDocument.BlockElement. getName()Gets the name of the element.StringHTMLDocument.RunElement. getName()Gets the name of the element.StringHTMLFrameHyperlinkEvent. getTarget()returns the target for the link.StringImageView. getToolTipText(float x, float y, Shape allocation)For images the tooltip text comes from text specified with theALTattribute.StringOption. getValue()Convenient method to return the string associated with thevalueattribute.StringCSS.Attribute. toString()The string representation of the attribute.StringHTML.Attribute. toString()Returns the string representation of this attribute.StringHTML.Tag. toString()Returns the string representation of the tag.StringOption. toString()String representation is the label.Methods in javax.swing.text.html with parameters of type String Modifier and Type Method Description voidStyleSheet. addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)Adds a CSS attribute to the given set.booleanStyleSheet. addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)Adds a CSS attribute to the given set.voidStyleSheet. addRule(String rule)Adds a set of rules to the sheet.static CSS.AttributeCSS. getAttribute(String name)Translates a string to aCSS.Attributeobject.static HTML.AttributeHTML. getAttributeKey(String attName)Fetches an attribute constant for a well-known attribute name (i.e. one of the attributes in the set {FACE, COMMENT, SIZE, COLOR, CLEAR, BACKGROUND, BGCOLOR, TEXT, LINK, VLINK, ALINK, WIDTH, HEIGHT, ALIGN, NAME, HREF, REL, REV, TITLE, TARGET, SHAPE, COORDS, ISMAP, NOHREF, ALT, ID, SRC, HSPACE, VSPACE, USEMAP, LOWSRC, CODEBASE, CODE, ARCHIVE, VALUE, VALUETYPE, TYPE, CLASS, STYLE, LANG, DIR, DECLARE, CLASSID, DATA, CODETYPE, STANDBY, BORDER, SHAPES, NOSHADE, COMPACT, START, ACTION, METHOD, ENCTYPE, CHECKED, MAXLENGTH, MULTIPLE, SELECTED, ROWS, COLS, DUMMY, CELLSPACING, CELLPADDING, VALIGN, HALIGN, NOWRAP, ROWSPAN, COLSPAN, PROMPT, HTTPEQUIV, CONTENT, LANGUAGE, VERSION, N, FRAMEBORDER, MARGINWIDTH, MARGINHEIGHT, SCROLLING, NORESIZE, MEDIA, ENDTAG}).AttributeSetStyleSheet. getDeclaration(String decl)Translates a CSS declaration to an AttributeSet that represents the CSS declaration.ElementHTMLDocument. getElement(String id)Returns the element that has the given idAttribute.floatStyleSheet. getPointSize(String size)Given a string such as "+2", "-2", or "2", returns a point size value.StyleStyleSheet. getRule(String selector)Fetches the rule that best matches the selector given in string form.static HTML.TagHTML. getTag(String tagName)Fetches a tag constant for a well-known tag name (i.e. one of the tags in the set {A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU, META, NOBR, NOFRAMES, OBJECT, OL, OPTION, P, PARAM, PRE, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, S, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TITLE, TR, TT, U, UL, VAR}.voidHTMLDocument.HTMLReader. handleEndOfLineString(String eol)This is invoked after the stream has been parsed, but beforeflush.voidHTMLEditorKit.ParserCallback. handleEndOfLineString(String eol)This is invoked after the stream has been parsed, but beforeflush.voidHTMLEditorKit.ParserCallback. handleError(String errorMsg, int pos)Callback from the parser.protected voidFormView. imageSubmit(String imageData)This method is called to submit a form in response to a click on an image -- an <INPUT> form element of type "image".voidHTMLDocument. insertAfterEnd(Element elem, String htmlText)Inserts the HTML specified as a string after the end of the given element.voidHTMLDocument. insertAfterStart(Element elem, String htmlText)Inserts the HTML specified as a string at the start of the element.protected voidHTMLEditorKit.InsertHTMLTextAction. insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)This is invoked when inserting at a boundary.protected voidHTMLEditorKit.InsertHTMLTextAction. insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)Deprecated.As of Java 2 platform v1.3, use insertAtBoundaryvoidHTMLDocument. insertBeforeEnd(Element elem, String htmlText)Inserts the HTML specified as a string at the end of the element.voidHTMLDocument. insertBeforeStart(Element elem, String htmlText)Inserts the HTML specified as a string before the start of the given element.voidHTMLEditorKit. insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)Inserts HTML into an existing document.protected voidHTMLEditorKit.InsertHTMLTextAction. insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)A cover for HTMLEditorKit.insertHTML.voidStyleSheet. removeStyle(String nm)Removes a named style previously added to the document.voidStyleSheet. setBaseFontSize(String size)Sets the base font size from the passed in String.voidHTMLDocument. setInnerHTML(Element elem, String htmlText)Replaces the children of the given element with the contents specified as an HTML string.voidOption. setLabel(String label)Sets the label to be used for the option.voidHTMLDocument. setOuterHTML(Element elem, String htmlText)Replaces the given element in the parent with the contents specified as an HTML string.protected voidMinimalHTMLWriter. startFontTag(String style)This is no longer used, instead <span> will be written out.ColorStyleSheet. stringToColor(String string)Converts a color string such as "RED" or "#NNNNNN" to a Color.protected voidFormView. submitData(String data)This method is responsible for submitting the form data.static FormSubmitEvent.MethodTypeFormSubmitEvent.MethodType. valueOf(String name)Returns the enum constant of this type with the specified name.protected voidMinimalHTMLWriter. writeEndTag(String endTag)Writes out an end tag appropriately indented.protected voidMinimalHTMLWriter. writeStartTag(String tag)Writes out a start tag appropriately indented.Constructors in javax.swing.text.html with parameters of type String Constructor Description HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String targetFrame)Creates a new object representing a html frame hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, String targetFrame)Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, InputEvent inputEvent, String targetFrame)Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, String targetFrame)Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, Element sourceElement, String targetFrame)Creates a new object representing a hypertext link event.HTMLTextAction(String name)Creates a new HTMLTextAction from a string action name.InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag)Creates a new InsertHTMLTextAction.InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag, HTML.Tag alternateParentTag, HTML.Tag alternateAddTag)Creates a new InsertHTMLTextAction.Tag(String id)Creates a newTagwith the specifiedid, and withcausesBreakandisBlockset tofalse.Tag(String id, boolean causesBreak, boolean isBlock)Creates a newTagwith the specifiedid;causesBreakandisBlockare defined by the user.UnknownTag(String id)Creates a newUnknownTagwith the specifiedid. -
Uses of String in javax.swing.text.html.parser
Fields in javax.swing.text.html.parser declared as String Modifier and Type Field Description StringAttributeList. nameThe attribute nameStringDTD. namethe name of the DTDStringElement. nameThe name of the elementStringEntity. nameThe name of the entity.StringAttributeList. valueThe default attribute valueFields in javax.swing.text.html.parser with type parameters of type String Modifier and Type Field Description Hashtable<String,Element>DTD. elementHashThe hash table contains the name of element and the corresponding element.Methods in javax.swing.text.html.parser that return String Modifier and Type Method Description StringAttributeList. getName()StringDTD. getName()Gets the name of the DTD.StringElement. getName()Get the name of the element.StringEntity. getName()Gets the name of the entity.StringEntity. getString()Returns the data as aString.StringAttributeList. getValue()StringParser. parseDTDMarkup()Parses the Document Type Declaration markup declaration.StringAttributeList. toString()StringContentModel. toString()Convert to a string.StringDTD. toString()Returns a string representation of this DTD.StringElement. toString()Convert to a string.static StringAttributeList. type2name(int tp)Converts a type to the attribute nameMethods in javax.swing.text.html.parser with parameters of type String Modifier and Type Method Description protected static DTDParserDelegator. createDTD(DTD dtd, String name)Recreates a DTD from an archived format with the specifiedname.protected AttributeListDTD. defAttributeList(String name, int type, int modifier, String value, String values, AttributeList atts)Creates and returns anAttributeListresponding to a new attribute.protected ElementDTD. defElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String[] exclusions, String[] inclusions, AttributeList atts)Creates and returns anElement.EntityDTD. defEntity(String name, int type, int ch)Creates and returns a characterEntity.protected EntityDTD. defEntity(String name, int type, String str)Creates and returns anEntity.voidDTD. defineAttributes(String name, AttributeList atts)Defines attributes for anElement.ElementDTD. defineElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, BitSet exclusions, BitSet inclusions, AttributeList atts)Returns theElementwhich matches the specified parameters.EntityDTD. defineEntity(String name, int type, char[] data)Defines an entity.protected voidParser. error(String err)Invokes the error handler with the 1st, 2nd and 3rd error message argument "?".protected voidParser. error(String err, String arg1)Invokes the error handler with the 2nd and 3rd error message argument "?".protected voidParser. error(String err, String arg1, String arg2)Invokes the error handler with the 3rd error message argument "?".protected voidParser. error(String err, String arg1, String arg2, String arg3)Invokes the error handler.AttributeListElement. getAttribute(String name)Get an attribute by name.AttributeListElement. getAttributeByValue(String value)Get an attribute by value.static DTDDTD. getDTD(String name)Returns a DTD with the specifiedname.ElementDTD. getElement(String name)Gets an element by name.EntityDTD. getEntity(String name)Gets an entity by name.protected voidParser. handleError(int ln, String msg)An error has occurred.static intAttributeList. name2type(String nm)Converts an attribute name to the typestatic intElement. name2type(String nm)Convertsnmto type.static intEntity. name2type(String nm)Convertsnmstring to the corresponding entity type.static voidDTD. putDTDHash(String name, DTD dtd)Put a name and appropriate DTD to hashtable.Constructors in javax.swing.text.html.parser with parameters of type String Constructor Description AttributeList(String name)Create an attribute list element.AttributeList(String name, int type, int modifier, String value, Vector<?> values, AttributeList next)Create an attribute list element.DTD(String name)Creates a new DTD with the specified name.Entity(String name, int type, char[] data)Creates an entity. -
Uses of String in javax.swing.text.rtf
Methods in javax.swing.text.rtf that return String Modifier and Type Method Description StringRTFEditorKit. getContentType()Get the MIME type of the data that this kit represents support for. -
Uses of String in javax.swing.tree
Fields in javax.swing.tree declared as String Modifier and Type Field Description static StringDefaultTreeSelectionModel. SELECTION_MODE_PROPERTYProperty name for selectionMode.Methods in javax.swing.tree that return String Modifier and Type Method Description StringDefaultMutableTreeNode. toString()Returns the result of sendingtoString()to this node's user object, or the empty string if the node has no user object.StringDefaultTreeSelectionModel. toString()Returns a string that displays and identifies this object's properties.StringTreePath. toString()Returns a string that displays and identifies this object's properties.Methods in javax.swing.tree with parameters of type String Modifier and Type Method Description voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, boolean oldValue, boolean newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, byte oldValue, byte newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, char oldValue, char newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, double oldValue, double newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, float oldValue, float newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, int oldValue, int newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, long oldValue, long newValue)Overridden for performance reasons.voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, short oldValue, short newValue)Overridden for performance reasons.protected voidDefaultTreeCellRenderer. firePropertyChange(String propertyName, Object oldValue, Object newValue)Overridden for performance reasons.Constructors in javax.swing.tree with parameters of type String Constructor Description ExpandVetoException(TreeExpansionEvent event, String message)Constructs an ExpandVetoException object with the specified message. -
Uses of String in javax.swing.undo
Fields in javax.swing.undo declared as String Modifier and Type Field Description protected static StringStateEdit. RCSIDObsolete RCS version identity.static StringStateEditable. RCSIDResource ID for this class.protected static StringAbstractUndoableEdit. RedoNameString returned bygetRedoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.protected static StringAbstractUndoableEdit. UndoNameString returned bygetUndoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.protected StringStateEdit. undoRedoNameThe undo/redo presentation nameMethods in javax.swing.undo that return String Modifier and Type Method Description StringAbstractUndoableEdit. getPresentationName()This default implementation returns "".StringCompoundEdit. getPresentationName()ReturnsgetPresentationNamefrom the lastUndoableEditadded toedits.StringStateEdit. getPresentationName()Gets the presentation name for this editStringUndoableEdit. getPresentationName()Returns a localized, human-readable description of this edit, suitable for use in a change log, for example.StringAbstractUndoableEdit. getRedoPresentationName()Retreives the value from the defaults table with keyAbstractUndoableEdit.redoTextand returns that value followed by a space, followed bygetPresentationName.StringCompoundEdit. getRedoPresentationName()ReturnsgetRedoPresentationNamefrom the lastUndoableEditadded toedits.StringUndoableEdit. getRedoPresentationName()Returns a localized, human-readable description of the redoable form of this edit, suitable for use as a Redo menu item, for example.StringUndoManager. getRedoPresentationName()Returns a description of the redoable form of this edit.StringUndoManager. getUndoOrRedoPresentationName()Convenience method that returns eithergetUndoPresentationNameorgetRedoPresentationName.StringAbstractUndoableEdit. getUndoPresentationName()Retreives the value from the defaults table with keyAbstractUndoableEdit.undoTextand returns that value followed by a space, followed bygetPresentationName.StringCompoundEdit. getUndoPresentationName()ReturnsgetUndoPresentationNamefrom the lastUndoableEditadded toedits.StringUndoableEdit. getUndoPresentationName()Returns a localized, human-readable description of the undoable form of this edit, suitable for use as an Undo menu item, for example.StringUndoManager. getUndoPresentationName()Returns a description of the undoable form of this edit.StringAbstractUndoableEdit. toString()Returns a string that displays and identifies this object's properties.StringCompoundEdit. toString()Returns a string that displays and identifies this object's properties.StringUndoableEditSupport. toString()Returns a string that displays and identifies this object's properties.StringUndoManager. toString()Returns a string that displays and identifies this object's properties.Methods in javax.swing.undo with parameters of type String Modifier and Type Method Description protected voidStateEdit. init(StateEditable anObject, String name)Initialize the state edit.Constructors in javax.swing.undo with parameters of type String Constructor Description StateEdit(StateEditable anObject, String name)Create and return a new StateEdit with a presentation name. -
Uses of String in javax.tools
Fields in javax.tools declared as String Modifier and Type Field Description StringJavaFileObject.Kind. extensionThe extension which (by convention) is normally used for this kind of file object.Methods in javax.tools that return String Modifier and Type Method Description StringDiagnostic. getCode()Returns a diagnostic code indicating the type of diagnostic.StringDiagnostic. getMessage(Locale locale)Returns a localized message for the given locale.StringFileObject. getName()Returns a user-friendly name for this file object.StringJavaFileManager.Location. getName()Returns the name of this location.StringForwardingJavaFileManager. inferBinaryName(JavaFileManager.Location location, JavaFileObject file)StringJavaFileManager. inferBinaryName(JavaFileManager.Location location, JavaFileObject file)Infers a binary name of a file object based on a package-oriented location.StringForwardingJavaFileManager. inferModuleName(JavaFileManager.Location location)default StringJavaFileManager. inferModuleName(JavaFileManager.Location location)Infer the name of the module from its location, as returned bygetLocationForModuleorlistModuleLocations.default StringTool. name()Returns the name of this tool, or an empty string if no name is provided.Methods in javax.tools with parameters of type String Modifier and Type Method Description FileObjectForwardingJavaFileManager. getFileForInput(JavaFileManager.Location location, String packageName, String relativeName)FileObjectJavaFileManager. getFileForInput(JavaFileManager.Location location, String packageName, String relativeName)Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location.FileObjectForwardingJavaFileManager. getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling)FileObjectJavaFileManager. getFileForOutput(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling)Returns a file object for output representing the specified relative name in the specified package in the given location.JavaFileObjectForwardingJavaFileManager. getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind)JavaFileObjectJavaFileManager. getJavaFileForInput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind)Returns a file object for input representing the specified class of the specified kind in the given package-oriented location.JavaFileObjectForwardingJavaFileManager. getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling)JavaFileObjectJavaFileManager. getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling)Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjects(String... names)Returns file objects representing the given file names.JavaFileManager.LocationForwardingJavaFileManager. getLocationForModule(JavaFileManager.Location location, String moduleName)default JavaFileManager.LocationJavaFileManager. getLocationForModule(JavaFileManager.Location location, String moduleName)Gets a location for a named module within a location, which may be either a module-oriented location or an output location.PathStandardJavaFileManager.PathFactory. getPath(String first, String... more)Converts a path string, or a sequence of strings that when joined form a path string, to a Path.booleanForwardingJavaFileManager. handleOption(String current, Iterator<String> remaining)booleanJavaFileManager. handleOption(String current, Iterator<String> remaining)Handles one option.booleanJavaFileObject. isNameCompatible(String simpleName, JavaFileObject.Kind kind)Checks if this file object is compatible with the specified simple name and kind.booleanSimpleJavaFileObject. isNameCompatible(String simpleName, JavaFileObject.Kind kind)This implementation compares the path of its URI to the given simple name.intOptionChecker. isSupportedOption(String option)Determines if the given option is supported and if so, the number of arguments the option takes.Iterable<JavaFileObject>ForwardingJavaFileManager. list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse)Iterable<JavaFileObject>JavaFileManager. list(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse)Lists all file objects matching the given criteria in the given package-oriented location.static JavaFileManager.LocationStandardLocation. locationFor(String name)Returns a location object with the given name.intTool. run(InputStream in, OutputStream out, OutputStream err, String... arguments)Run the tool with the given I/O channels and arguments.default voidStandardJavaFileManager. setLocationForModule(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths)Associates the given search path with the given module and location, which must be a module-oriented or output location.static Diagnostic.KindDiagnostic.Kind. valueOf(String name)Returns the enum constant of this type with the specified name.static DocumentationTool.LocationDocumentationTool.Location. valueOf(String name)Returns the enum constant of this type with the specified name.static JavaFileObject.KindJavaFileObject.Kind. valueOf(String name)Returns the enum constant of this type with the specified name.static StandardLocationStandardLocation. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in javax.tools with type arguments of type String Modifier and Type Method Description voidDocumentationTool.DocumentationTask. addModules(Iterable<String> moduleNames)Adds root modules to be taken into account during module resolution.voidJavaCompiler.CompilationTask. addModules(Iterable<String> moduleNames)Adds root modules to be taken into account during module resolution.Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjectsFromStrings(Iterable<String> names)Returns file objects representing the given file names.DocumentationTool.DocumentationTaskDocumentationTool. getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits)Creates a future for a documentation task with the given components and arguments.JavaCompiler.CompilationTaskJavaCompiler. getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)Creates a future for a compilation task with the given components and arguments.booleanForwardingJavaFileManager. handleOption(String current, Iterator<String> remaining)booleanJavaFileManager. handleOption(String current, Iterator<String> remaining)Handles one option. -
Uses of String in javax.transaction.xa
Constructors in javax.transaction.xa with parameters of type String Constructor Description XAException(String s)Create an XAException with a given string. -
Uses of String in javax.xml
Fields in javax.xml declared as String Modifier and Type Field Description static StringXMLConstants. ACCESS_EXTERNAL_DTDProperty: accessExternalDTDstatic StringXMLConstants. ACCESS_EXTERNAL_SCHEMAProperty: accessExternalSchemastatic StringXMLConstants. ACCESS_EXTERNAL_STYLESHEETProperty: accessExternalStylesheetstatic StringXMLConstants. DEFAULT_NS_PREFIXPrefix to use to represent the default XML Namespace.static StringXMLConstants. FEATURE_SECURE_PROCESSINGFeature for secure processing.static StringXMLConstants. NULL_NS_URINamespace URI to use to represent that there is no Namespace.static StringXMLConstants. RELAXNG_NS_URIRELAX NG Namespace URI.static StringXMLConstants. USE_CATALOGFeature: useCatalogstatic StringXMLConstants. W3C_XML_SCHEMA_INSTANCE_NS_URIW3C XML Schema Instance Namespace URI.static StringXMLConstants. W3C_XML_SCHEMA_NS_URIW3C XML Schema Namespace URI.static StringXMLConstants. W3C_XPATH_DATATYPE_NS_URIW3C XPath Datatype Namespace URI.static StringXMLConstants. XML_DTD_NS_URIXML Document Type Declaration Namespace URI as an arbitrary value.static StringXMLConstants. XML_NS_PREFIXThe official XML Namespace prefix.static StringXMLConstants. XML_NS_URIThe official XML Namespace name URI.static StringXMLConstants. XMLNS_ATTRIBUTEThe official XML attribute used for specifying XML Namespace declarations.static StringXMLConstants. XMLNS_ATTRIBUTE_NS_URIThe official XML attribute used for specifying XML Namespace declarations,XMLConstants.XMLNS_ATTRIBUTE, Namespace name URI. -
Uses of String in javax.xml.catalog
Methods in javax.xml.catalog that return String Modifier and Type Method Description StringCatalogFeatures.Feature. defaultValue()Returns the default value of the property.StringCatalogFeatures. get(CatalogFeatures.Feature cf)Returns the value of the specified feature.StringCatalogFeatures.Feature. getPropertyName()Returns the name of the corresponding System Property.StringCatalog. matchPublic(String publicId)Attempts to find a matching entry in the catalog by publicId.StringCatalog. matchSystem(String systemId)Attempts to find a matching entry in the catalog by systemId.StringCatalog. matchURI(String uri)Attempts to find a matching entry in the catalog by the uri element.Methods in javax.xml.catalog with parameters of type String Modifier and Type Method Description StringCatalog. matchPublic(String publicId)Attempts to find a matching entry in the catalog by publicId.StringCatalog. matchSystem(String systemId)Attempts to find a matching entry in the catalog by systemId.StringCatalog. matchURI(String uri)Attempts to find a matching entry in the catalog by the uri element.SourceCatalogResolver. resolve(String href, String base)Implements URIResolver.InputSourceCatalogResolver. resolveEntity(String publicId, String systemId)ImplementsEntityResolver.InputStreamCatalogResolver. resolveEntity(String publicId, String systemId, String baseUri, String namespace)ImplementsXMLResolver.LSInputCatalogResolver. resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri)ImplementsLSResourceResolver.static CatalogFeatures.FeatureCatalogFeatures.Feature. valueOf(String name)Returns the enum constant of this type with the specified name.CatalogFeatures.BuilderCatalogFeatures.Builder. with(CatalogFeatures.Feature feature, String value)Sets the value to a specified Feature.Constructors in javax.xml.catalog with parameters of type String Constructor Description CatalogException(String message)Constructs a new CatalogException with the specified detail message.CatalogException(String message, Throwable cause)Constructs a new CatalogException with the specified detail message and cause. -
Uses of String in javax.xml.crypto
Methods in javax.xml.crypto that return String Modifier and Type Method Description StringAlgorithmMethod. getAlgorithm()Returns the algorithm URI of thisAlgorithmMethod.StringXMLCryptoContext. getBaseURI()Returns the base URI.StringXMLCryptoContext. getDefaultNamespacePrefix()Returns the default namespace prefix.StringOctetStreamData. getMimeType()Returns the MIME type associated with the data object represented by thisOctetStreamData.StringXMLCryptoContext. getNamespacePrefix(String namespaceURI, String defaultPrefix)Returns the namespace prefix that the specified namespace URI is associated with.StringURIReference. getType()Returns the type of data referenced by this URI.StringOctetStreamData. getURI()Returns the URI String identifying the data object represented by thisOctetStreamData.StringURIReference. getURI()Returns the URI of the referenced data object.StringXMLCryptoContext. putNamespacePrefix(String namespaceURI, String prefix)Maps the specified namespace URI to the specified prefix.StringKeySelector.Purpose. toString()Returns a string representation of this purpose ("sign", "verify", "encrypt", or "decrypt").Methods in javax.xml.crypto with parameters of type String Modifier and Type Method Description StringXMLCryptoContext. getNamespacePrefix(String namespaceURI, String defaultPrefix)Returns the namespace prefix that the specified namespace URI is associated with.ObjectXMLCryptoContext. getProperty(String name)Returns the value of the specified property.booleanXMLStructure. isFeatureSupported(String feature)Indicates whether a specified feature is supported.StringXMLCryptoContext. putNamespacePrefix(String namespaceURI, String prefix)Maps the specified namespace URI to the specified prefix.voidXMLCryptoContext. setBaseURI(String baseURI)Sets the base URI.voidXMLCryptoContext. setDefaultNamespacePrefix(String defaultPrefix)Sets the default namespace prefix.ObjectXMLCryptoContext. setProperty(String name, Object value)Sets the specified property.Constructors in javax.xml.crypto with parameters of type String Constructor Description KeySelectorException(String message)Constructs a newKeySelectorExceptionwith the specified detail message.KeySelectorException(String message, Throwable cause)Constructs a newKeySelectorExceptionwith the specified detail message and cause.MarshalException(String message)Constructs a newMarshalExceptionwith the specified detail message.MarshalException(String message, Throwable cause)Constructs a newMarshalExceptionwith the specified detail message and cause.NoSuchMechanismException(String message)Constructs a newNoSuchMechanismExceptionwith the specified detail message.NoSuchMechanismException(String message, Throwable cause)Constructs a newNoSuchMechanismExceptionwith the specified detail message and cause.OctetStreamData(InputStream octetStream, String uri, String mimeType)Creates a newOctetStreamData.URIReferenceException(String message)Constructs a newURIReferenceExceptionwith the specified detail message.URIReferenceException(String message, Throwable cause)Constructs a newURIReferenceExceptionwith the specified detail message and cause.URIReferenceException(String message, Throwable cause, URIReference uriReference)Constructs a newURIReferenceExceptionwith the specified detail message, cause andURIReference. -
Uses of String in javax.xml.crypto.dom
Methods in javax.xml.crypto.dom that return String Modifier and Type Method Description StringDOMCryptoContext. getNamespacePrefix(String namespaceURI, String defaultPrefix)This implementation uses an internalHashMapto get the prefix that the specified URI maps to.StringDOMCryptoContext. putNamespacePrefix(String namespaceURI, String prefix)This implementation uses an internalHashMapto map the URI to the specified prefix.Methods in javax.xml.crypto.dom that return types with arguments of type String Modifier and Type Method Description Iterator<Map.Entry<String,Element>>DOMCryptoContext. iterator()Returns a read-only iterator over the set of Id/Element mappings of thisDOMCryptoContext.Methods in javax.xml.crypto.dom with parameters of type String Modifier and Type Method Description ElementDOMCryptoContext. getElementById(String idValue)Returns theElementwith the specified ID attribute value.StringDOMCryptoContext. getNamespacePrefix(String namespaceURI, String defaultPrefix)This implementation uses an internalHashMapto get the prefix that the specified URI maps to.ObjectDOMCryptoContext. getProperty(String name)This implementation uses an internalHashMapto get the object that the specified name maps to.booleanDOMStructure. isFeatureSupported(String feature)StringDOMCryptoContext. putNamespacePrefix(String namespaceURI, String prefix)This implementation uses an internalHashMapto map the URI to the specified prefix.voidDOMCryptoContext. setBaseURI(String baseURI)voidDOMCryptoContext. setIdAttributeNS(Element element, String namespaceURI, String localName)Registers the element's attribute specified by the namespace URI and local name to be of type ID.ObjectDOMCryptoContext. setProperty(String name, Object value)This implementation uses an internalHashMapto map the name to the specified object. -
Uses of String in javax.xml.crypto.dsig
Fields in javax.xml.crypto.dsig declared as String Modifier and Type Field Description static StringTransform. BASE64The Base64 transform algorithm URI.static StringSignatureMethod. DSA_SHA1The DSA-SHA1 (DSS) signature method algorithm URI.static StringSignatureMethod. DSA_SHA256The DSA-SHA256 (DSS) signature method algorithm URI.static StringSignatureMethod. ECDSA_SHA1The ECDSA-SHA1 (FIPS 180-4) signature method algorithm URI.static StringSignatureMethod. ECDSA_SHA224The ECDSA-SHA224 (FIPS 180-4) signature method algorithm URI.static StringSignatureMethod. ECDSA_SHA256The ECDSA-SHA256 (FIPS 180-4) signature method algorithm URI.static StringSignatureMethod. ECDSA_SHA384The ECDSA-SHA384 (FIPS 180-4) signature method algorithm URI.static StringSignatureMethod. ECDSA_SHA512The ECDSA-SHA512 (FIPS 180-4) signature method algorithm URI.static StringTransform. ENVELOPEDThe Enveloped Signature transform algorithm URI.static StringCanonicalizationMethod. EXCLUSIVEThe Exclusive Canonical XML (without comments) canonicalization method algorithm URI.static StringCanonicalizationMethod. EXCLUSIVE_WITH_COMMENTSThe Exclusive Canonical XML with comments canonicalization method algorithm URI.static StringSignatureMethod. HMAC_SHA1The HMAC-SHA1 MAC signature method algorithm URIstatic StringSignatureMethod. HMAC_SHA224The HMAC-SHA224 MAC signature method algorithm URI.static StringSignatureMethod. HMAC_SHA256The HMAC-SHA256 MAC signature method algorithm URI.static StringSignatureMethod. HMAC_SHA384The HMAC-SHA384 MAC signature method algorithm URI.static StringSignatureMethod. HMAC_SHA512The HMAC-SHA512 MAC signature method algorithm URI.static StringCanonicalizationMethod. INCLUSIVEThe Canonical XML (without comments) canonicalization method algorithm URI.static StringCanonicalizationMethod. INCLUSIVE_WITH_COMMENTSThe Canonical XML with comments canonicalization method algorithm URI.static StringDigestMethod. RIPEMD160The RIPEMD-160 digest method algorithm URI.static StringSignatureMethod. RSA_SHA1The RSA-SHA1 (PKCS #1) signature method algorithm URI.static StringSignatureMethod. RSA_SHA224The RSA-SHA224 (PKCS #1) signature method algorithm URI.static StringSignatureMethod. RSA_SHA256The RSA-SHA256 (PKCS #1) signature method algorithm URI.static StringSignatureMethod. RSA_SHA384The RSA-SHA384 (PKCS #1) signature method algorithm URI.static StringSignatureMethod. RSA_SHA512The RSA-SHA512 (PKCS #1) signature method algorithm URI.static StringDigestMethod. SHA1The SHA1 digest method algorithm URI.static StringSignatureMethod. SHA1_RSA_MGF1The SHA1-RSA-MGF1 (PKCS #1) signature method algorithm URI.static StringDigestMethod. SHA224The SHA224 digest method algorithm URI.static StringSignatureMethod. SHA224_RSA_MGF1The SHA224-RSA-MGF1 (PKCS #1) signature method algorithm URI.static StringDigestMethod. SHA256The SHA256 digest method algorithm URI.static StringSignatureMethod. SHA256_RSA_MGF1The SHA256-RSA-MGF1 (PKCS #1) signature method algorithm URI.static StringDigestMethod. SHA3_224The SHA3-224 digest method algorithm URI.static StringDigestMethod. SHA3_256The SHA3-256 digest method algorithm URI.static StringDigestMethod. SHA3_384The SHA3-384 digest method algorithm URI.static StringDigestMethod. SHA3_512The SHA3-512 digest method algorithm URI.static StringDigestMethod. SHA384The SHA384 digest method algorithm URI.static StringSignatureMethod. SHA384_RSA_MGF1The SHA384-RSA-MGF1 (PKCS #1) signature method algorithm URI.static StringDigestMethod. SHA512The SHA512 digest method algorithm URI.static StringSignatureMethod. SHA512_RSA_MGF1The SHA512-RSA-MGF1 (PKCS #1) signature method algorithm URI.static StringManifest. TYPEURI that identifies theManifestelement (this can be specified as the value of thetypeparameter of theReferenceclass to identify the referent's type).static StringSignatureProperties. TYPEURI that identifies theSignaturePropertieselement (this can be specified as the value of thetypeparameter of theReferenceclass to identify the referent's type).static StringXMLObject. TYPEURI that identifies theObjectelement (this can be specified as the value of thetypeparameter of theReferenceclass to identify the referent's type).static StringXMLSignature. XMLNSThe XML Namespace URI of the W3C Recommendation for XML-Signature Syntax and Processing.static StringTransform. XPATHThe XPath transform algorithm URI.static StringTransform. XPATH2The XPath Filter 2 transform algorithm URI.static StringTransform. XSLTThe XSLT transform algorithm URI.Methods in javax.xml.crypto.dsig that return String Modifier and Type Method Description StringTransformService. getAlgorithm()Returns the URI of the algorithm supported by thisTransformService.StringXMLObject. getEncoding()Returns the encoding URI of thisXMLObject.StringManifest. getId()Returns the Id of thisManifest.StringReference. getId()Returns the optionalIdattribute of thisReference, which permits this reference to be referenced from elsewhere.StringSignatureProperties. getId()Returns the Id of thisSignatureProperties.StringSignatureProperty. getId()Returns the Id of thisSignatureProperty.StringSignedInfo. getId()Returns the optionalIdattribute of thisSignedInfo.StringXMLObject. getId()Returns the Id of thisXMLObject.StringXMLSignature. getId()Returns the optional Id of thisXMLSignature.StringXMLSignature.SignatureValue. getId()Returns the optionalIdattribute of thisSignatureValue, which permits this element to be referenced from elsewhere.StringTransformService. getMechanismType()Returns the mechanism type supported by thisTransformService.StringXMLSignatureFactory. getMechanismType()Returns the type of the XML processing mechanism and representation supported by thisXMLSignatureFactory(ex: "DOM").StringXMLObject. getMimeType()Returns the mime type of thisXMLObject.StringSignatureProperty. getTarget()Returns the target URI of thisSignatureProperty.Methods in javax.xml.crypto.dsig with parameters of type String Modifier and Type Method Description static TransformServiceTransformService. getInstance(String algorithm, String mechanismType)Returns aTransformServicethat supports the specified algorithm URI (ex:Transform.XPATH2) and mechanism type (ex: DOM).static TransformServiceTransformService. getInstance(String algorithm, String mechanismType, String provider)Returns aTransformServicethat supports the specified algorithm URI (ex:Transform.XPATH2) and mechanism type (ex: DOM) as supplied by the specified provider.static TransformServiceTransformService. getInstance(String algorithm, String mechanismType, Provider provider)Returns aTransformServicethat supports the specified algorithm URI (ex:Transform.XPATH2) and mechanism type (ex: DOM) as supplied by the specified provider.static XMLSignatureFactoryXMLSignatureFactory. getInstance(String mechanismType)Returns anXMLSignatureFactorythat supports the specified XML processing mechanism and representation type (ex: "DOM").static XMLSignatureFactoryXMLSignatureFactory. getInstance(String mechanismType, String provider)Returns anXMLSignatureFactorythat supports the requested XML processing mechanism and representation type (ex: "DOM"), as supplied by the specified provider.static XMLSignatureFactoryXMLSignatureFactory. getInstance(String mechanismType, Provider provider)Returns anXMLSignatureFactorythat supports the requested XML processing mechanism and representation type (ex: "DOM"), as supplied by the specified provider.abstract booleanXMLSignatureFactory. isFeatureSupported(String feature)Indicates whether a specified feature is supported.abstract CanonicalizationMethodXMLSignatureFactory. newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)Creates aCanonicalizationMethodfor the specified algorithm URI and parameters.abstract CanonicalizationMethodXMLSignatureFactory. newCanonicalizationMethod(String algorithm, XMLStructure params)Creates aCanonicalizationMethodfor the specified algorithm URI and parameters.abstract DigestMethodXMLSignatureFactory. newDigestMethod(String algorithm, DigestMethodParameterSpec params)Creates aDigestMethodfor the specified algorithm URI and parameters.abstract ManifestXMLSignatureFactory. newManifest(List<? extends Reference> references, String id)Creates aManifestcontaining the specified list ofReferences and optional id.abstract ReferenceXMLSignatureFactory. newReference(String uri, DigestMethod dm)Creates aReferencewith the specified URI and digest method.abstract ReferenceXMLSignatureFactory. newReference(String uri, DigestMethod dm, List<? extends Transform> transforms, String type, String id)Creates aReferencewith the specified parameters.abstract ReferenceXMLSignatureFactory. newReference(String uri, DigestMethod dm, List<? extends Transform> transforms, String type, String id, byte[] digestValue)Creates aReferencewith the specified parameters and pre-calculated digest value.abstract ReferenceXMLSignatureFactory. newReference(String uri, DigestMethod dm, List<? extends Transform> appliedTransforms, Data result, List<? extends Transform> transforms, String type, String id)Creates aReferencewith the specified parameters.abstract SignatureMethodXMLSignatureFactory. newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)Creates aSignatureMethodfor the specified algorithm URI and parameters.abstract SignaturePropertiesXMLSignatureFactory. newSignatureProperties(List<? extends SignatureProperty> properties, String id)Creates aSignaturePropertiescontaining the specified list ofSignaturePropertys and optional id.abstract SignaturePropertyXMLSignatureFactory. newSignatureProperty(List<? extends XMLStructure> content, String target, String id)Creates aSignaturePropertycontaining the specified list ofXMLStructures, target URI and optional id.abstract SignedInfoXMLSignatureFactory. newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List<? extends Reference> references, String id)Creates aSignedInfowith the specified parameters.abstract TransformXMLSignatureFactory. newTransform(String algorithm, TransformParameterSpec params)Creates aTransformfor the specified algorithm URI and parameters.abstract TransformXMLSignatureFactory. newTransform(String algorithm, XMLStructure params)Creates aTransformfor the specified algorithm URI and parameters.abstract XMLObjectXMLSignatureFactory. newXMLObject(List<? extends XMLStructure> content, String id, String mimeType, String encoding)Creates anXMLObjectfrom the specified parameters.abstract XMLSignatureXMLSignatureFactory. newXMLSignature(SignedInfo si, KeyInfo ki, List<? extends XMLObject> objects, String id, String signatureValueId)Creates anXMLSignatureand initializes it with the specified parameters.Constructors in javax.xml.crypto.dsig with parameters of type String Constructor Description TransformException(String message)Constructs a newTransformExceptionwith the specified detail message.TransformException(String message, Throwable cause)Constructs a newTransformExceptionwith the specified detail message and cause.XMLSignatureException(String message)Constructs a newXMLSignatureExceptionwith the specified detail message.XMLSignatureException(String message, Throwable cause)Constructs a newXMLSignatureExceptionwith the specified detail message and cause. -
Uses of String in javax.xml.crypto.dsig.keyinfo
Fields in javax.xml.crypto.dsig.keyinfo declared as String Modifier and Type Field Description static StringKeyValue. DSA_TYPEURI identifying the DSA KeyValue KeyInfo type: http://www.w3.org/2000/09/xmldsig#DSAKeyValue.static StringX509Data. RAW_X509_CERTIFICATE_TYPEURI identifying the binary (ASN.1 DER) X.509 Certificate KeyInfo type: http://www.w3.org/2000/09/xmldsig#rawX509Certificate.static StringKeyValue. RSA_TYPEURI identifying the RSA KeyValue KeyInfo type: http://www.w3.org/2000/09/xmldsig#RSAKeyValue.static StringPGPData. TYPEURI identifying the PGPData KeyInfo type: http://www.w3.org/2000/09/xmldsig#PGPData.static StringX509Data. TYPEURI identifying the X509Data KeyInfo type: http://www.w3.org/2000/09/xmldsig#X509Data.Methods in javax.xml.crypto.dsig.keyinfo that return String Modifier and Type Method Description StringKeyInfo. getId()Return the optional Id attribute of thisKeyInfo, which may be useful for referencing thisKeyInfofrom other XML structures.StringX509IssuerSerial. getIssuerName()Returns the X.500 distinguished name of thisX509IssuerSerialin RFC 2253 String format.StringKeyInfoFactory. getMechanismType()Returns the type of the XML processing mechanism and representation supported by thisKeyInfoFactory(ex: "DOM")StringKeyName. getName()Returns the name of thisKeyName.StringRetrievalMethod. getURI()Returns the URI of the referencedKeyInfoinformation.Methods in javax.xml.crypto.dsig.keyinfo with parameters of type String Modifier and Type Method Description static KeyInfoFactoryKeyInfoFactory. getInstance(String mechanismType)Returns aKeyInfoFactorythat supports the specified XML processing mechanism and representation type (ex: "DOM").static KeyInfoFactoryKeyInfoFactory. getInstance(String mechanismType, String provider)Returns aKeyInfoFactorythat supports the requested XML processing mechanism and representation type (ex: "DOM"), as supplied by the specified provider.static KeyInfoFactoryKeyInfoFactory. getInstance(String mechanismType, Provider provider)Returns aKeyInfoFactorythat supports the requested XML processing mechanism and representation type (ex: "DOM"), as supplied by the specified provider.abstract booleanKeyInfoFactory. isFeatureSupported(String feature)Indicates whether a specified feature is supported.abstract KeyInfoKeyInfoFactory. newKeyInfo(List<? extends XMLStructure> content, String id)Creates aKeyInfocontaining the specified list of key information types and optional id.abstract KeyNameKeyInfoFactory. newKeyName(String name)Creates aKeyNamefrom the specified name.abstract RetrievalMethodKeyInfoFactory. newRetrievalMethod(String uri)Creates aRetrievalMethodfrom the specified URI.abstract RetrievalMethodKeyInfoFactory. newRetrievalMethod(String uri, String type, List<? extends Transform> transforms)Creates aRetrievalMethodfrom the specified parameters.abstract X509IssuerSerialKeyInfoFactory. newX509IssuerSerial(String issuerName, BigInteger serialNumber)Creates anX509IssuerSerialfrom the specified X.500 issuer distinguished name and serial number. -
Uses of String in javax.xml.crypto.dsig.spec
Fields in javax.xml.crypto.dsig.spec declared as String Modifier and Type Field Description static StringExcC14NParameterSpec. DEFAULTIndicates the default namespace ("#default").Methods in javax.xml.crypto.dsig.spec that return String Modifier and Type Method Description StringXPathType. getExpression()Returns the XPath expression to be evaluated.StringXPathFilterParameterSpec. getXPath()Returns the XPath expression to be evaluated.StringXPathType.Filter. toString()Returns the string form of the operation.Methods in javax.xml.crypto.dsig.spec that return types with arguments of type String Modifier and Type Method Description Map<String,String>XPathFilterParameterSpec. getNamespaceMap()Returns a map of namespace prefixes.Map<String,String>XPathFilterParameterSpec. getNamespaceMap()Returns a map of namespace prefixes.Map<String,String>XPathType. getNamespaceMap()Returns a map of namespace prefixes.Map<String,String>XPathType. getNamespaceMap()Returns a map of namespace prefixes.List<String>ExcC14NParameterSpec. getPrefixList()Returns the inclusive namespace prefix list.Constructors in javax.xml.crypto.dsig.spec with parameters of type String Constructor Description XPathFilterParameterSpec(String xPath)Creates anXPathFilterParameterSpecwith the specified XPath expression.XPathFilterParameterSpec(String xPath, Map<String,String> namespaceMap)Creates anXPathFilterParameterSpecwith the specified XPath expression and namespace map.XPathType(String expression, XPathType.Filter filter)Creates anXPathTypeinstance with the specified XPath expression and filter.XPathType(String expression, XPathType.Filter filter, Map<String,String> namespaceMap)Creates anXPathTypeinstance with the specified XPath expression, filter, and namespace map.Constructor parameters in javax.xml.crypto.dsig.spec with type arguments of type String Constructor Description ExcC14NParameterSpec(List<String> prefixList)Creates aExcC14NParameterSpecwith the specified list of prefixes.XPathFilterParameterSpec(String xPath, Map<String,String> namespaceMap)Creates anXPathFilterParameterSpecwith the specified XPath expression and namespace map.XPathFilterParameterSpec(String xPath, Map<String,String> namespaceMap)Creates anXPathFilterParameterSpecwith the specified XPath expression and namespace map.XPathType(String expression, XPathType.Filter filter, Map<String,String> namespaceMap)Creates anXPathTypeinstance with the specified XPath expression, filter, and namespace map.XPathType(String expression, XPathType.Filter filter, Map<String,String> namespaceMap)Creates anXPathTypeinstance with the specified XPath expression, filter, and namespace map. -
Uses of String in javax.xml.datatype
Fields in javax.xml.datatype declared as String Modifier and Type Field Description static StringDatatypeFactory. DATATYPEFACTORY_IMPLEMENTATION_CLASSDefault implementation class name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.static StringDatatypeFactory. DATATYPEFACTORY_PROPERTYDefault property name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.Methods in javax.xml.datatype that return String Modifier and Type Method Description StringDatatypeConstants.Field. toString()Returns a field name in English.StringDuration. toString()Returns aStringrepresentation of thisDuration Object.StringXMLGregorianCalendar. toString()Returns aStringrepresentation of thisXMLGregorianCalendarObject.abstract StringXMLGregorianCalendar. toXMLFormat()Return the lexical representation ofthisinstance.Methods in javax.xml.datatype with parameters of type String Modifier and Type Method Description abstract DurationDatatypeFactory. newDuration(String lexicalRepresentation)Obtain a new instance of aDurationspecifying theDurationas its string representation, "PnYnMnDTnHnMnS", as defined in XML Schema 1.0 section 3.2.6.1.DurationDatatypeFactory. newDurationDayTime(String lexicalRepresentation)Create aDurationof typexdt:dayTimeDurationby parsing itsStringrepresentation, "PnDTnHnMnS", XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DurationDatatypeFactory. newDurationYearMonth(String lexicalRepresentation)Create aDurationof typexdt:yearMonthDurationby parsing itsStringrepresentation, "PnYnM", XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.static DatatypeFactoryDatatypeFactory. newInstance(String factoryClassName, ClassLoader classLoader)Obtain a new instance of aDatatypeFactoryfrom class name.abstract XMLGregorianCalendarDatatypeFactory. newXMLGregorianCalendar(String lexicalRepresentation)Create a new XMLGregorianCalendar by parsing the String as a lexical representation.Constructors in javax.xml.datatype with parameters of type String Constructor Description DatatypeConfigurationException(String message)Create a newDatatypeConfigurationExceptionwith the specified detail message.DatatypeConfigurationException(String message, Throwable cause)Create a newDatatypeConfigurationExceptionwith the specified detail message and cause. -
Uses of String in javax.xml.namespace
Methods in javax.xml.namespace that return String Modifier and Type Method Description StringQName. getLocalPart()Get the local part of thisQName.StringNamespaceContext. getNamespaceURI(String prefix)Get Namespace URI bound to a prefix in the current scope.StringQName. getNamespaceURI()Get the Namespace URI of thisQName.StringNamespaceContext. getPrefix(String namespaceURI)Get prefix bound to Namespace URI in the current scope.StringQName. getPrefix()Get the prefix of thisQName.StringQName. toString()Stringrepresentation of thisQName.Methods in javax.xml.namespace that return types with arguments of type String Modifier and Type Method Description Iterator<String>NamespaceContext. getPrefixes(String namespaceURI)Get all prefixes bound to a Namespace URI in the current scope.Methods in javax.xml.namespace with parameters of type String Modifier and Type Method Description StringNamespaceContext. getNamespaceURI(String prefix)Get Namespace URI bound to a prefix in the current scope.StringNamespaceContext. getPrefix(String namespaceURI)Get prefix bound to Namespace URI in the current scope.Iterator<String>NamespaceContext. getPrefixes(String namespaceURI)Get all prefixes bound to a Namespace URI in the current scope.static QNameQName. valueOf(String qNameAsString)QNamederived from parsing the formattedString.Constructors in javax.xml.namespace with parameters of type String Constructor Description QName(String localPart)QNameconstructor specifying the local part.QName(String namespaceURI, String localPart)QNameconstructor specifying the Namespace URI and local part.QName(String namespaceURI, String localPart, String prefix)QNameconstructor specifying the Namespace URI, local part and prefix. -
Uses of String in javax.xml.parsers
Methods in javax.xml.parsers that return String Modifier and Type Method Description StringFactoryConfigurationError. getMessage()Return the message (if any) for this error .Methods in javax.xml.parsers with parameters of type String Modifier and Type Method Description abstract ObjectDocumentBuilderFactory. getAttribute(String name)Allows the user to retrieve specific attributes on the underlying implementation.abstract booleanDocumentBuilderFactory. getFeature(String name)Get the state of the named feature.abstract booleanSAXParserFactory. getFeature(String name)Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.abstract ObjectSAXParser. getProperty(String name)Returns the particular property requested for in the underlying implementation ofXMLReader.static DocumentBuilderFactoryDocumentBuilderFactory. newInstance(String factoryClassName, ClassLoader classLoader)Obtain a new instance of aDocumentBuilderFactoryfrom class name.static SAXParserFactorySAXParserFactory. newInstance(String factoryClassName, ClassLoader classLoader)Obtain a new instance of aSAXParserFactoryfrom class name.DocumentDocumentBuilder. parse(InputStream is, String systemId)Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(String uri)Parse the content of the given URI as an XML document and return a new DOMDocumentobject.voidSAXParser. parse(InputStream is, HandlerBase hb, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser. parse(InputStream is, DefaultHandler dh, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser. parse(String uri, HandlerBase hb)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedHandlerBase.voidSAXParser. parse(String uri, DefaultHandler dh)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedDefaultHandler.abstract voidDocumentBuilderFactory. setAttribute(String name, Object value)Allows the user to set specific attributes on the underlying implementation.abstract voidDocumentBuilderFactory. setFeature(String name, boolean value)Set a feature for thisDocumentBuilderFactoryandDocumentBuilders created by this factory.abstract voidSAXParserFactory. setFeature(String name, boolean value)Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.abstract voidSAXParser. setProperty(String name, Object value)Sets the particular property in the underlying implementation ofXMLReader.Constructors in javax.xml.parsers with parameters of type String Constructor Description FactoryConfigurationError(Exception e, String msg)Create a newFactoryConfigurationErrorwith the givenExceptionbase cause and detail message.FactoryConfigurationError(String msg)Create a newFactoryConfigurationErrorwith theStringspecified as an error message.ParserConfigurationException(String msg)Create a newParserConfigurationExceptionwith theStringspecified as an error message. -
Uses of String in javax.xml.stream
Fields in javax.xml.stream declared as String Modifier and Type Field Description static StringXMLInputFactory. ALLOCATORThe property used to set/get the implementation of the allocatorstatic StringXMLInputFactory. IS_COALESCINGThe property that requires the parser to coalesce adjacent character data sectionsstatic StringXMLInputFactory. IS_NAMESPACE_AWAREThe property used to turn on/off namespace support, this is to support XML 1.0 documents, only the true setting must be supportedstatic StringXMLOutputFactory. IS_REPAIRING_NAMESPACESProperty used to set prefix defaulting on the output sidestatic StringXMLInputFactory. IS_REPLACING_ENTITY_REFERENCESRequires the parser to replace internal entity references with their replacement text and report them as charactersstatic StringXMLInputFactory. IS_SUPPORTING_EXTERNAL_ENTITIESThe property that requires the parser to resolve external parsed entitiesstatic StringXMLInputFactory. IS_VALIDATINGThe property used to turn on/off implementation specific validationstatic StringXMLInputFactory. REPORTERThe property used to set/get the implementation of the XMLReporter interfacestatic StringXMLInputFactory. RESOLVERThe property used to set/get the implementation of the XMLResolverstatic StringXMLInputFactory. SUPPORT_DTDThe property that requires the parser to support DTDsMethods in javax.xml.stream that return String Modifier and Type Method Description StringXMLStreamReader. getAttributeLocalName(int index)Returns the localName of the attribute at the provided indexStringXMLStreamReader. getAttributeNamespace(int index)Returns the namespace of the attribute at the provided indexStringXMLStreamReader. getAttributePrefix(int index)Returns the prefix of this attribute at the provided indexStringXMLStreamReader. getAttributeType(int index)Returns the XML type of the attribute at the provided indexStringXMLStreamReader. getAttributeValue(int index)Returns the value of the attribute at the indexStringXMLStreamReader. getAttributeValue(String namespaceURI, String localName)Returns the normalized attribute value of the attribute with the namespace and localName If the namespaceURI is null the namespace is not checked for equalityStringXMLStreamReader. getCharacterEncodingScheme()Returns the character encoding declared on the xml declaration Returns null if none was declaredStringXMLEventReader. getElementText()Reads the content of a text-only element.StringXMLStreamReader. getElementText()Reads the content of a text-only element, an exception is thrown if this is not a text-only element.StringXMLStreamReader. getEncoding()Return input encoding if known or null if unknown.StringXMLStreamReader. getLocalName()Returns the (local) name of the current event.StringFactoryConfigurationError. getMessage()Report the message associated with this errorStringXMLStreamReader. getNamespacePrefix(int index)Returns the prefix for the namespace declared at the index.StringXMLStreamReader. getNamespaceURI()If the current event is a START_ELEMENT or END_ELEMENT this method returns the URI of the prefix or the default namespace.StringXMLStreamReader. getNamespaceURI(int index)Returns the uri for the namespace declared at the index.StringXMLStreamReader. getNamespaceURI(String prefix)Return the uri for the given prefix.StringXMLStreamReader. getPIData()Get the data section of a processing instructionStringXMLStreamReader. getPITarget()Get the target of a processing instructionStringXMLEventWriter. getPrefix(String uri)Gets the prefix the uri is bound toStringXMLStreamReader. getPrefix()Returns the prefix of the current event or null if the event does not have a prefixStringXMLStreamWriter. getPrefix(String uri)Gets the prefix the uri is bound toStringLocation. getPublicId()Returns the public ID of the XMLStringLocation. getSystemId()Returns the system ID of the XMLStringXMLStreamReader. getText()Returns the current value of the parse event as a string, this returns the string value of a CHARACTERS event, returns the value of a COMMENT, the replacement value for an ENTITY_REFERENCE, the string value of a CDATA section, the string value for a SPACE event, or the String value of the internal subset of the DTD.StringXMLStreamReader. getVersion()Get the xml version declared on the xml declaration Returns null if none was declaredMethods in javax.xml.stream with parameters of type String Modifier and Type Method Description abstract AttributeXMLEventFactory. createAttribute(String localName, String value)Create a new Attributeabstract AttributeXMLEventFactory. createAttribute(String prefix, String namespaceURI, String localName, String value)Create a new Attributeabstract AttributeXMLEventFactory. createAttribute(QName name, String value)Create a new Attributeabstract CharactersXMLEventFactory. createCData(String content)Create a Characters event with the CData flag set to trueabstract CharactersXMLEventFactory. createCharacters(String content)Create a Characters event, this method does not check if the content is all whitespace.abstract CommentXMLEventFactory. createComment(String text)Create a commentabstract DTDXMLEventFactory. createDTD(String dtd)Create a document type definition event This string contains the entire document type declaration that matches the doctypedecl in the XML 1.0 specificationabstract EndElementXMLEventFactory. createEndElement(String prefix, String namespaceUri, String localName)Create a new EndElementabstract EndElementXMLEventFactory. createEndElement(String prefix, String namespaceUri, String localName, Iterator<? extends Namespace> namespaces)Create a new EndElementabstract EntityReferenceXMLEventFactory. createEntityReference(String name, EntityDeclaration declaration)Creates a new instance of a EntityReference eventabstract CharactersXMLEventFactory. createIgnorableSpace(String content)Create an ignorable spaceabstract NamespaceXMLEventFactory. createNamespace(String namespaceURI)Create a new default Namespaceabstract NamespaceXMLEventFactory. createNamespace(String prefix, String namespaceUri)Create a new Namespaceabstract ProcessingInstructionXMLEventFactory. createProcessingInstruction(String target, String data)Create a processing instructionabstract CharactersXMLEventFactory. createSpace(String content)Create a Characters event with the isSpace flag set to trueabstract StartDocumentXMLEventFactory. createStartDocument(String encoding)Creates a new instance of a StartDocument eventabstract StartDocumentXMLEventFactory. createStartDocument(String encoding, String version)Creates a new instance of a StartDocument eventabstract StartDocumentXMLEventFactory. createStartDocument(String encoding, String version, boolean standalone)Creates a new instance of a StartDocument eventabstract StartElementXMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName)Create a new StartElement.abstract StartElementXMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces)Create a new StartElement.abstract StartElementXMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces, NamespaceContext context)Create a new StartElement.abstract XMLEventReaderXMLInputFactory. createXMLEventReader(InputStream stream, String encoding)Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReaderXMLInputFactory. createXMLEventReader(String systemId, InputStream stream)Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReaderXMLInputFactory. createXMLEventReader(String systemId, Reader reader)Create a new XMLEventReader from a readerabstract XMLEventWriterXMLOutputFactory. createXMLEventWriter(OutputStream stream, String encoding)Create a new XMLEventWriter that writes to a streamabstract XMLStreamReaderXMLInputFactory. createXMLStreamReader(InputStream stream, String encoding)Create a new XMLStreamReader from a java.io.InputStreamabstract XMLStreamReaderXMLInputFactory. createXMLStreamReader(String systemId, InputStream stream)Create a new XMLStreamReader from a java.io.InputStreamabstract XMLStreamReaderXMLInputFactory. createXMLStreamReader(String systemId, Reader reader)Create a new XMLStreamReader from a java.io.InputStreamabstract XMLStreamWriterXMLOutputFactory. createXMLStreamWriter(OutputStream stream, String encoding)Create a new XMLStreamWriter that writes to a streamStringXMLStreamReader. getAttributeValue(String namespaceURI, String localName)Returns the normalized attribute value of the attribute with the namespace and localName If the namespaceURI is null the namespace is not checked for equalityStringXMLStreamReader. getNamespaceURI(String prefix)Return the uri for the given prefix.StringXMLEventWriter. getPrefix(String uri)Gets the prefix the uri is bound toStringXMLStreamWriter. getPrefix(String uri)Gets the prefix the uri is bound toObjectXMLEventReader. getProperty(String name)Get the value of a feature/property from the underlying implementationabstract ObjectXMLInputFactory. getProperty(String name)Get the value of a feature/property from the underlying implementationabstract ObjectXMLOutputFactory. getProperty(String name)Get a feature/property on the underlying implementationObjectXMLStreamReader. getProperty(String name)Get the value of a feature/property from the underlying implementationObjectXMLStreamWriter. getProperty(String name)Get the value of a feature/property from the underlying implementationabstract booleanXMLInputFactory. isPropertySupported(String name)Query the set of properties that this factory supports.abstract booleanXMLOutputFactory. isPropertySupported(String name)Query the set of properties that this factory supports.static XMLEventFactoryXMLEventFactory. newFactory(String factoryId, ClassLoader classLoader)Create a new instance of the factory.static XMLInputFactoryXMLInputFactory. newFactory(String factoryId, ClassLoader classLoader)Create a new instance of the factory.static XMLOutputFactoryXMLOutputFactory. newFactory(String factoryId, ClassLoader classLoader)Create a new instance of the factory.static XMLEventFactoryXMLEventFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated to maintain API consistency.static XMLInputFactoryXMLInputFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated to maintain API consistency.static XMLInputFactoryXMLOutputFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class.voidXMLReporter. report(String message, String errorType, Object relatedInformation, Location location)Report the desired message in an application specific format.voidXMLStreamReader. require(int type, String namespaceURI, String localName)Test if the current event is of the given type and if the namespace and name match the current namespace and name of the current event.ObjectXMLResolver. resolveEntity(String publicID, String systemID, String baseURI, String namespace)Retrieves a resource.voidXMLEventWriter. setDefaultNamespace(String uri)Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.voidXMLStreamWriter. setDefaultNamespace(String uri)Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.voidXMLEventWriter. setPrefix(String prefix, String uri)Sets the prefix the uri is bound to.voidXMLStreamWriter. setPrefix(String prefix, String uri)Sets the prefix the uri is bound to.abstract voidXMLInputFactory. setProperty(String name, Object value)Allows the user to set specific feature/property on the underlying implementation.abstract voidXMLOutputFactory. setProperty(String name, Object value)Allows the user to set specific features/properties on the underlying implementation.voidXMLStreamWriter. writeAttribute(String localName, String value)Writes an attribute to the output stream without a prefix.voidXMLStreamWriter. writeAttribute(String namespaceURI, String localName, String value)Writes an attribute to the output streamvoidXMLStreamWriter. writeAttribute(String prefix, String namespaceURI, String localName, String value)Writes an attribute to the output streamvoidXMLStreamWriter. writeCData(String data)Writes a CData sectionvoidXMLStreamWriter. writeCharacters(String text)Write text to the outputvoidXMLStreamWriter. writeComment(String data)Writes an xml comment with the data enclosedvoidXMLStreamWriter. writeDefaultNamespace(String namespaceURI)Writes the default namespace to the streamvoidXMLStreamWriter. writeDTD(String dtd)Write a DTD section.voidXMLStreamWriter. writeEmptyElement(String localName)Writes an empty element tag to the outputvoidXMLStreamWriter. writeEmptyElement(String namespaceURI, String localName)Writes an empty element tag to the outputvoidXMLStreamWriter. writeEmptyElement(String prefix, String localName, String namespaceURI)Writes an empty element tag to the outputvoidXMLStreamWriter. writeEntityRef(String name)Writes an entity referencevoidXMLStreamWriter. writeNamespace(String prefix, String namespaceURI)Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespacevoidXMLStreamWriter. writeProcessingInstruction(String target)Writes a processing instructionvoidXMLStreamWriter. writeProcessingInstruction(String target, String data)Writes a processing instructionvoidXMLStreamWriter. writeStartDocument(String version)Write the XML Declaration.voidXMLStreamWriter. writeStartDocument(String encoding, String version)Write the XML Declaration.voidXMLStreamWriter. writeStartElement(String localName)Writes a start tag to the output.voidXMLStreamWriter. writeStartElement(String namespaceURI, String localName)Writes a start tag to the outputvoidXMLStreamWriter. writeStartElement(String prefix, String localName, String namespaceURI)Writes a start tag to the outputConstructors in javax.xml.stream with parameters of type String Constructor Description FactoryConfigurationError(Exception e, String msg)Construct an exception with a nested inner exception and a messageFactoryConfigurationError(String msg)Construct an exception with associated messageFactoryConfigurationError(String msg, Exception e)Construct an exception with a nested inner exception and a messageXMLStreamException(String msg)Construct an exception with the assocated message.XMLStreamException(String msg, Throwable th)Construct an exception with the assocated message and exceptionXMLStreamException(String msg, Location location)Construct an exception with the assocated message, exception and location.XMLStreamException(String msg, Location location, Throwable th)Construct an exception with the assocated message, exception and location. -
Uses of String in javax.xml.stream.events
Methods in javax.xml.stream.events that return String Modifier and Type Method Description StringEntityDeclaration. getBaseURI()Get the base URI for this reference or null if this information is not availableStringStartDocument. getCharacterEncodingScheme()Returns the encoding style of the XML dataStringCharacters. getData()Get the character data of this eventStringProcessingInstruction. getData()The data section of the processing instructionStringDTD. getDocumentTypeDeclaration()Returns the entire Document Type Declaration as a string, including the internal DTD subset.StringAttribute. getDTDType()Gets the type of this attribute, default is the String "CDATA"StringEntityDeclaration. getName()The entity's nameStringEntityReference. getName()The name of the entityStringNotationDeclaration. getName()The notation name.StringNamespace. getNamespaceURI()Gets the uri bound to the prefix of this namespaceStringStartElement. getNamespaceURI(String prefix)Gets the value that the prefix is bound to in the context of this element.StringEntityDeclaration. getNotationName()The name of the associated notation.StringNamespace. getPrefix()Gets the prefix, returns "" if this is a default namespace declaration.StringEntityDeclaration. getPublicId()The entity's public identifier, or null if none was givenStringNotationDeclaration. getPublicId()The notation's public identifier, or null if none was given.StringEntityDeclaration. getReplacementText()The replacement text of the entity.StringEntityDeclaration. getSystemId()The entity's system identifier.StringNotationDeclaration. getSystemId()The notation's system identifier, or null if none was given.StringStartDocument. getSystemId()Returns the system ID of the XML dataStringProcessingInstruction. getTarget()The target section of the processing instructionStringComment. getText()Return the string data of the comment, returns empty string if it does not existStringAttribute. getValue()Gets the normalized value of this attributeStringStartDocument. getVersion()Returns the version of XML of this XML streamMethods in javax.xml.stream.events with parameters of type String Modifier and Type Method Description StringStartElement. getNamespaceURI(String prefix)Gets the value that the prefix is bound to in the context of this element. -
Uses of String in javax.xml.transform
Fields in javax.xml.transform declared as String Modifier and Type Field Description static StringOutputKeys. CDATA_SECTION_ELEMENTScdata-section-elements = expanded names.static StringOutputKeys. DOCTYPE_PUBLICdoctype-public = string.static StringOutputKeys. DOCTYPE_SYSTEMdoctype-system = string.static StringOutputKeys. ENCODINGencoding = string.static StringOutputKeys. INDENTindent = "yes" | "no".static StringOutputKeys. MEDIA_TYPEmedia-type = string.static StringOutputKeys. METHODmethod = "xml" | "html" | "text" | expanded name.static StringOutputKeys. OMIT_XML_DECLARATIONomit-xml-declaration = "yes" | "no".static StringResult. PI_DISABLE_OUTPUT_ESCAPINGThe name of the processing instruction that is sent if the result tree disables output escaping.static StringResult. PI_ENABLE_OUTPUT_ESCAPINGThe name of the processing instruction that is sent if the result tree enables output escaping at some point after having received a PI_DISABLE_OUTPUT_ESCAPING processing instruction.static StringOutputKeys. STANDALONEstandalone = "yes" | "no".static StringOutputKeys. VERSIONversion = nmtoken.Methods in javax.xml.transform that return String Modifier and Type Method Description StringTransformerException. getLocationAsString()Get the location information as a string.StringTransformerFactoryConfigurationError. getMessage()Return the message (if any) for this error .StringTransformerException. getMessageAndLocation()Get the error message with location information appended.abstract StringTransformer. getOutputProperty(String name)Get an output property that is in effect for the transformer.StringSourceLocator. getPublicId()Return the public identifier for the current document event.StringResult. getSystemId()Get the system identifier that was set with setSystemId.StringSource. getSystemId()Get the system identifier that was set with setSystemId.StringSourceLocator. getSystemId()Return the system identifier for the current document event.Methods in javax.xml.transform with parameters of type String Modifier and Type Method Description abstract SourceTransformerFactory. getAssociatedStylesheet(Source source, String media, String title, String charset)Get the stylesheet specification(s) associated with the XMLSourcedocument via the xml-stylesheet processing instruction that match the given criteria.abstract ObjectTransformerFactory. getAttribute(String name)Allows the user to retrieve specific attributes on the underlying implementation.abstract booleanTransformerFactory. getFeature(String name)Look up the value of a feature.abstract StringTransformer. getOutputProperty(String name)Get an output property that is in effect for the transformer.abstract ObjectTransformer. getParameter(String name)Get a parameter that was explicitly set with setParameter.static TransformerFactoryTransformerFactory. newInstance(String factoryClassName, ClassLoader classLoader)Obtain a new instance of aTransformerFactoryfrom factory class name.SourceURIResolver. resolve(String href, String base)Called by the processor when it encounters an xsl:include, xsl:import, or document() function.abstract voidTransformerFactory. setAttribute(String name, Object value)Allows the user to set specific attributes on the underlying implementation.abstract voidTransformerFactory. setFeature(String name, boolean value)Set a feature for thisTransformerFactoryandTransformers orTemplates created by this factory.abstract voidTransformer. setOutputProperty(String name, String value)Set an output property that will be in effect for the transformation.abstract voidTransformer. setParameter(String name, Object value)Add a parameter for the transformation.voidResult. setSystemId(String systemId)Set the system identifier for this Result.voidSource. setSystemId(String systemId)Set the system identifier for this Source.Constructors in javax.xml.transform with parameters of type String Constructor Description TransformerConfigurationException(String msg)Create a newTransformerConfigurationExceptionwith theStringspecified as an error message.TransformerConfigurationException(String msg, Throwable e)Create a newTransformerConfigurationExceptionwith the givenExceptionbase cause and detail message.TransformerConfigurationException(String message, SourceLocator locator)Create a new TransformerConfigurationException from a message and a Locator.TransformerConfigurationException(String message, SourceLocator locator, Throwable e)Wrap an existing exception in a TransformerConfigurationException.TransformerException(String message)Create a new TransformerException.TransformerException(String message, Throwable e)Wrap an existing exception in a TransformerException.TransformerException(String message, SourceLocator locator)Create a new TransformerException from a message and a Locator.TransformerException(String message, SourceLocator locator, Throwable e)Wrap an existing exception in a TransformerException.TransformerFactoryConfigurationError(Exception e, String msg)Create a newTransformerFactoryConfigurationErrorwith the givenExceptionbase cause and detail message.TransformerFactoryConfigurationError(String msg)Create a newTransformerFactoryConfigurationErrorwith theStringspecified as an error message. -
Uses of String in javax.xml.transform.dom
Fields in javax.xml.transform.dom declared as String Modifier and Type Field Description static StringDOMResult. FEATUREIfTransformerFactory.getFeature(java.lang.String)returnstruewhen passed this value as an argument, theTransformersupportsResultoutput of this type.static StringDOMSource. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the Transformer supports Source input of this type.Methods in javax.xml.transform.dom that return String Modifier and Type Method Description StringDOMResult. getSystemId()Get the System Identifier.StringDOMSource. getSystemId()Get the base ID (URL or system ID) from where URLs will be resolved.Methods in javax.xml.transform.dom with parameters of type String Modifier and Type Method Description voidDOMResult. setSystemId(String systemId)Set the systemId that may be used in association with the node.voidDOMSource. setSystemId(String systemID)Set the base ID (URL or system ID) from where URLs will be resolved.Constructors in javax.xml.transform.dom with parameters of type String Constructor Description DOMResult(Node node, String systemId)Use a DOM node to create a new output target with the specified System ID.DOMResult(Node node, Node nextSibling, String systemId)Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before and the specified System ID.DOMSource(Node node, String systemID)Create a new input source with a DOM node, and with the system ID also passed in as the base URI. -
Uses of String in javax.xml.transform.sax
Fields in javax.xml.transform.sax declared as String Modifier and Type Field Description static StringSAXResult. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the Transformer supports Result output of this type.static StringSAXSource. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the Transformer supports Source input of this type.static StringSAXTransformerFactory. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the TransformerFactory returned fromTransformerFactory.newInstance()may be safely cast to a SAXTransformerFactory.static StringSAXTransformerFactory. FEATURE_XMLFILTERIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, theSAXTransformerFactory.newXMLFilter(Source src)andSAXTransformerFactory.newXMLFilter(Templates templates)methods are supported.Methods in javax.xml.transform.sax that return String Modifier and Type Method Description StringSAXResult. getSystemId()Get the system identifier that was set with setSystemId.StringSAXSource. getSystemId()Get the base ID (URI or system ID) from where URIs will be resolved.StringTemplatesHandler. getSystemId()Get the base ID (URI or system ID) from where relative URLs will be resolved.StringTransformerHandler. getSystemId()Get the base ID (URI or system ID) from where relative URLs will be resolved.Methods in javax.xml.transform.sax with parameters of type String Modifier and Type Method Description voidSAXResult. setSystemId(String systemId)Method setSystemId Set the systemID that may be used in association with theContentHandler.voidSAXSource. setSystemId(String systemId)Set the system identifier for this Source.voidTemplatesHandler. setSystemId(String systemID)Set the base ID (URI or system ID) for the Templates object created by this builder.voidTransformerHandler. setSystemId(String systemID)Set the base ID (URI or system ID) from where relative URLs will be resolved. -
Uses of String in javax.xml.transform.stax
Fields in javax.xml.transform.stax declared as String Modifier and Type Field Description static StringStAXResult. FEATUREIfTransformerFactory.getFeature(String name)returns true when passed this value as an argument, the Transformer supports Result output of this type.static StringStAXSource. FEATUREIfTransformerFactory.getFeature(String name)returns true when passed this value as an argument, the Transformer supports Source input of this type.Methods in javax.xml.transform.stax that return String Modifier and Type Method Description StringStAXResult. getSystemId()The returned system identifier is alwaysnull.StringStAXSource. getSystemId()Get the system identifier used by thisStAXSource.Methods in javax.xml.transform.stax with parameters of type String Modifier and Type Method Description voidStAXResult. setSystemId(String systemId)In the context of aStAXResult, it is not appropriate to explicitly set the system identifier.voidStAXSource. setSystemId(String systemId)In the context of aStAXSource, it is not appropriate to explicitly set the system identifier. -
Uses of String in javax.xml.transform.stream
Fields in javax.xml.transform.stream declared as String Modifier and Type Field Description static StringStreamResult. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the Transformer supports Result output of this type.static StringStreamSource. FEATUREIfTransformerFactory.getFeature(java.lang.String)returns true when passed this value as an argument, the Transformer supports Source input of this type.Methods in javax.xml.transform.stream that return String Modifier and Type Method Description StringStreamSource. getPublicId()Get the public identifier that was set with setPublicId.StringStreamResult. getSystemId()Get the system identifier that was set with setSystemId.StringStreamSource. getSystemId()Get the system identifier that was set with setSystemId.Methods in javax.xml.transform.stream with parameters of type String Modifier and Type Method Description voidStreamSource. setPublicId(String publicId)Set the public identifier for this Source.voidStreamResult. setSystemId(String systemId)Set the systemID that may be used in association with the byte or character stream, or, if neither is set, use this value as a writeable URI (probably a file name).voidStreamSource. setSystemId(String systemId)Set the system identifier for this Source.Constructors in javax.xml.transform.stream with parameters of type String Constructor Description StreamResult(String systemId)Construct a StreamResult from a URL.StreamSource(InputStream inputStream, String systemId)Construct a StreamSource from a byte stream.StreamSource(Reader reader, String systemId)Construct a StreamSource from a character reader.StreamSource(String systemId)Construct a StreamSource from a URL. -
Uses of String in javax.xml.validation
Methods in javax.xml.validation with parameters of type String Modifier and Type Method Description booleanSchemaFactory. getFeature(String name)Look up the value of a feature flag.booleanValidator. getFeature(String name)Look up the value of a feature flag.booleanValidatorHandler. getFeature(String name)Look up the value of a feature flag.ObjectSchemaFactory. getProperty(String name)Look up the value of a property.ObjectValidator. getProperty(String name)Look up the value of a property.ObjectValidatorHandler. getProperty(String name)Look up the value of a property.abstract booleanSchemaFactory. isSchemaLanguageSupported(String schemaLanguage)Is specified schema supported by thisSchemaFactory?abstract SchemaFactorySchemaFactoryLoader. newFactory(String schemaLanguage)Creates a newSchemaFactoryobject for the specified schema language.static SchemaFactorySchemaFactory. newInstance(String schemaLanguage)Lookup an implementation of theSchemaFactorythat supports the specified schema language and return it.static SchemaFactorySchemaFactory. newInstance(String schemaLanguage, String factoryClassName, ClassLoader classLoader)Obtain a new instance of aSchemaFactoryfrom class name.voidSchemaFactory. setFeature(String name, boolean value)Set a feature for thisSchemaFactory,Schemas created by this factory, and by extension,Validators andValidatorHandlers created by thoseSchemas.voidValidator. setFeature(String name, boolean value)Set the value of a feature flag.voidValidatorHandler. setFeature(String name, boolean value)Set a feature for thisValidatorHandler.voidSchemaFactory. setProperty(String name, Object object)Set the value of a property.voidValidator. setProperty(String name, Object object)Set the value of a property.voidValidatorHandler. setProperty(String name, Object object)Set the value of a property.Constructors in javax.xml.validation with parameters of type String Constructor Description SchemaFactoryConfigurationError(String message)Create a newSchemaFactoryConfigurationErrorwith theStringspecified as an error message.SchemaFactoryConfigurationError(String message, Throwable cause)Create a newSchemaFactoryConfigurationErrorwith the givenThrowablebase cause and detail message. -
Uses of String in javax.xml.xpath
Fields in javax.xml.xpath declared as String Modifier and Type Field Description static StringXPathFactory. DEFAULT_OBJECT_MODEL_URIDefault Object Model URI.static StringXPathFactory. DEFAULT_PROPERTY_NAMEThe default property name according to the JAXP spec.static StringXPathConstants. DOM_OBJECT_MODELThe URI for the DOM object model, "http://java.sun.com/jaxp/xpath/dom".Methods in javax.xml.xpath that return String Modifier and Type Method Description StringXPath. evaluate(String expression, Object item)Evaluate an XPath expression in the specified context and return the result as aString.StringXPath. evaluate(String expression, InputSource source)Evaluate an XPath expression in the context of the specifiedInputSourceand return the result as aString.StringXPathExpression. evaluate(Object item)Evaluate the compiled XPath expression in the specified context and return the result as aString.StringXPathExpression. evaluate(InputSource source)Evaluate the compiled XPath expression in the context of the specifiedInputSourceand return the result as aString.Methods in javax.xml.xpath with parameters of type String Modifier and Type Method Description XPathExpressionXPath. compile(String expression)Compile an XPath expression for later evaluation.StringXPath. evaluate(String expression, Object item)Evaluate an XPath expression in the specified context and return the result as aString.ObjectXPath. evaluate(String expression, Object item, QName returnType)Evaluate anXPathexpression in the specified context and return the result as the specified type.StringXPath. evaluate(String expression, InputSource source)Evaluate an XPath expression in the context of the specifiedInputSourceand return the result as aString.ObjectXPath. evaluate(String expression, InputSource source, QName returnType)Evaluate an XPath expression in the context of the specifiedInputSourceand return the result as the specified type.default XPathEvaluationResult<?>XPath. evaluateExpression(String expression, Object item)Evaluate an XPath expression in the specified context.default <T> TXPath. evaluateExpression(String expression, Object item, Class<T> type)Evaluate an XPath expression in the specified context and return the result with the type specified through theclass typedefault XPathEvaluationResult<?>XPath. evaluateExpression(String expression, InputSource source)Evaluate an XPath expression in the specified context.default <T> TXPath. evaluateExpression(String expression, InputSource source, Class<T> type)Evaluate an XPath expression in the context of the specifiedsourceand return the result as specified.abstract booleanXPathFactory. getFeature(String name)Get the state of the named feature.abstract booleanXPathFactory. isObjectModelSupported(String objectModel)Is specified object model supported by thisXPathFactory?static XPathFactoryXPathFactory. newInstance(String uri)Get a newXPathFactoryinstance using the specified object model.static XPathFactoryXPathFactory. newInstance(String uri, String factoryClassName, ClassLoader classLoader)Obtain a new instance of aXPathFactoryfrom a factory class name.abstract voidXPathFactory. setFeature(String name, boolean value)Set a feature for thisXPathFactoryandXPaths created by this factory.static XPathEvaluationResult.XPathResultTypeXPathEvaluationResult.XPathResultType. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in javax.xml.xpath with parameters of type String Constructor Description XPathException(String message)Constructs a newXPathExceptionwith the specified detailmessage.XPathExpressionException(String message)Constructs a newXPathExpressionExceptionwith the specified detailmessage.XPathFactoryConfigurationException(String message)Constructs a newXPathFactoryConfigurationExceptionwith the specified detailmessage.XPathFunctionException(String message)Constructs a newXPathFunctionExceptionwith the specified detailmessage. -
Uses of String in jdk.dynalink
Fields in jdk.dynalink declared as String Modifier and Type Field Description static StringSecureLookupSupplier. GET_LOOKUP_PERMISSION_NAMEThe name of a runtime permission required to successfully invoke theSecureLookupSupplier.getLookup()method.Methods in jdk.dynalink that return String Modifier and Type Method Description StringCallSiteDescriptor. toString()Returns the string representation of this call site descriptor, of the formatname(parameterTypes)returnType@lookup.StringNamedOperation. toString()Returns the string representation of this named operation.StringNamespaceOperation. toString()Returns the string representation of this namespace operation.Methods in jdk.dynalink with parameters of type String Modifier and Type Method Description NamedOperationNamedOperation. changeName(String newName)Finds or creates a named operation that differs from this one only in the name.static StandardNamespaceStandardNamespace. valueOf(String name)Returns the enum constant of this type with the specified name.static StandardOperationStandardOperation. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in jdk.dynalink with parameters of type String Constructor Description NoSuchDynamicMethodException(String message)Creates a new NoSuchDynamicMethodException -
Uses of String in jdk.dynalink.beans
Methods in jdk.dynalink.beans that return types with arguments of type String Modifier and Type Method Description static Set<String>BeansLinker. getInstanceMethodNames(Class<?> clazz)Returns a set of names of all instance methods of a class.static Set<String>BeansLinker. getReadableInstancePropertyNames(Class<?> clazz)Returns a set of names of all readable instance properties of a class.static Set<String>BeansLinker. getReadableStaticPropertyNames(Class<?> clazz)Returns a set of names of all readable static properties of a class.static Set<String>BeansLinker. getStaticMethodNames(Class<?> clazz)Returns a set of names of all static methods of a class.static Set<String>BeansLinker. getWritableInstancePropertyNames(Class<?> clazz)Returns a set of names of all writable instance properties of a class.static Set<String>BeansLinker. getWritableStaticPropertyNames(Class<?> clazz)Returns a set of names of all writable static properties of a class.Methods in jdk.dynalink.beans with parameters of type String Modifier and Type Method Description static ObjectBeansLinker. getConstructorMethod(Class<?> clazz, String signature)Return the dynamic method of constructor of the given class and the given signature. -
Uses of String in jdk.dynalink.linker
Fields in jdk.dynalink.linker declared as String Modifier and Type Field Description static StringGuardingDynamicLinkerExporter. AUTOLOAD_PERMISSION_NAMEThe name of the runtime permission for creating instances of this class.Methods in jdk.dynalink.linker with parameters of type String Modifier and Type Method Description static ConversionComparator.ComparisonConversionComparator.Comparison. valueOf(String name)Returns the enum constant of this type with the specified name. -
Uses of String in jdk.dynalink.linker.support
Methods in jdk.dynalink.linker.support with parameters of type String Modifier and Type Method Description MethodHandleLookup. findGetter(Class<?> refc, String name, Class<?> type)Performs aMethodHandles.Lookup.findGetter(Class, String, Class), converting any encounteredIllegalAccessExceptioninto anIllegalAccessErrorandNoSuchFieldExceptioninto aNoSuchFieldError.static MethodHandleLookup. findOwnSpecial(MethodHandles.Lookup lookup, String name, Class<?> rtype, Class<?>... ptypes)Given a lookup, finds usingLookup.findSpecial(Class, String, MethodType)a method on that lookup's class.MethodHandleLookup. findOwnSpecial(String name, Class<?> rtype, Class<?>... ptypes)Finds usingLookup.findSpecial(Class, String, MethodType)a method on that lookup's class.static MethodHandleLookup. findOwnStatic(MethodHandles.Lookup lookup, String name, Class<?> rtype, Class<?>... ptypes)Given a lookup, finds usingLookup.findStatic(Class, String, MethodType)a method on that lookup's class.MethodHandleLookup. findOwnStatic(String name, Class<?> rtype, Class<?>... ptypes)Finds usingLookup.findStatic(Class, String, MethodType)a method on that lookup's class.MethodHandleLookup. findSpecial(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findSpecial(Class, String, MethodType, Class)on the underlying lookup.MethodHandleLookup. findStatic(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findStatic(Class, String, MethodType)on the underlying lookup.MethodHandleLookup. findVirtual(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findVirtual(Class, String, MethodType)on the underlying lookup.static Class<?>TypeUtilities. getPrimitiveTypeByName(String name)Given a name of a primitive type returns the class representing it. -
Uses of String in jdk.javadoc.doclet
Methods in jdk.javadoc.doclet that return String Modifier and Type Method Description StringDoclet.Option. getDescription()Returns the description of the option.StringDoclet. getName()Returns a name identifying the doclet.StringTaglet. getName()Returns the name of the tag.StringDoclet.Option. getParameters()Returns the parameters of the option.StringTaglet. toString(List<? extends DocTree> tags, Element element)Returns the string representation of a series of instances of this tag to be included in the generated output.Methods in jdk.javadoc.doclet that return types with arguments of type String Modifier and Type Method Description List<String>Doclet.Option. getNames()Returns the list of names that may be used to identify the option.Methods in jdk.javadoc.doclet with parameters of type String Modifier and Type Method Description voidReporter. print(Diagnostic.Kind kind, DocTreePath path, String msg)Print an error message and increment error count.voidReporter. print(Diagnostic.Kind kind, String msg)Print error message and increment error count.voidReporter. print(Diagnostic.Kind kind, Element e, String msg)Print an error message and increment error count.booleanDoclet.Option. process(String option, List<String> arguments)Processes the option and arguments as needed.static Doclet.Option.KindDoclet.Option.Kind. valueOf(String name)Returns the enum constant of this type with the specified name.static DocletEnvironment.ModuleModeDocletEnvironment.ModuleMode. valueOf(String name)Returns the enum constant of this type with the specified name.static Taglet.LocationTaglet.Location. valueOf(String name)Returns the enum constant of this type with the specified name.Method parameters in jdk.javadoc.doclet with type arguments of type String Modifier and Type Method Description booleanDoclet.Option. process(String option, List<String> arguments)Processes the option and arguments as needed. -
Uses of String in jdk.jfr
Fields in jdk.jfr declared as String Modifier and Type Field Description static StringDataAmount. BITSUnit for bitsstatic StringDataAmount. BYTESUnit for bytesstatic StringTimespan. MICROSECONDSUnit for microseconds.static StringTimespan. MILLISECONDSUnit for milliseconds.static StringTimestamp. MILLISECONDS_SINCE_EPOCHThe unit for the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.static StringEnabled. NAMESetting name"enabled", signifies that the event should be recorded.static StringPeriod. NAMESettings name"period"for configuring periodic eventsstatic StringStackTrace. NAMESettings name"stackTrace"to be used for enabling event stack traces.static StringThreshold. NAMESetting name"threshold"for configuring event thresholds.static StringTimespan. NANOSECONDSUnit for nanoseconds.static StringTimespan. SECONDSUnit for seconds.static StringTimespan. TICKSUnit for ticks.static StringTimestamp. TICKSThe unit for the number of ticks that have transpired since some arbitrary starting date.Methods in jdk.jfr that return String Modifier and Type Method Description abstract StringSettingControl. combine(Set<String> settingValues)Combines the setting values for all running recordings into one value when multiple recordings are running at the same time,StringConfiguration. getContents()Returns a textual representation of the configuration (for example, the contents of a JFC file).StringSettingDescriptor. getContentType()Returns a textual identifier that specifies how a value that is represented by thisSettingDescriptorobject is interpreted or formatted.StringValueDescriptor. getContentType()Returns a textual identifier that specifies how a value represented by thisValueDescriptoris interpreted or formatted.StringSettingDescriptor. getDefaultValue()Returns the default value for this setting descriptor.StringConfiguration. getDescription()Returns a short sentence that describes the configuration (for example"Low overhead configuration safe for continuous use in production environments")StringEventType. getDescription()Returns a short sentence that describes the event class.StringSettingDescriptor. getDescription()Returns a sentence that describes the setting (for example"Record event with duration above or equal to threshold").StringValueDescriptor. getDescription()Returns a sentence describing the value (for example,"Maximum throughput in the transaction system. Value is reset after each new batch.").StringConfiguration. getLabel()Returns a human-readable name (for example,"Continuous" or "Profiling"}.StringEventType. getLabel()Returns a human-readable name (for example,"CPU Load").StringSettingDescriptor. getLabel()Returns a human-readable name that describes the setting (for example,"Threshold").StringValueDescriptor. getLabel()Returns a human-readable name that describes the value (for example,"Maximum Throughput").StringConfiguration. getName()Returns an identifying name (for example,"default" or "profile").StringEventType. getName()Returns an identifier for the event (for example,"jdk.CPULoad").StringRecording. getName()Returns the name of this recording.StringSettingDescriptor. getName()Returns the name of the setting (for example,"threshold").StringValueDescriptor. getName()Returns the name of the value (for example,"maxThroughput").StringConfiguration. getProvider()Returns who created the configuration (for example"OpenJDK").StringAnnotationElement. getTypeName()Returns the fully qualified name of the annotation type that corresponds to thisAnnotationElement(for example,"jdk.jfr.Label").StringSettingDescriptor. getTypeName()Returns the fully qualified class name of the type that is associated with this setting descriptor.StringValueDescriptor. getTypeName()Returns the fully qualified class name of the type that is associated with this value descriptor.abstract StringSettingControl. getValue()Returns the currently used value for this setting, notnull.String[]value()Returns the category names for this annotation, starting with the root.Stringvalue()Returns the unit for the data amount, by default bytes.Stringvalue()Returns a sentence or two that describes the annotated element.Stringvalue()Returns a human-readable name for the annotated element.Stringvalue()Returns the name.Stringvalue()Returns the default setting value for a periodic setting.Stringvalue()The threshold (for example,"20 ms").Stringvalue()Returns the unit of measure for the time span.Stringvalue()Unit for the time stamp.Methods in jdk.jfr that return types with arguments of type String Modifier and Type Method Description List<String>EventType. getCategoryNames()Returns the list of human-readable names that makes up the categories for this event type (for example,"Java Application","Statistics").Map<String,String>Configuration. getSettings()Returns the settings that specifies how a recording is configured.Map<String,String>Configuration. getSettings()Returns the settings that specifies how a recording is configured.Map<String,String>Recording. getSettings()Returns settings used by this recording.Map<String,String>Recording. getSettings()Returns settings used by this recording.Methods in jdk.jfr with parameters of type String Modifier and Type Method Description EventSettingsRecording. disable(String name)Disables event with the specified name.EventSettingsRecording. enable(String name)Enables the event with the specified name.static ConfigurationConfiguration. getConfiguration(String name)Returns a predefined configuration.ValueDescriptorEventType. getField(String name)Returns the field with the specified name, ornullif it doesn't exist.ObjectAnnotationElement. getValue(String name)Returns a value for thisAnnotationElement.booleanAnnotationElement. hasValue(String name)Returnstrueif an annotation value with the specified name exists in thisAnnotationElement.voidRecording. setName(String name)Sets a human-readable name (for example,"My Recording").abstract voidSettingControl. setValue(String settingValue)Sets the value for this setting.static RecordingStateRecordingState. valueOf(String name)Returns the enum constant of this type with the specified name.abstract EventSettingsEventSettings. with(String name, String value)Sets a setting value for the event that is associated with this event setting.Method parameters in jdk.jfr with type arguments of type String Modifier and Type Method Description abstract StringSettingControl. combine(Set<String> settingValues)Combines the setting values for all running recordings into one value when multiple recordings are running at the same time,voidRecording. setSettings(Map<String,String> settings)Replaces all settings for this recording.voidRecording. setSettings(Map<String,String> settings)Replaces all settings for this recording.Constructors in jdk.jfr with parameters of type String Constructor Description FlightRecorderPermission(String name)Constructs aFlightRecorderPermissionwith the specified name.ValueDescriptor(Class<?> type, String name)Constructs a value descriptor, useful for dynamically creating event types and annotations.ValueDescriptor(Class<?> type, String name, List<AnnotationElement> annotations)Constructs a value descriptor, useful for dynamically creating event types and annotations.Constructor parameters in jdk.jfr with type arguments of type String Constructor Description AnnotationElement(Class<? extends Annotation> annotationType, Map<String,Object> values)Creates an annotation element to use for dynamically defined events.Recording(Map<String,String> settings)Recording(Map<String,String> settings) -
Uses of String in jdk.jfr.consumer
Methods in jdk.jfr.consumer that return String Modifier and Type Method Description StringRecordedMethod. getDescriptor()Returns the method descriptor for this method (for example,"(Ljava/lang/String;)V").StringRecordedThread. getJavaName()Returns the Java thread name, ornullif if doesn't exist.StringRecordedClass. getName()Returns the fully qualified name of the class (for example,"java.lang.String").StringRecordedClassLoader. getName()Returns the name of the class loader (for example, "boot", "platform", and "app").StringRecordedMethod. getName()Returns the name of this method, for example"toString".StringRecordedThreadGroup. getName()Returns the name of the thread group, ornullif doesn't exist.StringRecordedThread. getOSName()Returns the thread name used by the operating system.StringRecordedObject. getString(String name)Returns the value of a field of typeString.StringRecordedFrame. getType()Returns the frame type for the execution point that is represented by this recorded frame (for example,"Interpreted","JIT compiled"or"Inlined").StringRecordedObject. toString()Returns a textual representation of this object.Methods in jdk.jfr.consumer with parameters of type String Modifier and Type Method Description booleanRecordedObject. getBoolean(String name)Returns the value of a field of typeboolean.byteRecordedObject. getByte(String name)Returns the value of a field of typebyte.charRecordedObject. getChar(String name)Returns the value of a field of typechar.RecordedClassRecordedObject. getClass(String name)Returns the value of a field of typeClass.doubleRecordedObject. getDouble(String name)Returns the value of a field of typedoubleor of another primitive type that is convertible to typedoubleby a widening conversion.DurationRecordedObject. getDuration(String name)Returns the value of a timespan field.floatRecordedObject. getFloat(String name)Returns the value of a field of typefloator of another primitive type convertible to typefloatby a widening conversion.InstantRecordedObject. getInstant(String name)Returns the value of a timestamp field.intRecordedObject. getInt(String name)Returns the value of a field of typeintor of another primitive type that is convertible to typeintby a widening conversion.longRecordedObject. getLong(String name)Returns the value of a field of typelongor of another primitive type that is convertible to typelongby a widening conversion.shortRecordedObject. getShort(String name)Returns the value of a field of typeshortor of another primitive type convertible to typeshortby a widening conversion.StringRecordedObject. getString(String name)Returns the value of a field of typeString.RecordedThreadRecordedObject. getThread(String name)Returns the value of a field of typeThread.<T> TRecordedObject. getValue(String name)Returns the value of the field with the given name.booleanRecordedObject. hasField(String name)Returnstrueif a field with the given name exists,falseotherwise. -
Uses of String in jdk.jshell
Methods in jdk.jshell that return String Modifier and Type Method Description abstract StringSourceCodeAnalysis. analyzeType(String code, int cursor)Infer the type of the given expression.StringSourceCodeAnalysis.Suggestion. continuation()The candidate continuation of the given user's input.StringSourceCodeAnalysis.SnippetWrapper. fullClassName()Returns the fully qualified class name of theSourceCodeAnalysis.SnippetWrapper.wrapped()class.StringImportSnippet. fullname()The qualified name of the import.abstract StringDiag. getCode()Returns a diagnostic code indicating the type of diagnostic.StringEvalException. getExceptionClassName()Returns the name of the Throwable subclass which was thrown in the executing client.abstract StringDiag. getMessage(Locale locale)Returns a localized message for the given locale.StringSnippet. id()The unique identifier for the snippet.StringSourceCodeAnalysis.Documentation. javadoc()The javadoc of the given element.StringExpressionSnippet. name()Variable name which is the value of the expression.StringImportSnippet. name()The identifying name of the import.StringPersistentSnippet. name()Name of the Snippet.StringMethodSnippet. parameterTypes()A String representation of the parameter types of the method.StringSourceCodeAnalysis.CompletionInfo. remaining()Input remaining after the complete part of the source.StringMethodSnippet. signature()The full type signature of the method, including return type.StringSourceCodeAnalysis.Documentation. signature()The signature of the given element.StringSnippet. source()Return the source code of the snippet.StringSourceCodeAnalysis.CompletionInfo. source()Source code for the first Snippet of code input.StringSourceCodeAnalysis.SnippetWrapper. source()Returns the input that is wrapped.StringSnippetEvent. toString()Return a string representation of the eventStringExpressionSnippet. typeName()Type of the expressionStringVarSnippet. typeName()A String representation of the type of the variable.StringSnippetEvent. value()The result value of successful run.StringJShell. varValue(VarSnippet snippet)Get the current value of a variable.StringSourceCodeAnalysis.SnippetWrapper. wrapped()Returns a Java class definition that wraps theSourceCodeAnalysis.SnippetWrapper.source()or, if an import, the import source.Methods in jdk.jshell that return types with arguments of type String Modifier and Type Method Description List<String>SourceCodeAnalysis.QualifiedNames. getNames()Known qualified names for the given simple name in the original code.Stream<String>JShell. unresolvedDependencies(DeclarationSnippet snippet)ForRECOVERABLE_DEFINEDorRECOVERABLE_NOT_DEFINEDdeclarations, the names of current unresolved dependencies for the snippet.Methods in jdk.jshell with parameters of type String Modifier and Type Method Description voidJShell. addToClasspath(String path)The specified path is added to the end of the classpath used in eval().abstract SourceCodeAnalysis.CompletionInfoSourceCodeAnalysis. analyzeCompletion(String input)Given an input string, find the first snippet of code (one statement, definition, import, or expression) and evaluate if it is complete.abstract StringSourceCodeAnalysis. analyzeType(String code, int cursor)Infer the type of the given expression.JShell.BuilderJShell.Builder. compilerOptions(String... options)Adds compiler options.abstract List<SourceCodeAnalysis.Suggestion>SourceCodeAnalysis. completionSuggestions(String input, int cursor, int[] anchor)Compute possible follow-ups for the given input.abstract List<SourceCodeAnalysis.Documentation>SourceCodeAnalysis. documentation(String input, int cursor, boolean computeJavadoc)Compute documentation for the given user's input.List<SnippetEvent>JShell. eval(String input)Evaluate the input String, including definition and/or execution, if applicable.JShell.BuilderJShell.Builder. executionEngine(String executionControlSpec)Sets the custom engine for execution.abstract SourceCodeAnalysis.QualifiedNamesSourceCodeAnalysis. listQualifiedNames(String code, int cursor)List qualified names known for the simple name in the given code immediately to the left of the given cursor position.JShell.BuilderJShell.Builder. remoteVMOptions(String... options)Sets additional VM options for launching the VM.abstract List<Snippet>SourceCodeAnalysis. sourceToSnippets(String input)Converts the source code of a snippet into aSnippetobject (or list ofSnippetobjects in the case of some var declarations, e.g.: int x, y, z;).static Snippet.KindSnippet.Kind. valueOf(String name)Returns the enum constant of this type with the specified name.static Snippet.StatusSnippet.Status. valueOf(String name)Returns the enum constant of this type with the specified name.static Snippet.SubKindSnippet.SubKind. valueOf(String name)Returns the enum constant of this type with the specified name.static SourceCodeAnalysis.CompletenessSourceCodeAnalysis.Completeness. valueOf(String name)Returns the enum constant of this type with the specified name.abstract List<SourceCodeAnalysis.SnippetWrapper>SourceCodeAnalysis. wrappers(String input)Returns the wrapper information for the snippet within the input source string.Method parameters in jdk.jshell with type arguments of type String Modifier and Type Method Description JShell.BuilderJShell.Builder. executionEngine(ExecutionControlProvider executionControlProvider, Map<String,String> executionControlParameters)Sets the custom engine for execution.JShell.BuilderJShell.Builder. executionEngine(ExecutionControlProvider executionControlProvider, Map<String,String> executionControlParameters)Sets the custom engine for execution.JShell.BuilderJShell.Builder. idGenerator(BiFunction<Snippet,Integer,String> generator)Sets the generator of identifying names for Snippets.JShell.BuilderJShell.Builder. tempVariableNameGenerator(Supplier<String> generator)Sets a generator of temp variable names forVarSnippetofSnippet.SubKind.TEMP_VAR_EXPRESSION_SUBKIND. -
Uses of String in jdk.jshell.execution
Fields in jdk.jshell.execution declared as String Modifier and Type Field Description static StringJdiExecutionControlProvider. PARAM_HOST_NAMEThe local hostname to connect to.static StringJdiExecutionControlProvider. PARAM_LAUNCHShould JDI-controlled launching be used?static StringJdiExecutionControlProvider. PARAM_REMOTE_AGENTThe remote agent to launch.static StringJdiExecutionControlProvider. PARAM_TIMEOUTMilliseconds before connect timeout.Methods in jdk.jshell.execution that return String Modifier and Type Method Description protected StringDirectExecutionControl. invoke(Method doitMethod)Invoke the specified "doit-method", a static method with no parameters.StringFailOverExecutionControlProvider. name()The unique name of thisExecutionControlProvider.StringJdiExecutionControlProvider. name()The unique name of thisExecutionControlProvider.StringLocalExecutionControlProvider. name()The unique name of thisExecutionControlProvider.protected StringDirectExecutionControl. throwConvertedInvocationException(Throwable cause)Converts incoming exceptions in user code into instances of subtypes ofExecutionControl.ExecutionControlExceptionand throws the converted exception.protected StringDirectExecutionControl. throwConvertedOtherException(Throwable ex)Converts incoming exceptions in agent code into instances of subtypes ofExecutionControl.ExecutionControlExceptionand throws the converted exception.protected static StringDirectExecutionControl. valueString(Object value)Converts theObjectvalue fromExecutionControl.invoke(String, String)orExecutionControl.varValue(String, String)toString.Methods in jdk.jshell.execution that return types with arguments of type String Modifier and Type Method Description Map<String,String>FailOverExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.Map<String,String>FailOverExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.Map<String,String>JdiExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.Map<String,String>JdiExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.Map<String,String>LocalExecutionControlProvider. defaultParameters()Create and return the default parameter map forLocalExecutionControlProvider.Map<String,String>LocalExecutionControlProvider. defaultParameters()Create and return the default parameter map forLocalExecutionControlProvider.Methods in jdk.jshell.execution with parameters of type String Modifier and Type Method Description voidLoaderDelegate. addToClasspath(String path)Adds the path to the execution class path.protected Class<?>DirectExecutionControl. findClass(String name)Finds the class with the specified binary name.Class<?>LoaderDelegate. findClass(String name)Finds the class with the specified binary name.static voidRemoteExecutionControl. main(String[] args)Launch the agent, connecting to the JShell-core over the socket specified in the command-line argument.protected ReferenceTypeJdiExecutionControl. referenceType(VirtualMachine vm, String name)Returns the JDIReferenceTypecorresponding to the specified class name.Method parameters in jdk.jshell.execution with type arguments of type String Modifier and Type Method Description static voidUtil. detectJdiExitEvent(VirtualMachine vm, Consumer<String> unbiddenExitHandler)Monitor the JDI event stream forVMDeathEventandVMDisconnectEvent.static voidUtil. forwardExecutionControlAndIO(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String,Consumer<OutputStream>> outputStreamMap, Map<String,Consumer<InputStream>> inputStreamMap)Forward commands from the input to the specifiedExecutionControlinstance, then responses back on the output.ExecutionControlFailOverExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.ExecutionControlFailOverExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.ExecutionControlLocalExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.ExecutionControlLocalExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.static ExecutionControlUtil. remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)Creates an ExecutionControl for given packetized input and output.Constructors in jdk.jshell.execution with parameters of type String Constructor Description JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent, boolean isLaunch, String host, int timeout, Map<String,String> customConnectorArgs)Start the remote agent and establish a JDI connection to it.Constructor parameters in jdk.jshell.execution with type arguments of type String Constructor Description JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent, boolean isLaunch, String host, int timeout, Map<String,String> customConnectorArgs)Start the remote agent and establish a JDI connection to it.JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent, boolean isLaunch, String host, int timeout, Map<String,String> customConnectorArgs)Start the remote agent and establish a JDI connection to it.JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent, boolean isLaunch, String host, int timeout, Map<String,String> customConnectorArgs)Start the remote agent and establish a JDI connection to it. -
Uses of String in jdk.jshell.spi
Methods in jdk.jshell.spi that return String Modifier and Type Method Description StringExecutionControl.UserException. causeExceptionClass()Returns the class of the user exception.StringExecutionControl. invoke(String className, String methodName)Invokes an executable Snippet by calling a method on the specified wrapper class.StringExecutionControl.ClassBytecodes. name()The class name.StringExecutionControlProvider. name()The unique name of thisExecutionControlProvider.StringExecutionControl. varValue(String className, String varName)Returns the value of a variable.Methods in jdk.jshell.spi that return types with arguments of type String Modifier and Type Method Description default Map<String,String>ExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.default Map<String,String>ExecutionControlProvider. defaultParameters()Create and return the default parameter map for thisExecutionControlProvider.List<String>ExecutionEnv. extraRemoteVMOptions()Returns the additional VM options to be used when launching the remote JVM.Methods in jdk.jshell.spi with parameters of type String Modifier and Type Method Description voidExecutionControl. addToClasspath(String path)Adds the path to the execution class path.ObjectExecutionControl. extensionCommand(String command, Object arg)Run a non-standard command (or a standard command from a newer version).static ExecutionControlExecutionControl. generate(ExecutionEnv env, String spec)Search for a provider, then create and return theExecutionControlinstance.static ExecutionControlExecutionControl. generate(ExecutionEnv env, String name, Map<String,String> parameters)Search for a provider, then create and return theExecutionControlinstance.StringExecutionControl. invoke(String className, String methodName)Invokes an executable Snippet by calling a method on the specified wrapper class.StringExecutionControl. varValue(String className, String varName)Returns the value of a variable.Method parameters in jdk.jshell.spi with type arguments of type String Modifier and Type Method Description static ExecutionControlExecutionControl. generate(ExecutionEnv env, String name, Map<String,String> parameters)Search for a provider, then create and return theExecutionControlinstance.static ExecutionControlExecutionControl. generate(ExecutionEnv env, String name, Map<String,String> parameters)Search for a provider, then create and return theExecutionControlinstance.ExecutionControlExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return theExecutionControlinstance.ExecutionControlExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return theExecutionControlinstance.Constructors in jdk.jshell.spi with parameters of type String Constructor Description ClassBytecodes(String name, byte[] bytecodes)Creates a name/bytecode pair.ClassInstallException(String message, boolean[] installed)EngineTerminationException(String message)ExecutionControlException(String message)InternalException(String message)NotImplementedException(String message)UserException(String message, String causeExceptionClass, StackTraceElement[] stackElements) -
Uses of String in jdk.jshell.tool
Methods in jdk.jshell.tool with parameters of type String Modifier and Type Method Description voidJavaShellToolBuilder. run(String... arguments)Run an instance of the Java shell tool as configured by the other methods in this interface.default intJavaShellToolBuilder. start(String... arguments)Run an instance of the Java shell tool as configured by the other methods in this interface.Method parameters in jdk.jshell.tool with type arguments of type String Modifier and Type Method Description JavaShellToolBuilderJavaShellToolBuilder. env(Map<String,String> vars)Set the source for environment variables.JavaShellToolBuilderJavaShellToolBuilder. env(Map<String,String> vars)Set the source for environment variables.JavaShellToolBuilderJavaShellToolBuilder. persistence(Map<String,String> prefsMap)Set the storage mechanism for persistent information which includes input history and retained settings.JavaShellToolBuilderJavaShellToolBuilder. persistence(Map<String,String> prefsMap)Set the storage mechanism for persistent information which includes input history and retained settings. -
Uses of String in jdk.management.jfr
Fields in jdk.management.jfr declared as String Modifier and Type Field Description static StringFlightRecorderMXBean. MXBEAN_NAMEString representation of theObjectNamefor theFlightRecorderMXBean.Methods in jdk.management.jfr that return String Modifier and Type Method Description StringConfigurationInfo. getContents()Returns the textual representation of the configuration associated with thisConfigurationInfo, typically the contents of the configuration file that was used to create the configuration.StringSettingDescriptorInfo. getContentType()Returns the content type of the setting associated thisSettingDescriptorInfo(for example,"jdk.jfr.Timespan").StringSettingDescriptorInfo. getDefaultValue()Returns the default value of the setting associated thisSettingDescriptorInfo(for example,"20 ms").StringConfigurationInfo. getDescription()Returns a short sentence that describes the configuration associated with thisConfigurationInfo(for example,"Low overhead configuration safe for continuous use in production environments".StringEventTypeInfo. getDescription()Returns a short sentence or two describing the event type associated with thisEventTypeInfo, for example"Garbage collection performed by the JVM"".StringSettingDescriptorInfo. getDescription()Returns the description of the setting associated thisSettingDescriptorInfo(for example,"The duration an event must exceed to be be recorded").StringRecordingInfo. getDestination()Returns destination path where data, for the recording associated with thisRecordingInfo, should be written when the recording stops, ornullif the recording should not be written.StringConfigurationInfo. getLabel()Returns the human-readable name (for example,"Continuous"or"Profiling") for the configuration associated with thisConfigurationInfoStringEventTypeInfo. getLabel()Returns the label, a human-readable name, associated with the event type for thisEventTypeInfo(for example,"Garbage Collection").StringSettingDescriptorInfo. getLabel()Returns the human-readable name of the setting associated with thisSettingDescriptorInfo(for example,"Threshold").StringConfigurationInfo. getName()Returns the name of the configuration associated with thisConfigurationInfo(for example,"default").StringEventTypeInfo. getName()Returns the name for the event type associated with thisEventTypeInfo(for example,"jdk.GarbageCollection").StringRecordingInfo. getName()Returns the name of the recording associated with thisRecordingInfo.StringSettingDescriptorInfo. getName()Returns the name of the setting associated with thisSettingDescriptorInfo(for example,"threshold").StringConfigurationInfo. getProvider()Returns the provider of the configuration associated with thisConfigurationInfo(for example,"OpenJDK").StringRecordingInfo. getState()Returns aStringrepresentation of state of the recording associated with thisRecordingInfo.StringSettingDescriptorInfo. getTypeName()Returns the type name of the setting associated thisSettingDescriptorInfo(for example,"jdk.settings.Threshold").StringConfigurationInfo. toString()Returns a description of the configuration that is associated with thisConfigurationInfo.StringEventTypeInfo. toString()Returns a description of thisEventTypeInfo.StringRecordingInfo. toString()Returns a string description of the recording associated with thisRecordingInfoStringSettingDescriptorInfo. toString()Returns aStringdescription of thisSettingDescriptorInfo.Methods in jdk.management.jfr that return types with arguments of type String Modifier and Type Method Description List<String>EventTypeInfo. getCategoryNames()Returns the list of human-readable names that makes up the category for thisEventTypeInfo(for example,"Java Virtual Machine"or"Garbage Collector").Map<String,String>FlightRecorderMXBean. getRecordingOptions(long recordingId)Returns a map that contains the options for the recording with the specified ID (for example, the destination file or time span to keep recorded data).Map<String,String>FlightRecorderMXBean. getRecordingOptions(long recordingId)Returns a map that contains the options for the recording with the specified ID (for example, the destination file or time span to keep recorded data).Map<String,String>FlightRecorderMXBean. getRecordingSettings(long recordingId)Returns aMapthat contains the settings for the recording with the specified ID, (for example, the event thresholds)Map<String,String>FlightRecorderMXBean. getRecordingSettings(long recordingId)Returns aMapthat contains the settings for the recording with the specified ID, (for example, the event thresholds)Map<String,String>ConfigurationInfo. getSettings()Returns the settings for the configuration associated with thisConfigurationInfo.Map<String,String>ConfigurationInfo. getSettings()Returns the settings for the configuration associated with thisConfigurationInfo.Map<String,String>RecordingInfo. getSettings()Returns the settings for the recording associated with thisRecordingInfo.Map<String,String>RecordingInfo. getSettings()Returns the settings for the recording associated with thisRecordingInfo.Methods in jdk.management.jfr with parameters of type String Modifier and Type Method Description voidFlightRecorderMXBean. copyTo(long recordingId, String outputFile)Writes recording data to the specified file.voidFlightRecorderMXBean. setConfiguration(long recordingId, String contents)Sets a configuration as a string representation for the recording with the specified ID.voidFlightRecorderMXBean. setPredefinedConfiguration(long recordingId, String configurationName)Sets a predefined configuration for the recording with the specified ID.Method parameters in jdk.management.jfr with type arguments of type String Modifier and Type Method Description longFlightRecorderMXBean. openStream(long recordingId, Map<String,String> streamOptions)Opens a data stream for the recording with the specified ID, or0to get data irrespective of recording.longFlightRecorderMXBean. openStream(long recordingId, Map<String,String> streamOptions)Opens a data stream for the recording with the specified ID, or0to get data irrespective of recording.voidFlightRecorderMXBean. setRecordingOptions(long recordingId, Map<String,String> options)Configures the recording options (for example, destination file and time span to keep data).voidFlightRecorderMXBean. setRecordingOptions(long recordingId, Map<String,String> options)Configures the recording options (for example, destination file and time span to keep data).voidFlightRecorderMXBean. setRecordingSettings(long recordingId, Map<String,String> settings)Sets and replaces all previous settings for the specified recording.voidFlightRecorderMXBean. setRecordingSettings(long recordingId, Map<String,String> settings)Sets and replaces all previous settings for the specified recording. -
Uses of String in jdk.nashorn.api.scripting
Fields in jdk.nashorn.api.scripting declared as String Modifier and Type Field Description static StringNashornScriptEngine. NASHORN_GLOBALDeprecated, for removal: This API element is subject to removal in a future version.Key used to associate Nashorn global object mirror with arbitrary Bindings instance.Methods in jdk.nashorn.api.scripting that return String Modifier and Type Method Description static StringScriptUtils. format(String format, Object[] args)Deprecated, for removal: This API element is subject to removal in a future version.Method which converts javascript types to java types for the String.format method (jrunscript function sprintf).StringJSObject. getClassName()Deprecated, for removal: This API element is subject to removal in a future version.ECMA [[Class]] propertyStringNashornException. getFileName()Deprecated, for removal: This API element is subject to removal in a future version.Get the source file name for thisNashornExceptionString[]ScriptObjectMirror. getOwnKeys(boolean all)Deprecated, for removal: This API element is subject to removal in a future version.return an array of own property keys associated with the object.static StringNashornException. getScriptStackString(Throwable exception)Deprecated, for removal: This API element is subject to removal in a future version.Return a formatted script stack trace string with frames information separated by '\n'static StringScriptUtils. parse(String code, String name, boolean includeLoc)Deprecated, for removal: This API element is subject to removal in a future version.Returns AST as JSON compatible string.Methods in jdk.nashorn.api.scripting that return types with arguments of type String Modifier and Type Method Description Set<String>AbstractJSObject. keySet()Deprecated, for removal: This API element is subject to removal in a future version.Set<String>JSObject. keySet()Deprecated, for removal: This API element is subject to removal in a future version.Returns the set of all property names of this object.Methods in jdk.nashorn.api.scripting with parameters of type String Modifier and Type Method Description ObjectScriptObjectMirror. callMember(String functionName, Object... args)Deprecated, for removal: This API element is subject to removal in a future version.Call member functionObjectAbstractJSObject. eval(String s)Deprecated, for removal: This API element is subject to removal in a future version.ObjectJSObject. eval(String s)Deprecated, for removal: This API element is subject to removal in a future version.Evaluate a JavaScript expression.booleanClassFilter. exposeToScripts(String className)Deprecated, for removal: This API element is subject to removal in a future version.Should the Java class of the specified name be exposed to scripts?static StringScriptUtils. format(String format, Object[] args)Deprecated, for removal: This API element is subject to removal in a future version.Method which converts javascript types to java types for the String.format method (jrunscript function sprintf).ObjectAbstractJSObject. getMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.ObjectJSObject. getMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves a named member of this JavaScript object.ObjectScriptObjectMirror. getOwnPropertyDescriptor(String key)Deprecated, for removal: This API element is subject to removal in a future version.ECMA 8.12.1 [[GetOwnProperty]] (P)ScriptEngineNashornScriptEngineFactory. getScriptEngine(String... args)Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments.ScriptEngineNashornScriptEngineFactory. getScriptEngine(String[] args, ClassLoader appLoader)Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments and the given class loader.ScriptEngineNashornScriptEngineFactory. getScriptEngine(String[] args, ClassLoader appLoader, ClassFilter classFilter)Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments, class loader and class filter.booleanAbstractJSObject. hasMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.booleanJSObject. hasMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.Does this object have a named member?static StringScriptUtils. parse(String code, String name, boolean includeLoc)Deprecated, for removal: This API element is subject to removal in a future version.Returns AST as JSON compatible string.voidAbstractJSObject. removeMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.voidJSObject. removeMember(String name)Deprecated, for removal: This API element is subject to removal in a future version.Remove a named member from this JavaScript objectvoidNashornException. setFileName(String fileName)Deprecated, for removal: This API element is subject to removal in a future version.Set the source file name for thisNashornExceptionvoidAbstractJSObject. setMember(String name, Object value)Deprecated, for removal: This API element is subject to removal in a future version.voidJSObject. setMember(String name, Object value)Deprecated, for removal: This API element is subject to removal in a future version.Set a named member in this JavaScript objectConstructors in jdk.nashorn.api.scripting with parameters of type String Constructor Description NashornException(String msg, String fileName, int line, int column)Deprecated, for removal: This API element is subject to removal in a future version.Constructor to initialize error message, file name, line and column numbers.NashornException(String msg, Throwable cause)Deprecated, for removal: This API element is subject to removal in a future version.Constructor to initialize error message and cause exception.NashornException(String msg, Throwable cause, String fileName, int line, int column)Deprecated, for removal: This API element is subject to removal in a future version.Constructor to initialize error message, cause exception, file name, line and column numbers.URLReader(URL url, String charsetName)Deprecated, for removal: This API element is subject to removal in a future version.Constructor -
Uses of String in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree that return String Modifier and Type Method Description StringDiagnostic. getCode()Deprecated, for removal: This API element is subject to removal in a future version.Gets a diagnostic code indicating the type of diagnostic.StringDiagnostic. getFileName()Deprecated, for removal: This API element is subject to removal in a future version.Gets the source file name.StringMemberSelectTree. getIdentifier()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the property.StringBreakTree. getLabel()Deprecated, for removal: This API element is subject to removal in a future version.Label associated with this break statement.StringContinueTree. getLabel()Deprecated, for removal: This API element is subject to removal in a future version.Label associated with this continue statement.StringGotoTree. getLabel()Deprecated, for removal: This API element is subject to removal in a future version.Label associated with this goto statement.StringLabeledStatementTree. getLabel()Deprecated, for removal: This API element is subject to removal in a future version.Returns the label associated with this statement.StringDiagnostic. getMessage()Deprecated, for removal: This API element is subject to removal in a future version.Gets a message for this diagnostic.StringIdentifierTree. getName()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of this identifier.StringRegExpLiteralTree. getOptions()Deprecated, for removal: This API element is subject to removal in a future version.Regular expression matching options.StringRegExpLiteralTree. getPattern()Deprecated, for removal: This API element is subject to removal in a future version.Regular expression pattern to match.StringCompilationUnitTree. getSourceName()Deprecated, for removal: This API element is subject to removal in a future version.Return the source name of this script compilation unit.Methods in jdk.nashorn.api.tree with parameters of type String Modifier and Type Method Description static ParserParser. create(String... options)Deprecated, for removal: This API element is subject to removal in a future version.Factory method to create a new instance of Parser.CompilationUnitTreeParser. parse(String name, Reader reader, DiagnosticListener listener)Deprecated, for removal: This API element is subject to removal in a future version.Parses the reader and returns compilation unit treeCompilationUnitTreeParser. parse(String name, String code, DiagnosticListener listener)Deprecated, for removal: This API element is subject to removal in a future version.Parses the string source and returns compilation unit treestatic Diagnostic.KindDiagnostic.Kind. valueOf(String name)Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this type with the specified name.static Tree.KindTree.Kind. valueOf(String name)Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this type with the specified name. -
Uses of String in jdk.net
Methods in jdk.net with parameters of type String Modifier and Type Method Description static SocketFlow.StatusSocketFlow.Status. valueOf(String name)Returns the enum constant of this type with the specified name.Constructors in jdk.net with parameters of type String Constructor Description NetworkPermission(String name)Creates a NetworkPermission with the given target name.NetworkPermission(String name, String actions)Creates a NetworkPermission with the given target name. -
Uses of String in jdk.security.jarsigner
Methods in jdk.security.jarsigner that return String Modifier and Type Method Description static StringJarSigner.Builder. getDefaultDigestAlgorithm()Gets the default digest algorithm.static StringJarSigner.Builder. getDefaultSignatureAlgorithm(PrivateKey key)Gets the default signature algorithm for a private key.StringJarSigner. getDigestAlgorithm()Returns the digest algorithm for thisJarSigner.StringJarSigner. getProperty(String key)Returns the value of an additional implementation-specific property indicated by the specified key.StringJarSigner. getSignatureAlgorithm()Returns the signature algorithm for thisJarSigner.StringJarSigner. getSignerName()Returns the signer name of thisJarSigner.Methods in jdk.security.jarsigner with parameters of type String Modifier and Type Method Description JarSigner.BuilderJarSigner.Builder. digestAlgorithm(String algorithm)Sets the digest algorithm.JarSigner.BuilderJarSigner.Builder. digestAlgorithm(String algorithm, Provider provider)Sets the digest algorithm from the specified provider.StringJarSigner. getProperty(String key)Returns the value of an additional implementation-specific property indicated by the specified key.JarSigner.BuilderJarSigner.Builder. setProperty(String key, String value)Sets an additional implementation-specific property indicated by the specified key.JarSigner.BuilderJarSigner.Builder. signatureAlgorithm(String algorithm)Sets the signature algorithm.JarSigner.BuilderJarSigner.Builder. signatureAlgorithm(String algorithm, Provider provider)Sets the signature algorithm from the specified provider.JarSigner.BuilderJarSigner.Builder. signerName(String name)Sets the signer name.Method parameters in jdk.security.jarsigner with type arguments of type String Modifier and Type Method Description JarSigner.BuilderJarSigner.Builder. eventHandler(BiConsumer<String,String> handler)Sets en event handler that will be triggered when aJarEntryis to be added, signed, or updated during the signing process.JarSigner.BuilderJarSigner.Builder. eventHandler(BiConsumer<String,String> handler)Sets en event handler that will be triggered when aJarEntryis to be added, signed, or updated during the signing process.Constructors in jdk.security.jarsigner with parameters of type String Constructor Description JarSignerException(String message, Throwable cause)Constructs a newJarSignerExceptionwith the specified detail message and cause. -
Uses of String in netscape.javascript
Methods in netscape.javascript with parameters of type String Modifier and Type Method Description abstract ObjectJSObject. call(String methodName, Object... args)Calls a JavaScript method.abstract ObjectJSObject. eval(String s)Evaluates a JavaScript expression.abstract ObjectJSObject. getMember(String name)Retrieves a named member of a JavaScript object.abstract voidJSObject. removeMember(String name)Removes a named member of a JavaScript object.abstract voidJSObject. setMember(String name, Object value)Sets a named member of a JavaScript object.Constructors in netscape.javascript with parameters of type String Constructor Description JSException(String s)Construct a new JavaScript exception with the specified detail message. -
Uses of String in org.ietf.jgss
Methods in org.ietf.jgss that return String Modifier and Type Method Description StringGSSException. getMajorString()Returns a string explaining the GSS-API level major error code in this exception.StringGSSException. getMessage()Returns a textual representation of both the major and the minor status codes.StringGSSException. getMinorString()Returns a string explaining the mechanism specific error code.StringMessageProp. getMinorString()Retrieves a string explaining the minor status code.StringGSSException. toString()Returns a textual representation of both the major and the minor status codes.StringGSSName. toString()Returns a textual representation of theGSSNameobject.StringOid. toString()Returns a string representation of the oid's integer components in dot separated notation.Methods in org.ietf.jgss with parameters of type String Modifier and Type Method Description abstract GSSNameGSSManager. createName(String nameStr, Oid nameType)Factory method to convert a string name from the specified namespace to a GSSName object.abstract GSSNameGSSManager. createName(String nameStr, Oid nameType, Oid mech)Factory method to convert a string name from the specified namespace to a GSSName object and canonicalize it at the same time for a mechanism.voidGSSException. setMinor(int minorCode, String message)Used by the exception thrower to set the mechanism level minor error code and its string explanation.voidMessageProp. setSupplementaryStates(boolean duplicate, boolean old, boolean unseq, boolean gap, int minorStatus, String minorString)This method sets the state for the supplementary information flags and the minor status in MessageProp.Constructors in org.ietf.jgss with parameters of type String Constructor Description GSSException(int majorCode, int minorCode, String minorString)Creates a GSSException object with the specified major code, minor code, and minor code textual explanation.Oid(String strOid)Constructs an Oid object from a string representation of its integer components. -
Uses of String in org.w3c.dom
Methods in org.w3c.dom that return String Modifier and Type Method Description StringElement. getAttribute(String name)Retrieves an attribute value by name.StringElement. getAttributeNS(String namespaceURI, String localName)Retrieves an attribute value by local name and namespace URI.StringNode. getBaseURI()The absolute base URI of this node ornullif the implementation wasn't able to obtain an absolute URI.StringCharacterData. getData()The character data of the node that implements this interface.StringProcessingInstruction. getData()The content of this processing instruction.StringDocument. getDocumentURI()The location of the document ornullif undefined or if theDocumentwas created usingDOMImplementation.createDocument.StringDocument. getInputEncoding()An attribute specifying the encoding used for this document at the time of the parsing.StringEntity. getInputEncoding()An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity.StringDocumentType. getInternalSubset()The internal subset as a string, ornullif there is none.StringNode. getLocalName()Returns the local part of the qualified name of this node.StringDOMError. getMessage()An implementation specific string describing the error that occurred.StringAttr. getName()Returns the name of this attribute.StringDocumentType. getName()The name of DTD; i.e., the name immediately following theDOCTYPEkeyword.StringNameList. getName(int index)Returns theindexth name item in the collection.StringNameList. getNamespaceURI(int index)Returns theindexth namespaceURI item in the collection.StringNode. getNamespaceURI()The namespace URI of this node, ornullif it is unspecified (see ).StringNode. getNodeName()The name of this node, depending on its type; see the table above.StringNode. getNodeValue()The value of this node, depending on its type; see the table above.StringEntity. getNotationName()For unparsed entities, the name of the notation for the entity.StringNode. getPrefix()The namespace prefix of this node, ornullif it is unspecified.StringDocumentType. getPublicId()The public identifier of the external subset.StringEntity. getPublicId()The public identifier associated with the entity if specified, andnullotherwise.StringNotation. getPublicId()The public identifier of this notation.StringDocumentType. getSystemId()The system identifier of the external subset.StringEntity. getSystemId()The system identifier associated with the entity if specified, andnullotherwise.StringNotation. getSystemId()The system identifier of this notation.StringElement. getTagName()The name of the element.StringProcessingInstruction. getTarget()The target of this processing instruction.StringNode. getTextContent()This attribute returns the text content of this node and its descendants.StringDOMError. getType()ADOMStringindicating which related data is expected inrelatedData.StringTypeInfo. getTypeName()The name of a type declared for the associated element or attribute, ornullif unknown.StringTypeInfo. getTypeNamespace()The namespace of the type declared for the associated element or attribute ornullif the element does not have declaration or if no namespace information is available.StringDOMLocator. getUri()The URI this locator is pointing to, ornullif no URI is available.StringAttr. getValue()On retrieval, the value of the attribute is returned as a string.StringText. getWholeText()Returns all text ofTextnodes logically-adjacent text nodes to this node, concatenated in document order.StringDocument. getXmlEncoding()An attribute specifying, as part of the XML declaration, the encoding of this document.StringEntity. getXmlEncoding()An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity.StringDocument. getXmlVersion()An attribute specifying, as part of the XML declaration, the version number of this document.StringEntity. getXmlVersion()An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity.StringDOMStringList. item(int index)Returns theindexth item in the collection.StringNode. lookupNamespaceURI(String prefix)Look up the namespace URI associated to the given prefix, starting from this node.StringNode. lookupPrefix(String namespaceURI)Look up the prefix associated to the given namespace URI, starting from this node.StringCharacterData. substringData(int offset, int count)Extracts a range of data from the node.Methods in org.w3c.dom with parameters of type String Modifier and Type Method Description voidCharacterData. appendData(String arg)Append the string to the end of the character data of the node.booleanDOMConfiguration. canSetParameter(String name, Object value)Check if setting a parameter to a specific value is supported.booleanDOMStringList. contains(String str)Test if a string is part of thisDOMStringList.booleanNameList. contains(String str)Test if a name is part of thisNameList.booleanNameList. containsNS(String namespaceURI, String name)Test if the pair namespaceURI/name is part of thisNameList.AttrDocument. createAttribute(String name)Creates anAttrof the given name.AttrDocument. createAttributeNS(String namespaceURI, String qualifiedName)Creates an attribute of the given qualified name and namespace URI.CDATASectionDocument. createCDATASection(String data)Creates aCDATASectionnode whose value is the specified string.CommentDocument. createComment(String data)Creates aCommentnode given the specified string.DocumentDOMImplementation. createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)Creates a DOM Document object of the specified type with its document element.DocumentTypeDOMImplementation. createDocumentType(String qualifiedName, String publicId, String systemId)Creates an emptyDocumentTypenode.ElementDocument. createElement(String tagName)Creates an element of the type specified.ElementDocument. createElementNS(String namespaceURI, String qualifiedName)Creates an element of the given qualified name and namespace URI.EntityReferenceDocument. createEntityReference(String name)Creates anEntityReferenceobject.ProcessingInstructionDocument. createProcessingInstruction(String target, String data)Creates aProcessingInstructionnode given the specified name and data strings.TextDocument. createTextNode(String data)Creates aTextnode given the specified string.StringElement. getAttribute(String name)Retrieves an attribute value by name.AttrElement. getAttributeNode(String name)Retrieves an attribute node by name.AttrElement. getAttributeNodeNS(String namespaceURI, String localName)Retrieves anAttrnode by local name and namespace URI.StringElement. getAttributeNS(String namespaceURI, String localName)Retrieves an attribute value by local name and namespace URI.DOMImplementationDOMImplementationSource. getDOMImplementation(String features)A method to request the first DOM implementation that supports the specified features.DOMImplementationListDOMImplementationSource. getDOMImplementationList(String features)A method to request a list of DOM implementations that support the specified features and versions, as specified in .ElementDocument. getElementById(String elementId)Returns theElementthat has an ID attribute with the given value.NodeListDocument. getElementsByTagName(String tagname)Returns aNodeListof all theElementsin document order with a given tag name and are contained in the document.NodeListElement. getElementsByTagName(String name)Returns aNodeListof all descendantElementswith a given tag name, in document order.NodeListDocument. getElementsByTagNameNS(String namespaceURI, String localName)Returns aNodeListof all theElementswith a given local name and namespace URI in document order.NodeListElement. getElementsByTagNameNS(String namespaceURI, String localName)Returns aNodeListof all the descendantElementswith a given local name and namespace URI in document order.ObjectDOMImplementation. getFeature(String feature, String version)This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in DOM Features.ObjectNode. getFeature(String feature, String version)This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in .NodeNamedNodeMap. getNamedItem(String name)Retrieves a node specified by name.NodeNamedNodeMap. getNamedItemNS(String namespaceURI, String localName)Retrieves a node specified by local name and namespace URI.ObjectDOMConfiguration. getParameter(String name)Return the value of a parameter if known.ObjectNode. getUserData(String key)Retrieves the object associated to a key on a this node.voidUserDataHandler. handle(short operation, String key, Object data, Node src, Node dst)This method is called whenever the node for which this handler is registered is imported or cloned.booleanElement. hasAttribute(String name)Returnstruewhen an attribute with a given name is specified on this element or has a default value,falseotherwise.booleanElement. hasAttributeNS(String namespaceURI, String localName)Returnstruewhen an attribute with a given local name and namespace URI is specified on this element or has a default value,falseotherwise.booleanDOMImplementation. hasFeature(String feature, String version)Test if the DOM implementation implements a specific feature and version, as specified in DOM Features.voidCharacterData. insertData(int offset, String arg)Insert a string at the specified 16-bit unit offset.booleanNode. isDefaultNamespace(String namespaceURI)This method checks if the specifiednamespaceURIis the default namespace or not.booleanTypeInfo. isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod)This method returns if there is a derivation between the reference type definition, i.e. theTypeInfoon which the method is being called, and the other type definition, i.e. the one passed as parameters.booleanNode. isSupported(String feature, String version)Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in .StringNode. lookupNamespaceURI(String prefix)Look up the namespace URI associated to the given prefix, starting from this node.StringNode. lookupPrefix(String namespaceURI)Look up the prefix associated to the given namespace URI, starting from this node.voidElement. removeAttribute(String name)Removes an attribute by name.voidElement. removeAttributeNS(String namespaceURI, String localName)Removes an attribute by local name and namespace URI.NodeNamedNodeMap. removeNamedItem(String name)Removes a node specified by name.NodeNamedNodeMap. removeNamedItemNS(String namespaceURI, String localName)Removes a node specified by local name and namespace URI.NodeDocument. renameNode(Node n, String namespaceURI, String qualifiedName)Rename an existing node of typeELEMENT_NODEorATTRIBUTE_NODE.voidCharacterData. replaceData(int offset, int count, String arg)Replace the characters starting at the specified 16-bit unit offset with the specified string.TextText. replaceWholeText(String content)Replaces the text of the current node and all logically-adjacent text nodes with the specified text.voidElement. setAttribute(String name, String value)Adds a new attribute.voidElement. setAttributeNS(String namespaceURI, String qualifiedName, String value)Adds a new attribute.voidCharacterData. setData(String data)The character data of the node that implements this interface.voidProcessingInstruction. setData(String data)The content of this processing instruction.voidDocument. setDocumentURI(String documentURI)The location of the document ornullif undefined or if theDocumentwas created usingDOMImplementation.createDocument.voidElement. setIdAttribute(String name, boolean isId)If the parameterisIdistrue, this method declares the specified attribute to be a user-determined ID attribute .voidElement. setIdAttributeNS(String namespaceURI, String localName, boolean isId)If the parameterisIdistrue, this method declares the specified attribute to be a user-determined ID attribute .voidNode. setNodeValue(String nodeValue)The value of this node, depending on its type; see the table above.voidDOMConfiguration. setParameter(String name, Object value)Set the value of a parameter.voidNode. setPrefix(String prefix)The namespace prefix of this node, ornullif it is unspecified.voidNode. setTextContent(String textContent)This attribute returns the text content of this node and its descendants.ObjectNode. setUserData(String key, Object data, UserDataHandler handler)Associate an object to a key on this node.voidAttr. setValue(String value)On retrieval, the value of the attribute is returned as a string.voidDocument. setXmlVersion(String xmlVersion)An attribute specifying, as part of the XML declaration, the version number of this document.Constructors in org.w3c.dom with parameters of type String Constructor Description DOMException(short code, String message) -
Uses of String in org.w3c.dom.bootstrap
Fields in org.w3c.dom.bootstrap declared as String Modifier and Type Field Description static StringDOMImplementationRegistry. PROPERTYThe system property to specify the DOMImplementationSource class names.Methods in org.w3c.dom.bootstrap with parameters of type String Modifier and Type Method Description DOMImplementationDOMImplementationRegistry. getDOMImplementation(String features)Return the first implementation that has the desired features, ornullif none is found.DOMImplementationListDOMImplementationRegistry. getDOMImplementationList(String features)Return a list of implementations that support the desired features. -
Uses of String in org.w3c.dom.css
Methods in org.w3c.dom.css that return String Modifier and Type Method Description StringCSS2Properties. getAzimuth()See the azimuth property definition in CSS2.StringCSS2Properties. getBackground()See the background property definition in CSS2.StringCSS2Properties. getBackgroundAttachment()See the background-attachment property definition in CSS2.StringCSS2Properties. getBackgroundColor()See the background-color property definition in CSS2.StringCSS2Properties. getBackgroundImage()See the background-image property definition in CSS2.StringCSS2Properties. getBackgroundPosition()See the background-position property definition in CSS2.StringCSS2Properties. getBackgroundRepeat()See the background-repeat property definition in CSS2.StringCSS2Properties. getBorder()See the border property definition in CSS2.StringCSS2Properties. getBorderBottom()See the border-bottom property definition in CSS2.StringCSS2Properties. getBorderBottomColor()See the border-bottom-color property definition in CSS2.StringCSS2Properties. getBorderBottomStyle()See the border-bottom-style property definition in CSS2.StringCSS2Properties. getBorderBottomWidth()See the border-bottom-width property definition in CSS2.StringCSS2Properties. getBorderCollapse()See the border-collapse property definition in CSS2.StringCSS2Properties. getBorderColor()See the border-color property definition in CSS2.StringCSS2Properties. getBorderLeft()See the border-left property definition in CSS2.StringCSS2Properties. getBorderLeftColor()See the border-left-color property definition in CSS2.StringCSS2Properties. getBorderLeftStyle()See the border-left-style property definition in CSS2.StringCSS2Properties. getBorderLeftWidth()See the border-left-width property definition in CSS2.StringCSS2Properties. getBorderRight()See the border-right property definition in CSS2.StringCSS2Properties. getBorderRightColor()See the border-right-color property definition in CSS2.StringCSS2Properties. getBorderRightStyle()See the border-right-style property definition in CSS2.StringCSS2Properties. getBorderRightWidth()See the border-right-width property definition in CSS2.StringCSS2Properties. getBorderSpacing()See the border-spacing property definition in CSS2.StringCSS2Properties. getBorderStyle()See the border-style property definition in CSS2.StringCSS2Properties. getBorderTop()See the border-top property definition in CSS2.StringCSS2Properties. getBorderTopColor()See the border-top-color property definition in CSS2.StringCSS2Properties. getBorderTopStyle()See the border-top-style property definition in CSS2.StringCSS2Properties. getBorderTopWidth()See the border-top-width property definition in CSS2.StringCSS2Properties. getBorderWidth()See the border-width property definition in CSS2.StringCSS2Properties. getBottom()See the bottom property definition in CSS2.StringCSS2Properties. getCaptionSide()See the caption-side property definition in CSS2.StringCSS2Properties. getClear()See the clear property definition in CSS2.StringCSS2Properties. getClip()See the clip property definition in CSS2.StringCSS2Properties. getColor()See the color property definition in CSS2.StringCSS2Properties. getContent()See the content property definition in CSS2.StringCSS2Properties. getCounterIncrement()See the counter-increment property definition in CSS2.StringCSS2Properties. getCounterReset()See the counter-reset property definition in CSS2.StringCSS2Properties. getCssFloat()See the float property definition in CSS2.StringCSSRule. getCssText()The parsable textual representation of the rule.StringCSSStyleDeclaration. getCssText()The parsable textual representation of the declaration block (excluding the surrounding curly braces).StringCSSValue. getCssText()A string representation of the current value.StringCSS2Properties. getCue()See the cue property definition in CSS2.StringCSS2Properties. getCueAfter()See the cue-after property definition in CSS2.StringCSS2Properties. getCueBefore()See the cue-before property definition in CSS2.StringCSS2Properties. getCursor()See the cursor property definition in CSS2.StringCSS2Properties. getDirection()See the direction property definition in CSS2.StringCSS2Properties. getDisplay()See the display property definition in CSS2.StringCSS2Properties. getElevation()See the elevation property definition in CSS2.StringCSS2Properties. getEmptyCells()See the empty-cells property definition in CSS2.StringCSSCharsetRule. getEncoding()The encoding information used in this@charsetrule.StringCSS2Properties. getFont()See the font property definition in CSS2.StringCSS2Properties. getFontFamily()See the font-family property definition in CSS2.StringCSS2Properties. getFontSize()See the font-size property definition in CSS2.StringCSS2Properties. getFontSizeAdjust()See the font-size-adjust property definition in CSS2.StringCSS2Properties. getFontStretch()See the font-stretch property definition in CSS2.StringCSS2Properties. getFontStyle()See the font-style property definition in CSS2.StringCSS2Properties. getFontVariant()See the font-variant property definition in CSS2.StringCSS2Properties. getFontWeight()See the font-weight property definition in CSS2.StringCSS2Properties. getHeight()See the height property definition in CSS2.StringCSSImportRule. getHref()The location of the style sheet to be imported.StringCounter. getIdentifier()This attribute is used for the identifier of the counter.StringCSS2Properties. getLeft()See the left property definition in CSS2.StringCSS2Properties. getLetterSpacing()See the letter-spacing property definition in CSS2.StringCSS2Properties. getLineHeight()See the line-height property definition in CSS2.StringCounter. getListStyle()This attribute is used for the style of the list.StringCSS2Properties. getListStyle()See the list-style property definition in CSS2.StringCSS2Properties. getListStyleImage()See the list-style-image property definition in CSS2.StringCSS2Properties. getListStylePosition()See the list-style-position property definition in CSS2.StringCSS2Properties. getListStyleType()See the list-style-type property definition in CSS2.StringCSS2Properties. getMargin()See the margin property definition in CSS2.StringCSS2Properties. getMarginBottom()See the margin-bottom property definition in CSS2.StringCSS2Properties. getMarginLeft()See the margin-left property definition in CSS2.StringCSS2Properties. getMarginRight()See the margin-right property definition in CSS2.StringCSS2Properties. getMarginTop()See the margin-top property definition in CSS2.StringCSS2Properties. getMarkerOffset()See the marker-offset property definition in CSS2.StringCSS2Properties. getMarks()See the marks property definition in CSS2.StringCSS2Properties. getMaxHeight()See the max-height property definition in CSS2.StringCSS2Properties. getMaxWidth()See the max-width property definition in CSS2.StringCSS2Properties. getMinHeight()See the min-height property definition in CSS2.StringCSS2Properties. getMinWidth()See the min-width property definition in CSS2.StringCSS2Properties. getOrphans()See the orphans property definition in CSS2.StringCSS2Properties. getOutline()See the outline property definition in CSS2.StringCSS2Properties. getOutlineColor()See the outline-color property definition in CSS2.StringCSS2Properties. getOutlineStyle()See the outline-style property definition in CSS2.StringCSS2Properties. getOutlineWidth()See the outline-width property definition in CSS2.StringCSS2Properties. getOverflow()See the overflow property definition in CSS2.StringCSS2Properties. getPadding()See the padding property definition in CSS2.StringCSS2Properties. getPaddingBottom()See the padding-bottom property definition in CSS2.StringCSS2Properties. getPaddingLeft()See the padding-left property definition in CSS2.StringCSS2Properties. getPaddingRight()See the padding-right property definition in CSS2.StringCSS2Properties. getPaddingTop()See the padding-top property definition in CSS2.StringCSS2Properties. getPage()See the page property definition in CSS2.StringCSS2Properties. getPageBreakAfter()See the page-break-after property definition in CSS2.StringCSS2Properties. getPageBreakBefore()See the page-break-before property definition in CSS2.StringCSS2Properties. getPageBreakInside()See the page-break-inside property definition in CSS2.StringCSS2Properties. getPause()See the pause property definition in CSS2.StringCSS2Properties. getPauseAfter()See the pause-after property definition in CSS2.StringCSS2Properties. getPauseBefore()See the pause-before property definition in CSS2.StringCSS2Properties. getPitch()See the pitch property definition in CSS2.StringCSS2Properties. getPitchRange()See the pitch-range property definition in CSS2.StringCSS2Properties. getPlayDuring()See the play-during property definition in CSS2.StringCSS2Properties. getPosition()See the position property definition in CSS2.StringCSSStyleDeclaration. getPropertyPriority(String propertyName)Used to retrieve the priority of a CSS property (e.g. the"important"qualifier) if the priority has been explicitly set in this declaration block.StringCSSStyleDeclaration. getPropertyValue(String propertyName)Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.StringCSS2Properties. getQuotes()See the quotes property definition in CSS2.StringCSS2Properties. getRichness()See the richness property definition in CSS2.StringCSS2Properties. getRight()See the right property definition in CSS2.StringCSSPageRule. getSelectorText()The parsable textual representation of the page selector for the rule.StringCSSStyleRule. getSelectorText()The textual representation of the selector for the rule set.StringCounter. getSeparator()This attribute is used for the separator of the nested counters.StringCSS2Properties. getSize()See the size property definition in CSS2.StringCSS2Properties. getSpeak()See the speak property definition in CSS2.StringCSS2Properties. getSpeakHeader()See the speak-header property definition in CSS2.StringCSS2Properties. getSpeakNumeral()See the speak-numeral property definition in CSS2.StringCSS2Properties. getSpeakPunctuation()See the speak-punctuation property definition in CSS2.StringCSS2Properties. getSpeechRate()See the speech-rate property definition in CSS2.StringCSS2Properties. getStress()See the stress property definition in CSS2.StringCSSPrimitiveValue. getStringValue()This method is used to get the string value.StringCSS2Properties. getTableLayout()See the table-layout property definition in CSS2.StringCSS2Properties. getTextAlign()See the text-align property definition in CSS2.StringCSS2Properties. getTextDecoration()See the text-decoration property definition in CSS2.StringCSS2Properties. getTextIndent()See the text-indent property definition in CSS2.StringCSS2Properties. getTextShadow()See the text-shadow property definition in CSS2.StringCSS2Properties. getTextTransform()See the text-transform property definition in CSS2.StringCSS2Properties. getTop()See the top property definition in CSS2.StringCSS2Properties. getUnicodeBidi()See the unicode-bidi property definition in CSS2.StringCSS2Properties. getVerticalAlign()See the vertical-align property definition in CSS2.StringCSS2Properties. getVisibility()See the visibility property definition in CSS2.StringCSS2Properties. getVoiceFamily()See the voice-family property definition in CSS2.StringCSS2Properties. getVolume()See the volume property definition in CSS2.StringCSS2Properties. getWhiteSpace()See the white-space property definition in CSS2.StringCSS2Properties. getWidows()See the widows property definition in CSS2.StringCSS2Properties. getWidth()See the width property definition in CSS2.StringCSS2Properties. getWordSpacing()See the word-spacing property definition in CSS2.StringCSS2Properties. getZIndex()See the z-index property definition in CSS2.StringCSSStyleDeclaration. item(int index)Used to retrieve the properties that have been explicitly set in this declaration block.StringCSSStyleDeclaration. removeProperty(String propertyName)Used to remove a CSS property if it has been explicitly set within this declaration block.Methods in org.w3c.dom.css with parameters of type String Modifier and Type Method Description CSSStyleSheetDOMImplementationCSS. createCSSStyleSheet(String title, String media)Creates a newCSSStyleSheet.CSSStyleDeclarationViewCSS. getComputedStyle(Element elt, String pseudoElt)This method is used to get the computed style as it is defined in [CSS2].CSSStyleDeclarationDocumentCSS. getOverrideStyle(Element elt, String pseudoElt)This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.CSSValueCSSStyleDeclaration. getPropertyCSSValue(String propertyName)Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block.StringCSSStyleDeclaration. getPropertyPriority(String propertyName)Used to retrieve the priority of a CSS property (e.g. the"important"qualifier) if the priority has been explicitly set in this declaration block.StringCSSStyleDeclaration. getPropertyValue(String propertyName)Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.intCSSMediaRule. insertRule(String rule, int index)Used to insert a new rule into the media block.intCSSStyleSheet. insertRule(String rule, int index)Used to insert a new rule into the style sheet.StringCSSStyleDeclaration. removeProperty(String propertyName)Used to remove a CSS property if it has been explicitly set within this declaration block.voidCSS2Properties. setAzimuth(String azimuth)See the azimuth property definition in CSS2.voidCSS2Properties. setBackground(String background)See the background property definition in CSS2.voidCSS2Properties. setBackgroundAttachment(String backgroundAttachment)See the background-attachment property definition in CSS2.voidCSS2Properties. setBackgroundColor(String backgroundColor)See the background-color property definition in CSS2.voidCSS2Properties. setBackgroundImage(String backgroundImage)See the background-image property definition in CSS2.voidCSS2Properties. setBackgroundPosition(String backgroundPosition)See the background-position property definition in CSS2.voidCSS2Properties. setBackgroundRepeat(String backgroundRepeat)See the background-repeat property definition in CSS2.voidCSS2Properties. setBorder(String border)See the border property definition in CSS2.voidCSS2Properties. setBorderBottom(String borderBottom)See the border-bottom property definition in CSS2.voidCSS2Properties. setBorderBottomColor(String borderBottomColor)See the border-bottom-color property definition in CSS2.voidCSS2Properties. setBorderBottomStyle(String borderBottomStyle)See the border-bottom-style property definition in CSS2.voidCSS2Properties. setBorderBottomWidth(String borderBottomWidth)See the border-bottom-width property definition in CSS2.voidCSS2Properties. setBorderCollapse(String borderCollapse)See the border-collapse property definition in CSS2.voidCSS2Properties. setBorderColor(String borderColor)See the border-color property definition in CSS2.voidCSS2Properties. setBorderLeft(String borderLeft)See the border-left property definition in CSS2.voidCSS2Properties. setBorderLeftColor(String borderLeftColor)See the border-left-color property definition in CSS2.voidCSS2Properties. setBorderLeftStyle(String borderLeftStyle)See the border-left-style property definition in CSS2.voidCSS2Properties. setBorderLeftWidth(String borderLeftWidth)See the border-left-width property definition in CSS2.voidCSS2Properties. setBorderRight(String borderRight)See the border-right property definition in CSS2.voidCSS2Properties. setBorderRightColor(String borderRightColor)See the border-right-color property definition in CSS2.voidCSS2Properties. setBorderRightStyle(String borderRightStyle)See the border-right-style property definition in CSS2.voidCSS2Properties. setBorderRightWidth(String borderRightWidth)See the border-right-width property definition in CSS2.voidCSS2Properties. setBorderSpacing(String borderSpacing)See the border-spacing property definition in CSS2.voidCSS2Properties. setBorderStyle(String borderStyle)See the border-style property definition in CSS2.voidCSS2Properties. setBorderTop(String borderTop)See the border-top property definition in CSS2.voidCSS2Properties. setBorderTopColor(String borderTopColor)See the border-top-color property definition in CSS2.voidCSS2Properties. setBorderTopStyle(String borderTopStyle)See the border-top-style property definition in CSS2.voidCSS2Properties. setBorderTopWidth(String borderTopWidth)See the border-top-width property definition in CSS2.voidCSS2Properties. setBorderWidth(String borderWidth)See the border-width property definition in CSS2.voidCSS2Properties. setBottom(String bottom)See the bottom property definition in CSS2.voidCSS2Properties. setCaptionSide(String captionSide)See the caption-side property definition in CSS2.voidCSS2Properties. setClear(String clear)See the clear property definition in CSS2.voidCSS2Properties. setClip(String clip)See the clip property definition in CSS2.voidCSS2Properties. setColor(String color)See the color property definition in CSS2.voidCSS2Properties. setContent(String content)See the content property definition in CSS2.voidCSS2Properties. setCounterIncrement(String counterIncrement)See the counter-increment property definition in CSS2.voidCSS2Properties. setCounterReset(String counterReset)See the counter-reset property definition in CSS2.voidCSS2Properties. setCssFloat(String cssFloat)See the float property definition in CSS2.voidCSSRule. setCssText(String cssText)The parsable textual representation of the rule.voidCSSStyleDeclaration. setCssText(String cssText)The parsable textual representation of the declaration block (excluding the surrounding curly braces).voidCSSValue. setCssText(String cssText)A string representation of the current value.voidCSS2Properties. setCue(String cue)See the cue property definition in CSS2.voidCSS2Properties. setCueAfter(String cueAfter)See the cue-after property definition in CSS2.voidCSS2Properties. setCueBefore(String cueBefore)See the cue-before property definition in CSS2.voidCSS2Properties. setCursor(String cursor)See the cursor property definition in CSS2.voidCSS2Properties. setDirection(String direction)See the direction property definition in CSS2.voidCSS2Properties. setDisplay(String display)See the display property definition in CSS2.voidCSS2Properties. setElevation(String elevation)See the elevation property definition in CSS2.voidCSS2Properties. setEmptyCells(String emptyCells)See the empty-cells property definition in CSS2.voidCSSCharsetRule. setEncoding(String encoding)The encoding information used in this@charsetrule.voidCSS2Properties. setFont(String font)See the font property definition in CSS2.voidCSS2Properties. setFontFamily(String fontFamily)See the font-family property definition in CSS2.voidCSS2Properties. setFontSize(String fontSize)See the font-size property definition in CSS2.voidCSS2Properties. setFontSizeAdjust(String fontSizeAdjust)See the font-size-adjust property definition in CSS2.voidCSS2Properties. setFontStretch(String fontStretch)See the font-stretch property definition in CSS2.voidCSS2Properties. setFontStyle(String fontStyle)See the font-style property definition in CSS2.voidCSS2Properties. setFontVariant(String fontVariant)See the font-variant property definition in CSS2.voidCSS2Properties. setFontWeight(String fontWeight)See the font-weight property definition in CSS2.voidCSS2Properties. setHeight(String height)See the height property definition in CSS2.voidCSS2Properties. setLeft(String left)See the left property definition in CSS2.voidCSS2Properties. setLetterSpacing(String letterSpacing)See the letter-spacing property definition in CSS2.voidCSS2Properties. setLineHeight(String lineHeight)See the line-height property definition in CSS2.voidCSS2Properties. setListStyle(String listStyle)See the list-style property definition in CSS2.voidCSS2Properties. setListStyleImage(String listStyleImage)See the list-style-image property definition in CSS2.voidCSS2Properties. setListStylePosition(String listStylePosition)See the list-style-position property definition in CSS2.voidCSS2Properties. setListStyleType(String listStyleType)See the list-style-type property definition in CSS2.voidCSS2Properties. setMargin(String margin)See the margin property definition in CSS2.voidCSS2Properties. setMarginBottom(String marginBottom)See the margin-bottom property definition in CSS2.voidCSS2Properties. setMarginLeft(String marginLeft)See the margin-left property definition in CSS2.voidCSS2Properties. setMarginRight(String marginRight)See the margin-right property definition in CSS2.voidCSS2Properties. setMarginTop(String marginTop)See the margin-top property definition in CSS2.voidCSS2Properties. setMarkerOffset(String markerOffset)See the marker-offset property definition in CSS2.voidCSS2Properties. setMarks(String marks)See the marks property definition in CSS2.voidCSS2Properties. setMaxHeight(String maxHeight)See the max-height property definition in CSS2.voidCSS2Properties. setMaxWidth(String maxWidth)See the max-width property definition in CSS2.voidCSS2Properties. setMinHeight(String minHeight)See the min-height property definition in CSS2.voidCSS2Properties. setMinWidth(String minWidth)See the min-width property definition in CSS2.voidCSS2Properties. setOrphans(String orphans)See the orphans property definition in CSS2.voidCSS2Properties. setOutline(String outline)See the outline property definition in CSS2.voidCSS2Properties. setOutlineColor(String outlineColor)See the outline-color property definition in CSS2.voidCSS2Properties. setOutlineStyle(String outlineStyle)See the outline-style property definition in CSS2.voidCSS2Properties. setOutlineWidth(String outlineWidth)See the outline-width property definition in CSS2.voidCSS2Properties. setOverflow(String overflow)See the overflow property definition in CSS2.voidCSS2Properties. setPadding(String padding)See the padding property definition in CSS2.voidCSS2Properties. setPaddingBottom(String paddingBottom)See the padding-bottom property definition in CSS2.voidCSS2Properties. setPaddingLeft(String paddingLeft)See the padding-left property definition in CSS2.voidCSS2Properties. setPaddingRight(String paddingRight)See the padding-right property definition in CSS2.voidCSS2Properties. setPaddingTop(String paddingTop)See the padding-top property definition in CSS2.voidCSS2Properties. setPage(String page)See the page property definition in CSS2.voidCSS2Properties. setPageBreakAfter(String pageBreakAfter)See the page-break-after property definition in CSS2.voidCSS2Properties. setPageBreakBefore(String pageBreakBefore)See the page-break-before property definition in CSS2.voidCSS2Properties. setPageBreakInside(String pageBreakInside)See the page-break-inside property definition in CSS2.voidCSS2Properties. setPause(String pause)See the pause property definition in CSS2.voidCSS2Properties. setPauseAfter(String pauseAfter)See the pause-after property definition in CSS2.voidCSS2Properties. setPauseBefore(String pauseBefore)See the pause-before property definition in CSS2.voidCSS2Properties. setPitch(String pitch)See the pitch property definition in CSS2.voidCSS2Properties. setPitchRange(String pitchRange)See the pitch-range property definition in CSS2.voidCSS2Properties. setPlayDuring(String playDuring)See the play-during property definition in CSS2.voidCSS2Properties. setPosition(String position)See the position property definition in CSS2.voidCSSStyleDeclaration. setProperty(String propertyName, String value, String priority)Used to set a property value and priority within this declaration block.voidCSS2Properties. setQuotes(String quotes)See the quotes property definition in CSS2.voidCSS2Properties. setRichness(String richness)See the richness property definition in CSS2.voidCSS2Properties. setRight(String right)See the right property definition in CSS2.voidCSSPageRule. setSelectorText(String selectorText)The parsable textual representation of the page selector for the rule.voidCSSStyleRule. setSelectorText(String selectorText)The textual representation of the selector for the rule set.voidCSS2Properties. setSize(String size)See the size property definition in CSS2.voidCSS2Properties. setSpeak(String speak)See the speak property definition in CSS2.voidCSS2Properties. setSpeakHeader(String speakHeader)See the speak-header property definition in CSS2.voidCSS2Properties. setSpeakNumeral(String speakNumeral)See the speak-numeral property definition in CSS2.voidCSS2Properties. setSpeakPunctuation(String speakPunctuation)See the speak-punctuation property definition in CSS2.voidCSS2Properties. setSpeechRate(String speechRate)See the speech-rate property definition in CSS2.voidCSS2Properties. setStress(String stress)See the stress property definition in CSS2.voidCSSPrimitiveValue. setStringValue(short stringType, String stringValue)A method to set the string value with the specified unit.voidCSS2Properties. setTableLayout(String tableLayout)See the table-layout property definition in CSS2.voidCSS2Properties. setTextAlign(String textAlign)See the text-align property definition in CSS2.voidCSS2Properties. setTextDecoration(String textDecoration)See the text-decoration property definition in CSS2.voidCSS2Properties. setTextIndent(String textIndent)See the text-indent property definition in CSS2.voidCSS2Properties. setTextShadow(String textShadow)See the text-shadow property definition in CSS2.voidCSS2Properties. setTextTransform(String textTransform)See the text-transform property definition in CSS2.voidCSS2Properties. setTop(String top)See the top property definition in CSS2.voidCSS2Properties. setUnicodeBidi(String unicodeBidi)See the unicode-bidi property definition in CSS2.voidCSS2Properties. setVerticalAlign(String verticalAlign)See the vertical-align property definition in CSS2.voidCSS2Properties. setVisibility(String visibility)See the visibility property definition in CSS2.voidCSS2Properties. setVoiceFamily(String voiceFamily)See the voice-family property definition in CSS2.voidCSS2Properties. setVolume(String volume)See the volume property definition in CSS2.voidCSS2Properties. setWhiteSpace(String whiteSpace)See the white-space property definition in CSS2.voidCSS2Properties. setWidows(String widows)See the widows property definition in CSS2.voidCSS2Properties. setWidth(String width)See the width property definition in CSS2.voidCSS2Properties. setWordSpacing(String wordSpacing)See the word-spacing property definition in CSS2.voidCSS2Properties. setZIndex(String zIndex)See the z-index property definition in CSS2. -
Uses of String in org.w3c.dom.events
Methods in org.w3c.dom.events that return String Modifier and Type Method Description StringMutationEvent. getAttrName()attrNameindicates the name of the changedAttrnode in a DOMAttrModified event.StringMutationEvent. getNewValue()newValueindicates the new value of theAttrnode in DOMAttrModified events, and of theCharacterDatanode in DOMCharacterDataModified events.StringMutationEvent. getPrevValue()prevValueindicates the previous value of theAttrnode in DOMAttrModified events, and of theCharacterDatanode in DOMCharacterDataModified events.StringEvent. getType()The name of the event (case-insensitive).Methods in org.w3c.dom.events with parameters of type String Modifier and Type Method Description voidEventTarget. addEventListener(String type, EventListener listener, boolean useCapture)This method allows the registration of event listeners on the event target.EventDocumentEvent. createEvent(String eventType)voidEvent. initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)TheinitEventmethod is used to initialize the value of anEventcreated through theDocumentEventinterface.voidMouseEvent. initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)TheinitMouseEventmethod is used to initialize the value of aMouseEventcreated through theDocumentEventinterface.voidMutationEvent. initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)TheinitMutationEventmethod is used to initialize the value of aMutationEventcreated through theDocumentEventinterface.voidUIEvent. initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg)TheinitUIEventmethod is used to initialize the value of aUIEventcreated through theDocumentEventinterface.voidEventTarget. removeEventListener(String type, EventListener listener, boolean useCapture)This method allows the removal of event listeners from the event target.Constructors in org.w3c.dom.events with parameters of type String Constructor Description EventException(short code, String message) -
Uses of String in org.w3c.dom.html
Methods in org.w3c.dom.html that return String Modifier and Type Method Description StringHTMLTableCellElement. getAbbr()Abbreviation for header cells.StringHTMLInputElement. getAccept()A comma-separated list of content types that a server processing this form will handle correctly.StringHTMLFormElement. getAcceptCharset()List of character sets supported by the server.StringHTMLAnchorElement. getAccessKey()A single character access key to give access to the form control.StringHTMLAreaElement. getAccessKey()A single character access key to give access to the form control.StringHTMLButtonElement. getAccessKey()A single character access key to give access to the form control.StringHTMLInputElement. getAccessKey()A single character access key to give access to the form control.StringHTMLLabelElement. getAccessKey()A single character access key to give access to the form control.StringHTMLLegendElement. getAccessKey()A single character access key to give access to the form control.StringHTMLTextAreaElement. getAccessKey()A single character access key to give access to the form control.StringHTMLFormElement. getAction()Server-side form handler.StringHTMLAppletElement. getAlign()Aligns this object (vertically or horizontally) with respect to its surrounding text.StringHTMLDivElement. getAlign()Horizontal text alignment.StringHTMLHeadingElement. getAlign()Horizontal text alignment.StringHTMLHRElement. getAlign()Align the rule on the page.StringHTMLIFrameElement. getAlign()Aligns this object (vertically or horizontally) with respect to its surrounding text.StringHTMLImageElement. getAlign()Aligns this object (vertically or horizontally) with respect to its surrounding text.StringHTMLInputElement. getAlign()Aligns this object (vertically or horizontally) with respect to its surrounding text.StringHTMLLegendElement. getAlign()Text alignment relative toFIELDSET.StringHTMLObjectElement. getAlign()Aligns this object (vertically or horizontally) with respect to its surrounding text.StringHTMLParagraphElement. getAlign()Horizontal text alignment.StringHTMLTableCaptionElement. getAlign()Caption alignment with respect to the table.StringHTMLTableCellElement. getAlign()Horizontal alignment of data in cell.StringHTMLTableColElement. getAlign()Horizontal alignment of cell data in column.StringHTMLTableElement. getAlign()Specifies the table's position with respect to the rest of the document.StringHTMLTableRowElement. getAlign()Horizontal alignment of data within cells of this row.StringHTMLTableSectionElement. getAlign()Horizontal alignment of data in cells.StringHTMLBodyElement. getALink()Color of active links (after mouse-button down, but before mouse-button up).StringHTMLAppletElement. getAlt()Alternate text for user agents not rendering the normal content of this element.StringHTMLAreaElement. getAlt()Alternate text for user agents not rendering the normal content of this element.StringHTMLImageElement. getAlt()Alternate text for user agents not rendering the normal content of this element.StringHTMLInputElement. getAlt()Alternate text for user agents not rendering the normal content of this element.StringHTMLAppletElement. getArchive()Comma-separated archive list.StringHTMLObjectElement. getArchive()Space-separated list of archives.StringHTMLTableCellElement. getAxis()Names group of related headers.StringHTMLBodyElement. getBackground()URI of the background texture tile image.StringHTMLBodyElement. getBgColor()Document background color.StringHTMLTableCellElement. getBgColor()Cell background color.StringHTMLTableElement. getBgColor()Cell background color.StringHTMLTableRowElement. getBgColor()Background color for rows.StringHTMLImageElement. getBorder()Width of border around image.StringHTMLObjectElement. getBorder()Width of border around the object.StringHTMLTableElement. getBorder()The width of the border around the table.StringHTMLTableElement. getCellPadding()Specifies the horizontal and vertical space between cell content and cell borders.StringHTMLTableElement. getCellSpacing()Specifies the horizontal and vertical separation between cells.StringHTMLTableCellElement. getCh()Alignment character for cells in a column.StringHTMLTableColElement. getCh()Alignment character for cells in a column.StringHTMLTableRowElement. getCh()Alignment character for cells in a column.StringHTMLTableSectionElement. getCh()Alignment character for cells in a column.StringHTMLAnchorElement. getCharset()The character encoding of the linked resource.StringHTMLLinkElement. getCharset()The character encoding of the resource being linked to.StringHTMLScriptElement. getCharset()The character encoding of the linked resource.StringHTMLTableCellElement. getChOff()Offset of alignment character.StringHTMLTableColElement. getChOff()Offset of alignment character.StringHTMLTableRowElement. getChOff()Offset of alignment character.StringHTMLTableSectionElement. getChOff()Offset of alignment character.StringHTMLModElement. getCite()A URI designating a document that describes the reason for the change.StringHTMLQuoteElement. getCite()A URI designating a source document or message.StringHTMLElement. getClassName()The class attribute of the element.StringHTMLBRElement. getClear()Control flow of text around floats.StringHTMLAppletElement. getCode()Applet class file.StringHTMLObjectElement. getCode()Applet class file.StringHTMLAppletElement. getCodeBase()Optional base URI for applet.StringHTMLObjectElement. getCodeBase()Base URI forclassid,data, andarchiveattributes.StringHTMLObjectElement. getCodeType()Content type for data downloaded viaclassidattribute.StringHTMLBaseFontElement. getColor()Font color.StringHTMLFontElement. getColor()Font color.StringHTMLFrameSetElement. getCols()The number of columns of frames in the frameset.StringHTMLMetaElement. getContent()Associated information.StringHTMLDocument. getCookie()The cookies associated with this document.StringHTMLAnchorElement. getCoords()Comma-separated list of lengths, defining an active region geometry.StringHTMLAreaElement. getCoords()Comma-separated list of lengths, defining an active region geometry.StringHTMLObjectElement. getData()A URI specifying the location of the object's data.StringHTMLModElement. getDateTime()The date and time of the change.StringHTMLInputElement. getDefaultValue()When thetypeattribute of the element has the value "Text", "File" or "Password", this represents the HTML value attribute of the element.StringHTMLTextAreaElement. getDefaultValue()Represents the contents of the element.StringHTMLElement. getDir()Specifies the base direction of directionally neutral text and the directionality of tables.StringHTMLDocument. getDomain()The domain name of the server that served the document, ornullif the server cannot be identified by a domain name.StringHTMLFormElement. getEnctype()The content type of the submitted form, generally "application/x-www-form-urlencoded".StringHTMLScriptElement. getEvent()Reserved for future use.StringHTMLBaseFontElement. getFace()Font face identifier.StringHTMLFontElement. getFace()Font face identifier.StringHTMLTableElement. getFrame()Specifies which external table borders to render.StringHTMLFrameElement. getFrameBorder()Request frame borders.StringHTMLIFrameElement. getFrameBorder()Request frame borders.StringHTMLTableCellElement. getHeaders()List ofidattribute values for header cells.StringHTMLAppletElement. getHeight()Override height.StringHTMLIFrameElement. getHeight()Frame height.StringHTMLImageElement. getHeight()Override height.StringHTMLObjectElement. getHeight()Override height.StringHTMLTableCellElement. getHeight()Cell height.StringHTMLAnchorElement. getHref()The URI of the linked resource.StringHTMLAreaElement. getHref()The URI of the linked resource.StringHTMLBaseElement. getHref()The base URI.StringHTMLLinkElement. getHref()The URI of the linked resource.StringHTMLAnchorElement. getHreflang()Language code of the linked resource.StringHTMLLinkElement. getHreflang()Language code of the linked resource.StringHTMLAppletElement. getHspace()Horizontal space to the left and right of this image, applet, or object.StringHTMLImageElement. getHspace()Horizontal space to the left and right of this image.StringHTMLObjectElement. getHspace()Horizontal space to the left and right of this image, applet, or object.StringHTMLLabelElement. getHtmlFor()This attribute links this label with another form control byidattribute.StringHTMLScriptElement. getHtmlFor()Reserved for future use.StringHTMLMetaElement. getHttpEquiv()HTTP response header name.StringHTMLElement. getId()The element's identifier.StringHTMLOptGroupElement. getLabel()Assigns a label to this option group.StringHTMLOptionElement. getLabel()Option label for use in hierarchical menus.StringHTMLElement. getLang()Language code defined in RFC 1766.StringHTMLBodyElement. getLink()Color of links that are not active and unvisited.StringHTMLFrameElement. getLongDesc()URI designating a long description of this image or frame.StringHTMLIFrameElement. getLongDesc()URI designating a long description of this image or frame.StringHTMLImageElement. getLongDesc()URI designating a long description of this image or frame.StringHTMLImageElement. getLowSrc()URI designating the source of this image, for low-resolution output.StringHTMLFrameElement. getMarginHeight()Frame margin height, in pixels.StringHTMLIFrameElement. getMarginHeight()Frame margin height, in pixels.StringHTMLFrameElement. getMarginWidth()Frame margin width, in pixels.StringHTMLIFrameElement. getMarginWidth()Frame margin width, in pixels.StringHTMLLinkElement. getMedia()Designed for use with one or more target media.StringHTMLStyleElement. getMedia()Designed for use with one or more target media.StringHTMLFormElement. getMethod()HTTP method used to submit form.StringHTMLAnchorElement. getName()Anchor name.StringHTMLAppletElement. getName()The name of the applet.StringHTMLButtonElement. getName()Form control or object name when submitted with a form.StringHTMLFormElement. getName()Names the form.StringHTMLFrameElement. getName()The frame name (object of thetargetattribute).StringHTMLIFrameElement. getName()The frame name (object of thetargetattribute).StringHTMLImageElement. getName()The name of the element (for backwards compatibility).StringHTMLInputElement. getName()Form control or object name when submitted with a form.StringHTMLMapElement. getName()Names the map (for use withusemap).StringHTMLMetaElement. getName()Meta information name.StringHTMLObjectElement. getName()Form control or object name when submitted with a form.StringHTMLParamElement. getName()The name of a run-time parameter.StringHTMLSelectElement. getName()Form control or object name when submitted with a form.StringHTMLTextAreaElement. getName()Form control or object name when submitted with a form.StringHTMLAppletElement. getObject()Serialized applet file.StringHTMLHeadElement. getProfile()URI designating a metadata profile.StringHTMLIsIndexElement. getPrompt()The prompt message.StringHTMLDocument. getReferrer()Returns the URI of the page that linked to this page.StringHTMLAnchorElement. getRel()Forward link type.StringHTMLLinkElement. getRel()Forward link type.StringHTMLAnchorElement. getRev()Reverse link type.StringHTMLLinkElement. getRev()Reverse link type.StringHTMLFrameSetElement. getRows()The number of rows of frames in the frameset.StringHTMLTableElement. getRules()Specifies which internal table borders to render.StringHTMLMetaElement. getScheme()Select form of content.StringHTMLTableCellElement. getScope()Scope covered by header cells.StringHTMLFrameElement. getScrolling()Specify whether or not the frame should have scrollbars.StringHTMLIFrameElement. getScrolling()Specify whether or not the frame should have scrollbars.StringHTMLAnchorElement. getShape()The shape of the active area.StringHTMLAreaElement. getShape()The shape of the active area.StringHTMLBaseFontElement. getSize()Font size.StringHTMLFontElement. getSize()Font size.StringHTMLHRElement. getSize()The height of the rule.StringHTMLInputElement. getSize()Size information.StringHTMLFrameElement. getSrc()A URI designating the initial frame contents.StringHTMLIFrameElement. getSrc()A URI designating the initial frame contents.StringHTMLImageElement. getSrc()URI designating the source of this image.StringHTMLInputElement. getSrc()When thetypeattribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button.StringHTMLScriptElement. getSrc()URI designating an external script.StringHTMLObjectElement. getStandby()Message to render while loading the object.StringHTMLTableElement. getSummary()Description about the purpose or structure of a table.StringHTMLAnchorElement. getTarget()Frame to render the resource in.StringHTMLAreaElement. getTarget()Frame to render the resource in.StringHTMLBaseElement. getTarget()The default target frame.StringHTMLFormElement. getTarget()Frame to render the resource in.StringHTMLLinkElement. getTarget()Frame to render the resource in.StringHTMLBodyElement. getText()Document text color.StringHTMLOptionElement. getText()The text contained within the option element.StringHTMLScriptElement. getText()The script content of the element.StringHTMLTitleElement. getText()The specified title as a string.StringHTMLDocument. getTitle()The title of a document as specified by theTITLEelement in the head of the document.StringHTMLElement. getTitle()The element's advisory title.StringHTMLAnchorElement. getType()Advisory content type.StringHTMLButtonElement. getType()The type of button.StringHTMLInputElement. getType()The type of control created.StringHTMLLIElement. getType()List item bullet style.StringHTMLLinkElement. getType()Advisory content type.StringHTMLObjectElement. getType()Content type for data downloaded viadataattribute.StringHTMLOListElement. getType()Numbering style.StringHTMLParamElement. getType()Content type for thevalueattribute whenvaluetypehas the value "ref".StringHTMLScriptElement. getType()The content type of the script language.StringHTMLSelectElement. getType()The type of this form control.StringHTMLStyleElement. getType()The content type pf the style sheet language.StringHTMLTextAreaElement. getType()The type of this form control.StringHTMLUListElement. getType()Bullet style.StringHTMLDocument. getURL()The complete URI of the document.StringHTMLImageElement. getUseMap()Use client-side image map.StringHTMLInputElement. getUseMap()Use client-side image map.StringHTMLObjectElement. getUseMap()Use client-side image map.StringHTMLTableCellElement. getVAlign()Vertical alignment of data in cell.StringHTMLTableColElement. getVAlign()Vertical alignment of cell data in column.StringHTMLTableRowElement. getVAlign()Vertical alignment of data within cells of this row.StringHTMLTableSectionElement. getVAlign()Vertical alignment of data in cells.StringHTMLButtonElement. getValue()The current form control value.StringHTMLInputElement. getValue()When thetypeattribute of the element has the value "Text", "File" or "Password", this represents the current contents of the corresponding form control, in an interactive user agent.StringHTMLOptionElement. getValue()The current form control value.StringHTMLParamElement. getValue()The value of a run-time parameter.StringHTMLSelectElement. getValue()The current form control value.StringHTMLTextAreaElement. getValue()Represents the current contents of the corresponding form control, in an interactive user agent.StringHTMLParamElement. getValueType()Information about the meaning of thevalueattribute value.StringHTMLHtmlElement. getVersion()Version information about the document's DTD.StringHTMLBodyElement. getVLink()Color of links that have been visited by the user.StringHTMLAppletElement. getVspace()Vertical space above and below this image, applet, or object.StringHTMLImageElement. getVspace()Vertical space above and below this image.StringHTMLObjectElement. getVspace()Vertical space above and below this image, applet, or object.StringHTMLAppletElement. getWidth()Override width.StringHTMLHRElement. getWidth()The width of the rule.StringHTMLIFrameElement. getWidth()Frame width.StringHTMLImageElement. getWidth()Override width.StringHTMLObjectElement. getWidth()Override width.StringHTMLTableCellElement. getWidth()Cell width.StringHTMLTableColElement. getWidth()Default column width.StringHTMLTableElement. getWidth()Specifies the desired table width.Methods in org.w3c.dom.html with parameters of type String Modifier and Type Method Description HTMLDocumentHTMLDOMImplementation. createHTMLDocument(String title)Creates anHTMLDocumentobject with the minimal tree made of the following elements:HTML,HEAD,TITLE, andBODY.NodeListHTMLDocument. getElementsByName(String elementName)Returns the (possibly empty) collection of elements whosenamevalue is given byelementName.NodeHTMLCollection. namedItem(String name)This method retrieves aNodeusing a name.voidHTMLTableCellElement. setAbbr(String abbr)voidHTMLInputElement. setAccept(String accept)voidHTMLFormElement. setAcceptCharset(String acceptCharset)voidHTMLAnchorElement. setAccessKey(String accessKey)voidHTMLAreaElement. setAccessKey(String accessKey)voidHTMLButtonElement. setAccessKey(String accessKey)voidHTMLInputElement. setAccessKey(String accessKey)voidHTMLLabelElement. setAccessKey(String accessKey)voidHTMLLegendElement. setAccessKey(String accessKey)voidHTMLTextAreaElement. setAccessKey(String accessKey)voidHTMLFormElement. setAction(String action)voidHTMLAppletElement. setAlign(String align)voidHTMLDivElement. setAlign(String align)voidHTMLHeadingElement. setAlign(String align)voidHTMLHRElement. setAlign(String align)voidHTMLIFrameElement. setAlign(String align)voidHTMLImageElement. setAlign(String align)voidHTMLInputElement. setAlign(String align)voidHTMLLegendElement. setAlign(String align)voidHTMLObjectElement. setAlign(String align)voidHTMLParagraphElement. setAlign(String align)voidHTMLTableCaptionElement. setAlign(String align)voidHTMLTableCellElement. setAlign(String align)voidHTMLTableColElement. setAlign(String align)voidHTMLTableElement. setAlign(String align)voidHTMLTableRowElement. setAlign(String align)voidHTMLTableSectionElement. setAlign(String align)voidHTMLBodyElement. setALink(String aLink)voidHTMLAppletElement. setAlt(String alt)voidHTMLAreaElement. setAlt(String alt)voidHTMLImageElement. setAlt(String alt)voidHTMLInputElement. setAlt(String alt)voidHTMLAppletElement. setArchive(String archive)voidHTMLObjectElement. setArchive(String archive)voidHTMLTableCellElement. setAxis(String axis)voidHTMLBodyElement. setBackground(String background)voidHTMLBodyElement. setBgColor(String bgColor)voidHTMLTableCellElement. setBgColor(String bgColor)voidHTMLTableElement. setBgColor(String bgColor)voidHTMLTableRowElement. setBgColor(String bgColor)voidHTMLImageElement. setBorder(String border)voidHTMLObjectElement. setBorder(String border)voidHTMLTableElement. setBorder(String border)voidHTMLTableElement. setCellPadding(String cellPadding)voidHTMLTableElement. setCellSpacing(String cellSpacing)voidHTMLTableCellElement. setCh(String ch)voidHTMLTableColElement. setCh(String ch)voidHTMLTableRowElement. setCh(String ch)voidHTMLTableSectionElement. setCh(String ch)voidHTMLAnchorElement. setCharset(String charset)voidHTMLLinkElement. setCharset(String charset)voidHTMLScriptElement. setCharset(String charset)voidHTMLTableCellElement. setChOff(String chOff)voidHTMLTableColElement. setChOff(String chOff)voidHTMLTableRowElement. setChOff(String chOff)voidHTMLTableSectionElement. setChOff(String chOff)voidHTMLModElement. setCite(String cite)voidHTMLQuoteElement. setCite(String cite)voidHTMLElement. setClassName(String className)voidHTMLBRElement. setClear(String clear)voidHTMLAppletElement. setCode(String code)voidHTMLObjectElement. setCode(String code)voidHTMLAppletElement. setCodeBase(String codeBase)voidHTMLObjectElement. setCodeBase(String codeBase)voidHTMLObjectElement. setCodeType(String codeType)voidHTMLBaseFontElement. setColor(String color)voidHTMLFontElement. setColor(String color)voidHTMLFrameSetElement. setCols(String cols)voidHTMLMetaElement. setContent(String content)voidHTMLDocument. setCookie(String cookie)voidHTMLAnchorElement. setCoords(String coords)voidHTMLAreaElement. setCoords(String coords)voidHTMLObjectElement. setData(String data)voidHTMLModElement. setDateTime(String dateTime)voidHTMLInputElement. setDefaultValue(String defaultValue)voidHTMLTextAreaElement. setDefaultValue(String defaultValue)voidHTMLElement. setDir(String dir)voidHTMLFormElement. setEnctype(String enctype)voidHTMLScriptElement. setEvent(String event)voidHTMLBaseFontElement. setFace(String face)voidHTMLFontElement. setFace(String face)voidHTMLTableElement. setFrame(String frame)voidHTMLFrameElement. setFrameBorder(String frameBorder)voidHTMLIFrameElement. setFrameBorder(String frameBorder)voidHTMLTableCellElement. setHeaders(String headers)voidHTMLAppletElement. setHeight(String height)voidHTMLIFrameElement. setHeight(String height)voidHTMLImageElement. setHeight(String height)voidHTMLObjectElement. setHeight(String height)voidHTMLTableCellElement. setHeight(String height)voidHTMLAnchorElement. setHref(String href)voidHTMLAreaElement. setHref(String href)voidHTMLBaseElement. setHref(String href)voidHTMLLinkElement. setHref(String href)voidHTMLAnchorElement. setHreflang(String hreflang)voidHTMLLinkElement. setHreflang(String hreflang)voidHTMLAppletElement. setHspace(String hspace)voidHTMLImageElement. setHspace(String hspace)voidHTMLObjectElement. setHspace(String hspace)voidHTMLLabelElement. setHtmlFor(String htmlFor)voidHTMLScriptElement. setHtmlFor(String htmlFor)voidHTMLMetaElement. setHttpEquiv(String httpEquiv)voidHTMLElement. setId(String id)voidHTMLOptGroupElement. setLabel(String label)voidHTMLOptionElement. setLabel(String label)voidHTMLElement. setLang(String lang)voidHTMLBodyElement. setLink(String link)voidHTMLFrameElement. setLongDesc(String longDesc)voidHTMLIFrameElement. setLongDesc(String longDesc)voidHTMLImageElement. setLongDesc(String longDesc)voidHTMLImageElement. setLowSrc(String lowSrc)voidHTMLFrameElement. setMarginHeight(String marginHeight)voidHTMLIFrameElement. setMarginHeight(String marginHeight)voidHTMLFrameElement. setMarginWidth(String marginWidth)voidHTMLIFrameElement. setMarginWidth(String marginWidth)voidHTMLLinkElement. setMedia(String media)voidHTMLStyleElement. setMedia(String media)voidHTMLFormElement. setMethod(String method)voidHTMLAnchorElement. setName(String name)voidHTMLAppletElement. setName(String name)voidHTMLButtonElement. setName(String name)voidHTMLFormElement. setName(String name)voidHTMLFrameElement. setName(String name)voidHTMLIFrameElement. setName(String name)voidHTMLImageElement. setName(String name)voidHTMLInputElement. setName(String name)voidHTMLMapElement. setName(String name)voidHTMLMetaElement. setName(String name)voidHTMLObjectElement. setName(String name)voidHTMLParamElement. setName(String name)voidHTMLSelectElement. setName(String name)voidHTMLTextAreaElement. setName(String name)voidHTMLAppletElement. setObject(String object)voidHTMLHeadElement. setProfile(String profile)voidHTMLIsIndexElement. setPrompt(String prompt)voidHTMLAnchorElement. setRel(String rel)voidHTMLLinkElement. setRel(String rel)voidHTMLAnchorElement. setRev(String rev)voidHTMLLinkElement. setRev(String rev)voidHTMLFrameSetElement. setRows(String rows)voidHTMLTableElement. setRules(String rules)voidHTMLMetaElement. setScheme(String scheme)voidHTMLTableCellElement. setScope(String scope)voidHTMLFrameElement. setScrolling(String scrolling)voidHTMLIFrameElement. setScrolling(String scrolling)voidHTMLAnchorElement. setShape(String shape)voidHTMLAreaElement. setShape(String shape)voidHTMLBaseFontElement. setSize(String size)voidHTMLFontElement. setSize(String size)voidHTMLHRElement. setSize(String size)voidHTMLInputElement. setSize(String size)voidHTMLFrameElement. setSrc(String src)voidHTMLIFrameElement. setSrc(String src)voidHTMLImageElement. setSrc(String src)voidHTMLInputElement. setSrc(String src)voidHTMLScriptElement. setSrc(String src)voidHTMLObjectElement. setStandby(String standby)voidHTMLTableElement. setSummary(String summary)voidHTMLAnchorElement. setTarget(String target)voidHTMLAreaElement. setTarget(String target)voidHTMLBaseElement. setTarget(String target)voidHTMLFormElement. setTarget(String target)voidHTMLLinkElement. setTarget(String target)voidHTMLBodyElement. setText(String text)voidHTMLScriptElement. setText(String text)voidHTMLTitleElement. setText(String text)voidHTMLDocument. setTitle(String title)voidHTMLElement. setTitle(String title)voidHTMLAnchorElement. setType(String type)voidHTMLLIElement. setType(String type)voidHTMLLinkElement. setType(String type)voidHTMLObjectElement. setType(String type)voidHTMLOListElement. setType(String type)voidHTMLParamElement. setType(String type)voidHTMLScriptElement. setType(String type)voidHTMLStyleElement. setType(String type)voidHTMLUListElement. setType(String type)voidHTMLImageElement. setUseMap(String useMap)voidHTMLInputElement. setUseMap(String useMap)voidHTMLObjectElement. setUseMap(String useMap)voidHTMLTableCellElement. setVAlign(String vAlign)voidHTMLTableColElement. setVAlign(String vAlign)voidHTMLTableRowElement. setVAlign(String vAlign)voidHTMLTableSectionElement. setVAlign(String vAlign)voidHTMLButtonElement. setValue(String value)voidHTMLInputElement. setValue(String value)voidHTMLOptionElement. setValue(String value)voidHTMLParamElement. setValue(String value)voidHTMLSelectElement. setValue(String value)voidHTMLTextAreaElement. setValue(String value)voidHTMLParamElement. setValueType(String valueType)voidHTMLHtmlElement. setVersion(String version)voidHTMLBodyElement. setVLink(String vLink)voidHTMLAppletElement. setVspace(String vspace)voidHTMLImageElement. setVspace(String vspace)voidHTMLObjectElement. setVspace(String vspace)voidHTMLAppletElement. setWidth(String width)voidHTMLHRElement. setWidth(String width)voidHTMLIFrameElement. setWidth(String width)voidHTMLImageElement. setWidth(String width)voidHTMLObjectElement. setWidth(String width)voidHTMLTableCellElement. setWidth(String width)voidHTMLTableColElement. setWidth(String width)voidHTMLTableElement. setWidth(String width)voidHTMLDocument. write(String text)Write a string of text to a document stream opened byopen().voidHTMLDocument. writeln(String text)Write a string of text followed by a newline character to a document stream opened byopen(). -
Uses of String in org.w3c.dom.ls
Methods in org.w3c.dom.ls that return String Modifier and Type Method Description StringLSInput. getBaseURI()The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relativesystemIdto an absolute URI.StringLSInput. getEncoding()The character encoding, if known.StringLSOutput. getEncoding()The character encoding to use for the output.StringLSSerializer. getNewLine()The end-of-line sequence of characters to be used in the XML being written out.StringLSInput. getPublicId()The public identifier for this input source.StringLSInput. getStringData()String data to parse.StringLSInput. getSystemId()The system identifier, a URI reference [IETF RFC 2396], for this input source.StringLSOutput. getSystemId()The system identifier, a URI reference [IETF RFC 2396], for this output destination.StringLSSerializer. writeToString(Node nodeArg)Serialize the specified node as described above in the general description of theLSSerializerinterface.Methods in org.w3c.dom.ls with parameters of type String Modifier and Type Method Description LSParserDOMImplementationLS. createLSParser(short mode, String schemaType)Create a newLSParser.DocumentLSParser. parseURI(String uri)Parse an XML document from a location identified by a URI reference [IETF RFC 2396].LSInputLSResourceResolver. resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)Allow the application to resolve external resources.voidLSInput. setBaseURI(String baseURI)The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relativesystemIdto an absolute URI.voidLSInput. setEncoding(String encoding)The character encoding, if known.voidLSOutput. setEncoding(String encoding)The character encoding to use for the output.voidLSSerializer. setNewLine(String newLine)The end-of-line sequence of characters to be used in the XML being written out.voidLSInput. setPublicId(String publicId)The public identifier for this input source.voidLSInput. setStringData(String stringData)String data to parse.voidLSInput. setSystemId(String systemId)The system identifier, a URI reference [IETF RFC 2396], for this input source.voidLSOutput. setSystemId(String systemId)The system identifier, a URI reference [IETF RFC 2396], for this output destination.booleanLSSerializer. writeToURI(Node nodeArg, String uri)A convenience method that acts as ifLSSerializer.writewas called with aLSOutputwith no encoding specified andLSOutput.systemIdset to theuriargument.Constructors in org.w3c.dom.ls with parameters of type String Constructor Description LSException(short code, String message) -
Uses of String in org.w3c.dom.ranges
Methods in org.w3c.dom.ranges that return String Modifier and Type Method Description StringRange. toString()Returns the contents of a Range as a string.Constructors in org.w3c.dom.ranges with parameters of type String Constructor Description RangeException(short code, String message) -
Uses of String in org.w3c.dom.stylesheets
Methods in org.w3c.dom.stylesheets that return String Modifier and Type Method Description StringStyleSheet. getHref()If the style sheet is a linked style sheet, the value of its attribute is its location.StringMediaList. getMediaText()The parsable textual representation of the media list.StringStyleSheet. getTitle()The advisory title.StringStyleSheet. getType()This specifies the style sheet language for this style sheet.StringMediaList. item(int index)Returns theindexth in the list.Methods in org.w3c.dom.stylesheets with parameters of type String Modifier and Type Method Description voidMediaList. appendMedium(String newMedium)Adds the mediumnewMediumto the end of the list.voidMediaList. deleteMedium(String oldMedium)Deletes the medium indicated byoldMediumfrom the list.voidMediaList. setMediaText(String mediaText)The parsable textual representation of the media list. -
Uses of String in org.w3c.dom.xpath
Methods in org.w3c.dom.xpath that return String Modifier and Type Method Description StringXPathResult. getStringValue()The value of this string result.StringXPathNSResolver. lookupNamespaceURI(String prefix)Look up the namespace URI associated to the given namespace prefix.Methods in org.w3c.dom.xpath with parameters of type String Modifier and Type Method Description XPathExpressionXPathEvaluator. createExpression(String expression, XPathNSResolver resolver)Creates a parsed XPath expression with resolved namespaces.ObjectXPathEvaluator. evaluate(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result)Evaluates an XPath expression string and returns a result of the specified type if possible.StringXPathNSResolver. lookupNamespaceURI(String prefix)Look up the namespace URI associated to the given namespace prefix.Constructors in org.w3c.dom.xpath with parameters of type String Constructor Description XPathException(short code, String message) -
Uses of String in org.xml.sax
Methods in org.xml.sax that return String Modifier and Type Method Description StringInputSource. getEncoding()Get the character encoding for a byte stream or URI.StringAttributes. getLocalName(int index)Look up an attribute's local name by index.StringSAXException. getMessage()Return a detail message for this exception.StringAttributeList. getName(int i)Deprecated.Return the name of an attribute in this list (by position).StringInputSource. getPublicId()Get the public identifier for this input source.StringLocator. getPublicId()Return the public identifier for the current document event.StringSAXParseException. getPublicId()Get the public identifier of the entity where the exception occurred.StringAttributes. getQName(int index)Look up an attribute's XML qualified (prefixed) name by index.StringInputSource. getSystemId()Get the system identifier for this input source.StringLocator. getSystemId()Return the system identifier for the current document event.StringSAXParseException. getSystemId()Get the system identifier of the entity where the exception occurred.StringAttributeList. getType(int i)Deprecated.Return the type of an attribute in the list (by position).StringAttributeList. getType(String name)Deprecated.Return the type of an attribute in the list (by name).StringAttributes. getType(int index)Look up an attribute's type by index.StringAttributes. getType(String qName)Look up an attribute's type by XML qualified (prefixed) name.StringAttributes. getType(String uri, String localName)Look up an attribute's type by Namespace name.StringAttributes. getURI(int index)Look up an attribute's Namespace URI by index.StringAttributeList. getValue(int i)Deprecated.Return the value of an attribute in the list (by position).StringAttributeList. getValue(String name)Deprecated.Return the value of an attribute in the list (by name).StringAttributes. getValue(int index)Look up an attribute's value by index.StringAttributes. getValue(String qName)Look up an attribute's value by XML qualified (prefixed) name.StringAttributes. getValue(String uri, String localName)Look up an attribute's value by Namespace name.StringSAXException. toString()Override toString to pick up any embedded exception.StringSAXParseException. toString()Override toString to provide more detailed error message.Methods in org.xml.sax with parameters of type String Modifier and Type Method Description voidContentHandler. endElement(String uri, String localName, String qName)Receive notification of the end of an element.voidDocumentHandler. endElement(String name)Deprecated.Receive notification of the end of an element.voidHandlerBase. endElement(String name)Deprecated.Receive notification of the end of an element.voidContentHandler. endPrefixMapping(String prefix)End the scope of a prefix-URI mapping.booleanXMLReader. getFeature(String name)Look up the value of a feature flag.intAttributes. getIndex(String qName)Look up the index of an attribute by XML qualified (prefixed) name.intAttributes. getIndex(String uri, String localName)Look up the index of an attribute by Namespace name.ObjectXMLReader. getProperty(String name)Look up the value of a property.StringAttributeList. getType(String name)Deprecated.Return the type of an attribute in the list (by name).StringAttributes. getType(String qName)Look up an attribute's type by XML qualified (prefixed) name.StringAttributes. getType(String uri, String localName)Look up an attribute's type by Namespace name.StringAttributeList. getValue(String name)Deprecated.Return the value of an attribute in the list (by name).StringAttributes. getValue(String qName)Look up an attribute's value by XML qualified (prefixed) name.StringAttributes. getValue(String uri, String localName)Look up an attribute's value by Namespace name.voidDTDHandler. notationDecl(String name, String publicId, String systemId)Receive notification of a notation declaration event.voidHandlerBase. notationDecl(String name, String publicId, String systemId)Deprecated.Receive notification of a notation declaration.voidParser. parse(String systemId)Deprecated.Parse an XML document from a system identifier (URI).voidXMLReader. parse(String systemId)Parse an XML document from a system identifier (URI).voidContentHandler. processingInstruction(String target, String data)Receive notification of a processing instruction.voidDocumentHandler. processingInstruction(String target, String data)Deprecated.Receive notification of a processing instruction.voidHandlerBase. processingInstruction(String target, String data)Deprecated.Receive notification of a processing instruction.InputSourceEntityResolver. resolveEntity(String publicId, String systemId)Allow the application to resolve external entities.InputSourceHandlerBase. resolveEntity(String publicId, String systemId)Deprecated.Resolve an external entity.voidInputSource. setEncoding(String encoding)Set the character encoding, if known.voidXMLReader. setFeature(String name, boolean value)Set the value of a feature flag.voidXMLReader. setProperty(String name, Object value)Set the value of a property.voidInputSource. setPublicId(String publicId)Set the public identifier for this input source.voidInputSource. setSystemId(String systemId)Set the system identifier for this input source.voidContentHandler. skippedEntity(String name)Receive notification of a skipped entity.voidContentHandler. startElement(String uri, String localName, String qName, Attributes atts)Receive notification of the beginning of an element.voidDocumentHandler. startElement(String name, AttributeList atts)Deprecated.Receive notification of the beginning of an element.voidHandlerBase. startElement(String name, AttributeList attributes)Deprecated.Receive notification of the start of an element.voidContentHandler. startPrefixMapping(String prefix, String uri)Begin the scope of a prefix-URI Namespace mapping.voidDTDHandler. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Receive notification of an unparsed entity declaration event.voidHandlerBase. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Deprecated.Receive notification of an unparsed entity declaration.Constructors in org.xml.sax with parameters of type String Constructor Description InputSource(String systemId)Create a new input source with a system identifier.SAXException(String message)Create a new SAXException.SAXException(String message, Exception e)Create a new SAXException from an existing exception.SAXNotRecognizedException(String message)Construct a new exception with the given message.SAXNotSupportedException(String message)Construct a new exception with the given message.SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber)Create a new SAXParseException.SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber, Exception e)Create a new SAXParseException with an embedded exception.SAXParseException(String message, Locator locator)Create a new SAXParseException from a message and a Locator.SAXParseException(String message, Locator locator, Exception e)Wrap an existing exception in a SAXParseException. -
Uses of String in org.xml.sax.ext
Methods in org.xml.sax.ext that return String Modifier and Type Method Description StringLocator2. getEncoding()Returns the name of the character encoding for the entity.StringLocator2Impl. getEncoding()Returns the current value of the encoding property.StringLocator2. getXMLVersion()Returns the version of XML used for the entity.StringLocator2Impl. getXMLVersion()Returns the current value of the version property.Methods in org.xml.sax.ext with parameters of type String Modifier and Type Method Description voidAttributes2Impl. addAttribute(String uri, String localName, String qName, String type, String value)Add an attribute to the end of the list, setting its "specified" flag to true.voidDeclHandler. attributeDecl(String eName, String aName, String type, String mode, String value)Report an attribute type declaration.voidDeclHandler. elementDecl(String name, String model)Report an element type declaration.voidLexicalHandler. endEntity(String name)Report the end of an entity.voidDeclHandler. externalEntityDecl(String name, String publicId, String systemId)Report a parsed external entity declaration.InputSourceDefaultHandler2. getExternalSubset(String name, String baseURI)Tells the parser that if no external subset has been declared in the document text, none should be used.InputSourceEntityResolver2. getExternalSubset(String name, String baseURI)Allows applications to provide an external subset for documents that don't explicitly define one.voidDeclHandler. internalEntityDecl(String name, String value)Report an internal entity declaration.booleanAttributes2. isDeclared(String qName)Returns false unless the attribute was declared in the DTD.booleanAttributes2. isDeclared(String uri, String localName)Returns false unless the attribute was declared in the DTD.booleanAttributes2Impl. isDeclared(String qName)Returns the current value of the attribute's "declared" flag.booleanAttributes2Impl. isDeclared(String uri, String localName)Returns the current value of the attribute's "declared" flag.booleanAttributes2. isSpecified(String qName)Returns true unless the attribute value was provided by DTD defaulting.booleanAttributes2. isSpecified(String uri, String localName)Returns true unless the attribute value was provided by DTD defaulting.booleanAttributes2Impl. isSpecified(String qName)Returns the current value of an attribute's "specified" flag.booleanAttributes2Impl. isSpecified(String uri, String localName)Returns the current value of an attribute's "specified" flag.InputSourceDefaultHandler2. resolveEntity(String publicId, String systemId)InvokesEntityResolver2.resolveEntity()with null entity name and base URI.InputSourceDefaultHandler2. resolveEntity(String name, String publicId, String baseURI, String systemId)Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI.InputSourceEntityResolver2. resolveEntity(String name, String publicId, String baseURI, String systemId)Allows applications to map references to external entities into input sources, or tell the parser it should use conventional URI resolution.voidLocator2Impl. setEncoding(String encoding)Assigns the current value of the encoding property.voidLocator2Impl. setXMLVersion(String version)Assigns the current value of the version property.voidLexicalHandler. startDTD(String name, String publicId, String systemId)Report the start of DTD declarations, if any.voidLexicalHandler. startEntity(String name)Report the beginning of some internal and external XML entities. -
Uses of String in org.xml.sax.helpers
Fields in org.xml.sax.helpers declared as String Modifier and Type Field Description static StringNamespaceSupport. NSDECLThe namespace declaration URI as a constant.static StringNamespaceSupport. XMLNSThe XML Namespace URI as a constant.Methods in org.xml.sax.helpers that return String Modifier and Type Method Description StringAttributesImpl. getLocalName(int index)Return an attribute's local name.StringAttributeListImpl. getName(int i)Deprecated.Get the name of an attribute (by position).StringNamespaceSupport. getPrefix(String uri)Return one of the prefixes mapped to a Namespace URI.StringLocatorImpl. getPublicId()Return the saved public identifier.StringAttributesImpl. getQName(int index)Return an attribute's qualified (prefixed) name.StringLocatorImpl. getSystemId()Return the saved system identifier.StringAttributeListImpl. getType(int i)Deprecated.Get the type of an attribute (by position).StringAttributeListImpl. getType(String name)Deprecated.Get the type of an attribute (by name).StringAttributesImpl. getType(int index)Return an attribute's type by index.StringAttributesImpl. getType(String qName)Look up an attribute's type by qualified (prefixed) name.StringAttributesImpl. getType(String uri, String localName)Look up an attribute's type by Namespace-qualified name.StringAttributesImpl. getURI(int index)Return an attribute's Namespace URI.StringNamespaceSupport. getURI(String prefix)Look up a prefix and get the currently-mapped Namespace URI.StringAttributeListImpl. getValue(int i)Deprecated.Get the value of an attribute (by position).StringAttributeListImpl. getValue(String name)Deprecated.Get the value of an attribute (by name).StringAttributesImpl. getValue(int index)Return an attribute's value by index.StringAttributesImpl. getValue(String qName)Look up an attribute's value by qualified (prefixed) name.StringAttributesImpl. getValue(String uri, String localName)Look up an attribute's value by Namespace-qualified name.String[]NamespaceSupport. processName(String qName, String[] parts, boolean isAttribute)Process a raw XML qualified name, after all declarations in the current context have been handled bydeclarePrefix().Methods in org.xml.sax.helpers that return types with arguments of type String Modifier and Type Method Description Enumeration<String>NamespaceSupport. getDeclaredPrefixes()Return an enumeration of all prefixes declared in this context.Enumeration<String>NamespaceSupport. getPrefixes()Return an enumeration of all prefixes whose declarations are active in the current context.Enumeration<String>NamespaceSupport. getPrefixes(String uri)Return an enumeration of all prefixes for a given URI whose declarations are active in the current context.Methods in org.xml.sax.helpers with parameters of type String Modifier and Type Method Description voidAttributeListImpl. addAttribute(String name, String type, String value)Deprecated.Add an attribute to an attribute list.voidAttributesImpl. addAttribute(String uri, String localName, String qName, String type, String value)Add an attribute to the end of the list.static XMLReaderXMLReaderFactory. createXMLReader(String className)Deprecated.Attempt to create an XML reader from a class name.booleanNamespaceSupport. declarePrefix(String prefix, String uri)Declare a Namespace prefix.voidDefaultHandler. endElement(String uri, String localName, String qName)Receive notification of the end of an element.voidParserAdapter. endElement(String qName)Adapter implementation method; do not call.voidXMLFilterImpl. endElement(String uri, String localName, String qName)Filter an end element event.voidXMLReaderAdapter. endElement(String uri, String localName, String qName)Adapt a SAX2 end element event.voidDefaultHandler. endPrefixMapping(String prefix)Receive notification of the end of a Namespace mapping.voidXMLFilterImpl. endPrefixMapping(String prefix)Filter an end Namespace prefix mapping event.voidXMLReaderAdapter. endPrefixMapping(String prefix)Adapt a SAX2 end prefix mapping event.booleanParserAdapter. getFeature(String name)Check a parser feature flag.booleanXMLFilterImpl. getFeature(String name)Look up the value of a feature.intAttributesImpl. getIndex(String qName)Look up an attribute's index by qualified (prefixed) name.intAttributesImpl. getIndex(String uri, String localName)Look up an attribute's index by Namespace name.StringNamespaceSupport. getPrefix(String uri)Return one of the prefixes mapped to a Namespace URI.Enumeration<String>NamespaceSupport. getPrefixes(String uri)Return an enumeration of all prefixes for a given URI whose declarations are active in the current context.ObjectParserAdapter. getProperty(String name)Get a parser property.ObjectXMLFilterImpl. getProperty(String name)Look up the value of a property.StringAttributeListImpl. getType(String name)Deprecated.Get the type of an attribute (by name).StringAttributesImpl. getType(String qName)Look up an attribute's type by qualified (prefixed) name.StringAttributesImpl. getType(String uri, String localName)Look up an attribute's type by Namespace-qualified name.StringNamespaceSupport. getURI(String prefix)Look up a prefix and get the currently-mapped Namespace URI.StringAttributeListImpl. getValue(String name)Deprecated.Get the value of an attribute (by name).StringAttributesImpl. getValue(String qName)Look up an attribute's value by qualified (prefixed) name.StringAttributesImpl. getValue(String uri, String localName)Look up an attribute's value by Namespace-qualified name.static ParserParserFactory. makeParser(String className)Deprecated.Create a new SAX parser object using the class name provided.voidDefaultHandler. notationDecl(String name, String publicId, String systemId)Receive notification of a notation declaration.voidXMLFilterImpl. notationDecl(String name, String publicId, String systemId)Filter a notation declaration event.voidParserAdapter. parse(String systemId)Parse an XML document.voidXMLFilterImpl. parse(String systemId)Parse a document.voidXMLReaderAdapter. parse(String systemId)Parse the document.voidDefaultHandler. processingInstruction(String target, String data)Receive notification of a processing instruction.voidParserAdapter. processingInstruction(String target, String data)Adapter implementation method; do not call.voidXMLFilterImpl. processingInstruction(String target, String data)Filter a processing instruction event.voidXMLReaderAdapter. processingInstruction(String target, String data)Adapt a SAX2 processing instruction event.String[]NamespaceSupport. processName(String qName, String[] parts, boolean isAttribute)Process a raw XML qualified name, after all declarations in the current context have been handled bydeclarePrefix().voidAttributeListImpl. removeAttribute(String name)Deprecated.Remove an attribute from the list.InputSourceDefaultHandler. resolveEntity(String publicId, String systemId)Resolve an external entity.InputSourceXMLFilterImpl. resolveEntity(String publicId, String systemId)Filter an external entity resolution.voidAttributesImpl. setAttribute(int index, String uri, String localName, String qName, String type, String value)Set an attribute in the list.voidParserAdapter. setFeature(String name, boolean value)Set a feature flag for the parser.voidXMLFilterImpl. setFeature(String name, boolean value)Set the value of a feature.voidAttributesImpl. setLocalName(int index, String localName)Set the local name of a specific attribute.voidParserAdapter. setProperty(String name, Object value)Set a parser property.voidXMLFilterImpl. setProperty(String name, Object value)Set the value of a property.voidLocatorImpl. setPublicId(String publicId)Set the public identifier for this locator.voidAttributesImpl. setQName(int index, String qName)Set the qualified name of a specific attribute.voidLocatorImpl. setSystemId(String systemId)Set the system identifier for this locator.voidAttributesImpl. setType(int index, String type)Set the type of a specific attribute.voidAttributesImpl. setURI(int index, String uri)Set the Namespace URI of a specific attribute.voidAttributesImpl. setValue(int index, String value)Set the value of a specific attribute.voidDefaultHandler. skippedEntity(String name)Receive notification of a skipped entity.voidXMLFilterImpl. skippedEntity(String name)Filter a skipped entity event.voidXMLReaderAdapter. skippedEntity(String name)Adapt a SAX2 skipped entity event.voidDefaultHandler. startElement(String uri, String localName, String qName, Attributes attributes)Receive notification of the start of an element.voidParserAdapter. startElement(String qName, AttributeList qAtts)Adapter implementation method; do not call.voidXMLFilterImpl. startElement(String uri, String localName, String qName, Attributes atts)Filter a start element event.voidXMLReaderAdapter. startElement(String uri, String localName, String qName, Attributes atts)Adapt a SAX2 start element event.voidDefaultHandler. startPrefixMapping(String prefix, String uri)Receive notification of the start of a Namespace mapping.voidXMLFilterImpl. startPrefixMapping(String prefix, String uri)Filter a start Namespace prefix mapping event.voidXMLReaderAdapter. startPrefixMapping(String prefix, String uri)Adapt a SAX2 start prefix mapping event.voidDefaultHandler. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Receive notification of an unparsed entity declaration.voidXMLFilterImpl. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Filter an unparsed entity declaration event.
-