Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

CDC 1.1.2

Uses of Class
java.lang.String

Packages that use String
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.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.security Provides the classes and interfaces for the security framework. 
java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. 
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
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.zip Provides classes for reading and writing the standard ZIP and GZIP file formats. 
javax.microedition.io Provides a simplified mechanism for applications to use various types of I/O protocols in resource-constrained environments. 
 

Uses of String in java.io
 

Fields in java.io declared as String
 String StreamTokenizer.sval
          If the current token is a word token, this field contains a string giving the characters of the word token.
 String InvalidClassException.classname
          Name of the invalid class.
static String File.separator
          The system-dependent default name-separator character, represented as a string for convenience.
static String File.pathSeparator
          The system-dependent path-separator character, represented as a string for convenience.
 

Methods in java.io that return String
 String StreamTokenizer.toString()
          Returns the string representation of the current stream token and the line number it occurs on.
 String WriteAbortedException.getMessage()
          Produce the message and include the message from the nested exception, if there is one.
 String ObjectStreamClass.getName()
          The name of the class described by this descriptor.
 String ObjectStreamClass.toString()
          Return a string describing this ObjectStreamClass.
 String ObjectStreamField.getName()
          Get the name of this field.
 String ObjectStreamField.getTypeString()
          Return the JVM type signature.
 String ObjectStreamField.toString()
          Return a string that describes this field.
 String OutputStreamWriter.getEncoding()
          Returns the canonical name of the character encoding being used by this stream.
 String InputStreamReader.getEncoding()
          Returns the canonical name of the character encoding being used by this stream.
 String InvalidClassException.getMessage()
          Produce the message and include the classname, if present.
 String ObjectInputStream.readLine()
          Deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.
 String ObjectInputStream.readUTF()
          Reads a UTF format String.
 String FilePermission.getActions()
          Returns the "canonical string representation" of the actions.
 String DataInput.readLine()
          Reads the next line of text from the input stream.
 String DataInput.readUTF()
          Reads in a string that has been encoded using a modified UTF-8 format.
 String DataInputStream.readLine()
          Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:
     DataInputStream d = new DataInputStream(in);
 
with:
     BufferedReader d
          = new BufferedReader(new InputStreamReader(in));
 
 String DataInputStream.readUTF()
          See the general contract of the readUTF method of DataInput.
static String DataInputStream.readUTF(DataInput in)
          Reads from the stream in a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String.
 String File.getName()
          Returns the name of the file or directory denoted by this abstract pathname.
 String File.getParent()
          Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory.
 String File.getPath()
          Converts this abstract pathname into a pathname string.
 String File.getAbsolutePath()
          Returns the absolute pathname string of this abstract pathname.
 String File.getCanonicalPath()
          Returns the canonical pathname string of this abstract pathname.
 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.
 String File.toString()
          Returns the pathname string of this abstract pathname.
 String ByteArrayOutputStream.toString()
          Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding.
 String ByteArrayOutputStream.toString(String enc)
          Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding.
 String BufferedReader.readLine()
          Read a line of text.
 

Methods in java.io with parameters of type String
 void Writer.write(String str)
          Write a string.
 void Writer.write(String str, int off, int len)
          Write a portion of a string.
 void PrintWriter.write(String s, int off, int len)
          Write a portion of a string.
 void PrintWriter.write(String s)
          Write a string.
 void PrintWriter.print(String s)
          Print a string.
 void PrintWriter.println(String x)
          Print a String and then terminate the line.
 void PrintStream.print(String s)
          Print a string.
 void PrintStream.println(String x)
          Print a String and then terminate the line.
 ObjectStreamField ObjectStreamClass.getField(String name)
          Get the field of this class by name.
 void ObjectOutputStream.writeBytes(String str)
          Writes a String as a sequence of bytes.
 void ObjectOutputStream.writeChars(String str)
          Writes a String as a sequence of chars.
 void ObjectOutputStream.writeUTF(String str)
          Primitive data write of this String in UTF format.
abstract  void ObjectOutputStream.PutField.put(String name, boolean val)
          Put the value of the named boolean field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, byte val)
          Put the value of the named byte field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, char val)
          Put the value of the named char field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, short val)
          Put the value of the named short field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, int val)
          Put the value of the named int field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, long val)
          Put the value of the named long field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, float val)
          Put the value of the named float field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, double val)
          Put the value of the named double field into the persistent field.
abstract  void ObjectOutputStream.PutField.put(String name, Object val)
          Put the value of the named Object field into the persistent field.
 void OutputStreamWriter.write(String str, int off, int len)
          Write a portion of a string.
protected  Class ObjectInputStream.resolveProxyClass(String[] interfaces)
          Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.
abstract  boolean ObjectInputStream.GetField.defaulted(String name)
          Return true if the named field is defaulted and has no value in this stream.
abstract  boolean ObjectInputStream.GetField.get(String name, boolean val)
          Get the value of the named boolean field from the persistent field.
abstract  byte ObjectInputStream.GetField.get(String name, byte val)
          Get the value of the named byte field from the persistent field.
abstract  char ObjectInputStream.GetField.get(String name, char val)
          Get the value of the named char field from the persistent field.
abstract  short ObjectInputStream.GetField.get(String name, short val)
          Get the value of the named short field from the persistent field.
abstract  int ObjectInputStream.GetField.get(String name, int val)
          Get the value of the named int field from the persistent field.
abstract  long ObjectInputStream.GetField.get(String name, long val)
          Get the value of the named long field from the persistent field.
abstract  float ObjectInputStream.GetField.get(String name, float val)
          Get the value of the named float field from the persistent field.
abstract  double ObjectInputStream.GetField.get(String name, double val)
          Get the value of the named double field from the persistent field.
abstract  Object ObjectInputStream.GetField.get(String name, Object val)
          Get the value of the named Object field from the persistent field.
 boolean FilenameFilter.accept(File dir, String name)
          Tests if a specified file should be included in a file list.
 void DataOutput.writeBytes(String s)
          Writes a string to the output stream.
 void DataOutput.writeChars(String s)
          Writes every character in the string s, to the output stream, in order, two bytes per character.
 void DataOutput.writeUTF(String str)
          Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string s.
 void DataOutputStream.writeBytes(String s)
          Writes out the string to the underlying output stream as a sequence of bytes.
 void DataOutputStream.writeChars(String s)
          Writes a string to the underlying output stream as a sequence of characters.
 void DataOutputStream.writeUTF(String str)
          Writes a string to the underlying output stream using Java modified UTF-8 encoding in a machine-independent manner.
static File File.createTempFile(String prefix, String suffix, File directory)
           Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
static File File.createTempFile(String prefix, String suffix)
          Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.
 void BufferedWriter.write(String s, int off, int len)
          Write a portion of a String.
 String ByteArrayOutputStream.toString(String enc)
          Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding.
 

Constructors in java.io with parameters of type String
SyncFailedException(String desc)
          Constructs an SyncFailedException with a detail message.
UnsupportedEncodingException(String s)
          Constructs an UnsupportedEncodingException with a detail message.
UTFDataFormatException(String s)
          Constructs a UTFDataFormatException with the specified detail message.
StreamCorruptedException(String reason)
          Create a StreamCorruptedException and list a reason why thrown.
WriteAbortedException(String s, Exception ex)
          Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.
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.
PrintStream(OutputStream out, boolean autoFlush, String encoding)
          Create a new print stream.
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 enc)
          Create an OutputStreamWriter that uses the named character encoding.
ObjectStreamException(String classname)
          Create an ObjectStreamException with the specified argument.
NotSerializableException(String classname)
          Constructs a NotSerializableException object with message string.
NotActiveException(String reason)
          Constructor to create a new NotActiveException with the reason given.
InvalidObjectException(String reason)
          Constructs an InvalidObjectException.
InterruptedIOException(String s)
          Constructs an InterruptedIOException with the specified detail message.
InputStreamReader(InputStream in, String enc)
          Create an InputStreamReader that uses the named character encoding.
InvalidClassException(String reason)
          Report a InvalidClassException for the reason specified.
InvalidClassException(String cname, String reason)
          Constructs an InvalidClassException object.
FileWriter(String fileName)
          Constructs a FileWriter object given a file name.
FileWriter(String fileName, boolean append)
          Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written.
IOException(String s)
          Constructs an IOException with the specified detail message.
FilePermission(String path, String actions)
          Creates a new FilePermission object with the specified actions.
FileNotFoundException(String s)
          Constructs a FileNotFoundException with the specified detail message.
FileReader(String fileName)
          Creates a new FileReader, given the name of the file to read from.
FileOutputStream(String name)
          Creates an output file stream to write to the file with the specified name.
FileOutputStream(String name, boolean append)
          Creates an output file stream to write to the file with the specified name.
FileInputStream(String name)
          Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.
EOFException(String s)
          Constructs an EOFException with the specified detail message.
File(String pathname)
          Creates a new File instance by converting the given pathname string into an abstract pathname.
File(String parent, String child)
          Creates a new File instance from a parent pathname string and a child pathname string.
File(File parent, String child)
          Creates a new File instance from a parent abstract pathname and a child pathname string.
CharConversionException(String s)
          This provides a detailed message.
 

Uses of String in java.lang
 

Methods in java.lang that return String
 String ThreadGroup.getName()
          Returns the name of this thread group.
 String ThreadGroup.toString()
          Returns a string representation of this Thread group.
 String Throwable.getMessage()
          Returns the detail message string of this throwable.
 String Throwable.getLocalizedMessage()
          Creates a localized description of this throwable.
 String Throwable.toString()
          Returns a short description of this throwable.
 String StringBuffer.substring(int start)
          Returns a new String that contains a subsequence of characters currently contained in this StringBuffer.The substring begins at the specified index and extends to the end of the StringBuffer.
 String StringBuffer.substring(int start, int end)
          Returns a new String that contains a subsequence of characters currently contained in this StringBuffer.
 String StringBuffer.toString()
          Converts to a string representing the data in this string buffer.
 String Thread.getName()
          Returns this thread's name.
 String Thread.toString()
          Returns a string representation of this thread, including the thread's name, priority, and thread group.
static String System.getProperty(String key)
          Gets the system property indicated by the specified key.
static String System.getProperty(String key, String def)
          Gets the system property indicated by the specified key.
static String System.setProperty(String key, String value)
          Sets the system property indicated by the specified key.
static String System.mapLibraryName(String libname)
          Maps a library name into a platform-specific string representing a native library.
 String String.substring(int beginIndex)
          Returns a new string that is a substring of this string.
 String String.substring(int beginIndex, int endIndex)
          Returns a new string that is a substring of this string.
 String String.concat(String str)
          Concatenates the specified string to the end of this string.
 String String.replace(char oldChar, char newChar)
          Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.
 String String.toLowerCase(Locale locale)
          Converts all of the characters in this String to lower case using the rules of the given Locale.
 String String.toLowerCase()
          Converts all of the characters in this String to lower case using the rules of the default locale.
 String String.toUpperCase(Locale locale)
          Converts all of the characters in this String to upper case using the rules of the given Locale.
 String String.toUpperCase()
          Converts all of the characters in this String to upper case using the rules of the default locale.
 String String.trim()
          Returns a copy of the string, with leading and trailing whitespace omitted.
 String String.toString()
          This object (which is already a string!) is itself returned.
static String String.valueOf(Object obj)
          Returns the string representation of the Object argument.
static String String.valueOf(char[] data)
          Returns the string representation of the char array argument.
static String String.valueOf(char[] data, int offset, int count)
          Returns the string representation of a specific subarray of the char array argument.
static String String.copyValueOf(char[] data, int offset, int count)
          Returns a String that represents the character sequence in the array specified.
static String String.copyValueOf(char[] data)
          Returns a String that represents the character sequence in the array specified.
static String String.valueOf(boolean b)
          Returns the string representation of the boolean argument.
static String String.valueOf(char c)
          Returns the string representation of the char argument.
static String String.valueOf(int i)
          Returns the string representation of the int argument.
static String String.valueOf(long l)
          Returns the string representation of the long argument.
static String String.valueOf(float f)
          Returns the string representation of the float argument.
static String String.valueOf(double d)
          Returns the string representation of the double argument.
 String String.intern()
          Returns a canonical representation for the string object.
 String StackTraceElement.getFileName()
          Returns the name of the source file containing the execution point represented by this stack trace element.
 String StackTraceElement.getClassName()
          Returns the fully qualified name of the class containing the execution point represented by this stack trace element.
 String StackTraceElement.getMethodName()
          Returns the name of the method containing the execution point represented by this stack trace element.
 String StackTraceElement.toString()
          Returns a string representation of this stack trace element.
 String Package.getName()
          Return the name of this package.
 String Package.getSpecificationTitle()
          Return the title of the specification that this package implements.
 String Package.getSpecificationVersion()
          Returns the version number of the specification that this package implements.
 String Package.getSpecificationVendor()
          Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package.
 String Package.getImplementationTitle()
          Return the title of this package.
 String Package.getImplementationVersion()
          Return the version of this implementation.
 String Package.getImplementationVendor()
          Returns the name of the organization, vendor or company that provided this implementation.
 String Package.toString()
          Returns the string representation of this Package.
 String Object.toString()
          Returns a string representation of the object.
static String Short.toString(short s)
          Returns a new String object representing the specified short.
 String Short.toString()
          Returns a String object representing this Short's value.
static String Integer.toString(int i, int radix)
          Returns a string representation of the first argument in the radix specified by the second argument.
static String Integer.toHexString(int i)
          Returns a string representation of the integer argument as an unsigned integer in base 16.
static String Integer.toOctalString(int i)
          Returns a string representation of the integer argument as an unsigned integer in base 8.
static String Integer.toBinaryString(int i)
          Returns a string representation of the integer argument as an unsigned integer in base 2.
static String Integer.toString(int i)
          Returns a String object representing the specified integer.
 String Integer.toString()
          Returns a String object representing this Integer's value.
static String Long.toString(long i, int radix)
          Returns a string representation of the first argument in the radix specified by the second argument.
static String Long.toHexString(long i)
          Returns a string representation of the long argument as an unsigned integer in base 16.
static String Long.toOctalString(long i)
          Returns a string representation of the long argument as an unsigned integer in base 8.
static String Long.toBinaryString(long i)
          Returns a string representation of the long argument as an unsigned integer in base 2.
static String Long.toString(long i)
          Returns a String object representing the specified long.
 String Long.toString()
          Returns a String object representing this Long's value.
static String Double.toString(double d)
          Returns a string representation of the double argument.
 String Double.toString()
          Returns a string representation of this Double object.
protected  String ClassLoader.findLibrary(String libname)
          Returns the absolute path name of a native library.
 String Character.toString()
          Returns a String object representing this Character's value.
static String Character.toString(char c)
          Returns a String object representing the specified char.
 String Character.Subset.toString()
          Returns the name of this subset.
static String Float.toString(float f)
          Returns a string representation of the float argument.
 String Float.toString()
          Returns a string representation of this Float object.
 String Class.toString()
          Converts the object to a string.
 String Class.getName()
          Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String.
static String Boolean.toString(boolean b)
          Returns a String object representing the specified boolean.
 String Boolean.toString()
          Returns a String object representing this Boolean's value.
 String CharSequence.toString()
          Returns a string containing the characters in this sequence in the same order as this sequence.
static String Byte.toString(byte b)
          Returns a new String object representing the specified byte.
 String Byte.toString()
          Returns a String object representing this Byte's value.
 

Methods in java.lang with parameters of type String
 StringBuffer StringBuffer.append(String str)
          Appends the string to this string buffer.
 StringBuffer StringBuffer.replace(int start, int end, String str)
          Replaces the characters in a substring of this StringBuffer with characters in the specified String.
 StringBuffer StringBuffer.insert(int offset, String str)
          Inserts the string into this string buffer.
 int StringBuffer.indexOf(String str)
          Returns the index within this string of the first occurrence of the specified substring.
 int StringBuffer.indexOf(String str, int fromIndex)
          Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
 int StringBuffer.lastIndexOf(String str)
          Returns the index within this string of the rightmost occurrence of the specified substring.
 int StringBuffer.lastIndexOf(String str, int fromIndex)
          Returns the index within this string of the last occurrence of the specified substring.
 void Thread.setName(String name)
          Changes the name of this thread to be equal to the argument name.
static String System.getProperty(String key)
          Gets the system property indicated by the specified key.
static String System.getProperty(String key, String def)
          Gets the system property indicated by the specified key.
static String System.setProperty(String key, String value)
          Sets the system property indicated by the specified key.
static void System.load(String filename)
          Loads a code file with the specified filename from the local file system as a dynamic library.
static void System.loadLibrary(String libname)
          Loads the system library specified by the libname argument.
static String System.mapLibraryName(String libname)
          Maps a library name into a platform-specific string representing a native library.
 byte[] String.getBytes(String charsetName)
          Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.
 boolean String.equalsIgnoreCase(String anotherString)
          Compares this String to another String, ignoring case considerations.
 int String.compareTo(String anotherString)
          Compares two strings lexicographically.
 int String.compareToIgnoreCase(String str)
          Compares two strings lexicographically, ignoring case differences.
 boolean String.regionMatches(int toffset, String other, int ooffset, int len)
          Tests if two string regions are equal.
 boolean String.regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
          Tests if two string regions are equal.
 boolean String.startsWith(String prefix, int toffset)
          Tests if this string starts with the specified prefix beginning a specified index.
 boolean String.startsWith(String prefix)
          Tests if this string starts with the specified prefix.
 boolean String.endsWith(String suffix)
          Tests if this string ends with the specified suffix.
 int String.indexOf(String str)
          Returns the index within this string of the first occurrence of the specified substring.
 int String.indexOf(String str, int fromIndex)
          Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
 int String.lastIndexOf(String str)
          Returns the index within this string of the rightmost occurrence of the specified substring.
 int String.lastIndexOf(String str, int fromIndex)
          Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.
 String String.concat(String str)
          Concatenates the specified string to the end of this string.
 void SecurityManager.checkExec(String cmd)
          Throws a SecurityException if the calling thread is not allowed to create a subprocess.
 void SecurityManager.checkLink(String lib)
          Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified by the string argument file.
 void SecurityManager.checkRead(String file)
          Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument.
 void SecurityManager.checkRead(String file, Object context)
          Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument.
 void SecurityManager.checkWrite(String file)
          Throws a SecurityException if the calling thread is not allowed to write to the file specified by the string argument.
 void SecurityManager.checkDelete(String file)
          Throws a SecurityException if the calling thread is not allowed to delete the specified file.
 void SecurityManager.checkConnect(String host, int port)
          Throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number.
 void SecurityManager.checkConnect(String host, int port, Object context)
          Throws a SecurityException if the specified security context is not allowed to open a socket connection to the specified host and port number.
 void SecurityManager.checkAccept(String host, int port)
          Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the specified host and port number.
 void SecurityManager.checkPropertyAccess(String key)
          Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name.
 void SecurityManager.checkPackageAccess(String pkg)
          Throws a SecurityException if the calling thread is not allowed to access the package specified by the argument.
 void SecurityManager.checkPackageDefinition(String pkg)
          Throws a SecurityException if the calling thread is not allowed to define classes in the package specified by the argument.
 void SecurityManager.checkSecurityAccess(String target)
          Determines whether the permission with the specified permission target name should be granted or denied.
 Process Runtime.exec(String command)
          Executes the specified string command in a separate process.
 Process Runtime.exec(String cmd, String[] envp)
          Executes the specified string command in a separate process with the specified environment.
 Process Runtime.exec(String command, String[] envp, File dir)
          Executes the specified string command in a separate process with the specified environment and working directory.
 Process Runtime.exec(String[] cmdarray)
          Executes the specified command and arguments in a separate process.
 Process Runtime.exec(String[] cmdarray, String[] envp)
          Executes the specified command and arguments in a separate process with the specified environment.
 Process Runtime.exec(String[] cmdarray, String[] envp, File dir)
          Executes the specified command and arguments in a separate process with the specified environment and working directory.
 void Runtime.load(String filename)
          Loads the specified filename as a dynamic library.
 void Runtime.loadLibrary(String libname)
          Loads the dynamic library with the specified library name.
 boolean Package.isCompatibleWith(String desired)
          Compare this package's specification version with a desired version.
static Package Package.getPackage(String name)
          Find a package by name in the callers ClassLoader instance.
static short Short.parseShort(String s)
          Parses the string argument as a signed decimal short.
static short Short.parseShort(String s, int radix)
          Parses the string argument as a signed short in the radix specified by the second argument.
static Short Short.valueOf(String s, int radix)
          Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument.
static Short Short.valueOf(String s)
          Returns a Short object holding the value given by the specified String.
static Short Short.decode(String nm)
          Decodes a String into a Short.
static int Integer.parseInt(String s, int radix)
          Parses the string argument as a signed integer in the radix specified by the second argument.
static int Integer.parseInt(String s)
          Parses the string argument as a signed decimal integer.
static Integer Integer.valueOf(String s, int radix)
          Returns an Integer object holding the value extracted from the specified String when parsed with the radix given by the second argument.
static Integer Integer.valueOf(String s)
          Returns an Integer object holding the value of the specified String.
static Integer Integer.getInteger(String nm)
          Determines the integer value of the system property with the specified name.
static Integer Integer.getInteger(String nm, int val)
          Determines the integer value of the system property with the specified name.
static Integer Integer.getInteger(String nm, Integer val)
          Returns the integer value of the system property with the specified name.
static Integer Integer.decode(String nm)
          Decodes a String into an Integer.
static long Long.parseLong(String s, int radix)
          Parses the string argument as a signed long in the radix specified by the second argument.
static long Long.parseLong(String s)
          Parses the string argument as a signed decimal long.
static Long Long.valueOf(String s, int radix)
          Returns a Long object holding the value extracted from the specified String when parsed with the radix given by the second argument.
static Long Long.valueOf(String s)
          Returns a Long object holding the value of the specified String.
static Long Long.decode(String nm)
          Decodes a String into a Long.
static Long Long.getLong(String nm)
          Determines the long value of the system property with the specified name.
static Long Long.getLong(String nm, long val)
          Determines the long value of the system property with the specified name.
static Long Long.getLong(String nm, Long val)
          Returns the long value of the system property with the specified name.
static Double Double.valueOf(String s)
          Returns a Double object holding the double value represented by the argument string s.
static double Double.parseDouble(String s)
          Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
 Class ClassLoader.loadClass(String name)
          Loads the class with the specified name.
protected  Class ClassLoader.loadClass(String name, boolean resolve)
          Loads the class with the specified name.
protected  Class ClassLoader.findClass(String name)
          Finds the specified class.
protected  Class ClassLoader.defineClass(String name, byte[] b, int off, int len)
          Converts an array of bytes into an instance of class Class.
protected  Class ClassLoader.defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain)
          Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain.
protected  Class ClassLoader.findSystemClass(String name)
          Finds a class with the specified name, loading it if necessary.
protected  Class ClassLoader.findLoadedClass(String name)
          Returns the class with the given name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that name.
 URL ClassLoader.getResource(String name)
          Finds the resource with the given name.
 Enumeration ClassLoader.getResources(String name)
          Finds all the resources with the given name.
protected  URL ClassLoader.findResource(String name)
          Finds the resource with the given name.
protected  Enumeration ClassLoader.findResources(String name)
          Returns an enumeration of URL objects representing all the resources with the given name.
static URL ClassLoader.getSystemResource(String name)
          Find a resource of the specified name from the search path used to load classes.
static Enumeration ClassLoader.getSystemResources(String name)
          Finds all resources of the specified name from the search path used to load classes.
 InputStream ClassLoader.getResourceAsStream(String name)
          Returns an input stream for reading the specified resource.
static InputStream ClassLoader.getSystemResourceAsStream(String name)
          Open for reading, a resource of the specified name from the search path used to load classes.
protected  Package ClassLoader.definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
          Defines a package by name in this ClassLoader.
protected  Package ClassLoader.getPackage(String name)
          Returns a Package that has been defined by this class loader or any of its ancestors.
protected  String ClassLoader.findLibrary(String libname)
          Returns the absolute path name of a native library.
 void ClassLoader.setPackageAssertionStatus(String packageName, boolean enabled)
          Sets the package default assertion status for the named package.
 void ClassLoader.setClassAssertionStatus(String className, boolean enabled)
          Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.
static Float Float.valueOf(String s)
          Returns a Float object holding the float value represented by the argument string s.
static float Float.parseFloat(String s)
          Returns a new float initialized to the value represented by the specified String, as performed by the valueOf method of class Float.
static Class Class.forName(String className)
          Returns the Class object associated with the class or interface with the given string name.
static Class Class.forName(String name, boolean initialize, ClassLoader loader)
          Returns the Class object associated with the class or interface with the given string name, using the given class loader.
 Field Class.getField(String name)
          Returns a Field object that reflects the specified public member field of the class or interface represented by this Class object.
 Method Class.getMethod(String name, Class[] parameterTypes)
          Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.
 Field Class.getDeclaredField(String name)
          Returns a Field object that reflects the specified declared field of the class or interface represented by this Class object.
 Method Class.getDeclaredMethod(String name, Class[] parameterTypes)
          Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object.
 InputStream Class.getResourceAsStream(String name)
          Finds a resource with a given name.
 URL Class.getResource(String name)
          Finds a resource with a given name.
static Boolean Boolean.valueOf(String s)
          Returns a Boolean with a value represented by the specified String.
static boolean Boolean.getBoolean(String name)
          Returns true if and only if the system property named by the argument exists and is equal to the string "true".
static byte Byte.parseByte(String s)
          Parses the string argument as a signed decimal byte.
static byte Byte.parseByte(String s, int radix)
          Parses the string argument as a signed byte in the radix specified by the second argument.
static Byte Byte.valueOf(String s, int radix)
          Returns a Byte object holding the value extracted from the specified String when parsed with the radix given by the second argument.
static Byte Byte.valueOf(String s)
          Returns a Byte object holding the value given by the specified String.
static Byte Byte.decode(String nm)
          Decodes a String into a Byte.
 

Constructors in java.lang with parameters of type String
VirtualMachineError(String s)
          Constructs a VirtualMachineError with the specified detail message.
UnsupportedClassVersionError(String s)
          Constructs a UnsupportedClassVersionError with the specified detail message.
UnsupportedOperationException(String message)
          Constructs an UnsupportedOperationException with the specified detail message.
VerifyError(String s)
          Constructs an VerifyError with the specified detail message.
UnsatisfiedLinkError(String s)
          Constructs an UnsatisfiedLinkError with the specified detail message.
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.
StringBuffer(String str)
          Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string.
Thread(String name)
          Allocates a new Thread object.
Thread(ThreadGroup group, String name)
          Allocates a new Thread object.
Thread(Runnable target, String name)
          Allocates a new Thread object.
Thread(ThreadGroup group, Runnable target, String name)
          Allocates a new Thread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group.
Thread(ThreadGroup group, Runnable target, String name, long stackSize)
          Allocates a new Thread object so that it has target as its run object, has the specified name as its name, belongs to the thread group referred to by group, and has the specified stack size.
StringIndexOutOfBoundsException(String s)
          Constructs a StringIndexOutOfBoundsException with the specified detail message.
String(String original)
          Initializes a newly created String object so that it represents the same sequence of characters as the argument; in other words, the newly created string is a copy of the argument string.
String(byte[] bytes, int offset, int length, String charsetName)
          Constructs a new String by decoding the specified subarray of bytes using the specified charset.
String(byte[] bytes, String charsetName)
          Constructs a new String by decoding the specified array of bytes using the specified charset.
StackOverflowError(String s)
          Constructs a StackOverflowError with the specified detail message.
SecurityException(String s)
          Constructs a SecurityException with the specified detail message.
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.
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.
OutOfMemoryError(String s)
          Constructs an OutOfMemoryError with the specified detail message.
NumberFormatException(String s)
          Constructs a NumberFormatException with the specified detail message.
NullPointerException(String s)
          Constructs a NullPointerException with the specified detail message.
NoSuchMethodException(String s)
          Constructs a NoSuchMethodException with a detail message.
NoClassDefFoundError(String s)
          Constructs a NoClassDefFoundError with the specified detail message.
NoSuchFieldException(String s)
          Constructor with a detail message.
NoSuchFieldError(String s)
          Constructs a NoSuchFieldException with the specified detail message.
NegativeArraySizeException(String s)
          Constructs a NegativeArraySizeException with the specified detail message.
Short(String s)
          Constructs a newly allocated Short object that represents the short value indicated by the String parameter.
LinkageError(String s)
          Constructs a LinkageError with the specified detail message.
InternalError(String s)
          Constructs an InternalError with the specified detail message.
InterruptedException(String s)
          Constructs an InterruptedException with the specified detail message.
Integer(String s)
          Constructs a newly allocated Integer object that represents the int value indicated by the String parameter.
InstantiationException(String s)
          Constructs an InstantiationException with the specified detail message.
InstantiationError(String s)
          Constructs an InstantiationError with the specified detail message.
IndexOutOfBoundsException(String s)
          Constructs an IndexOutOfBoundsException with the specified detail message.
NoSuchMethodError(String s)
          Constructs a NoSuchMethodError with the specified detail message.
IllegalMonitorStateException(String s)
          Constructs an IllegalMonitorStateException with the specified detail message.
IllegalStateException(String s)
          Constructs an IllegalStateException with the specified detail message.
IllegalArgumentException(String s)
          Constructs an IllegalArgumentException with the specified detail message.
IllegalThreadStateException(String s)
          Constructs an IllegalThreadStateException with the specified detail message.
Long(String s)
          Constructs a newly allocated Long object that represents the long value indicated by the String parameter.
IllegalAccessException(String s)
          Constructs an IllegalAccessException with a detail message.
ExceptionInInitializerError(String s)
          Constructs an ExceptionInInitializerError with the specified detail message string.
IncompatibleClassChangeError(String s)
          Constructs an IncompatibleClassChangeError with the specified detail message.
IllegalAccessError(String s)
          Constructs an IllegalAccessError with the specified detail message.
Double(String s)
          Constructs a newly allocated Double object that represents the floating-point value of type double represented by the string.
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.
CloneNotSupportedException(String s)
          Constructs a CloneNotSupportedException with the specified detail message.
ClassFormatError(String s)
          Constructs a ClassFormatError with the specified detail message.
ClassNotFoundException(String s)
          Constructs a ClassNotFoundException with the specified detail message.
ClassNotFoundException(String s, Throwable ex)
          Constructs a ClassNotFoundException with the specified detail message and optional exception that was raised while loading the class.
ClassCircularityError(String s)
          Constructs a ClassCircularityError with the specified detail message.
Character.Subset(String name)
          Constructs a new Subset instance.
ClassCastException(String s)
          Constructs a ClassCastException with the specified detail message.
Float(String s)
          Constructs a newly allocated Float object that represents the floating-point value of type float represented by the string.
ArrayStoreException(String s)
          Constructs an ArrayStoreException with the specified detail message.
Boolean(String s)
          Allocates a Boolean object representing the value true if the string argument is not null and is equal, ignoring case, to the string "true".
ArrayIndexOutOfBoundsException(String s)
          Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.
AbstractMethodError(String s)
          Constructs an AbstractMethodError with the specified detail message.
ArithmeticException(String s)
          Constructs an ArithmeticException with the specified detail message.
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.
Byte(String s)
          Constructs a newly allocated Byte object that represents the byte value indicated by the String parameter.
 

Uses of String in java.lang.reflect
 

Methods in java.lang.reflect that return String
 String Method.getName()
          Returns the name of the method represented by this Method object, as a String.
 String Method.toString()
          Returns a string describing this Method.
static String Modifier.toString(int mod)
          Return a string describing the access modifier flags in the specified modifier.
 String Member.getName()
          Returns the simple name of the underlying member or constructor represented by this Member.
 String Constructor.getName()
          Returns the name of this constructor, as a string.
 String Constructor.toString()
          Returns a string describing this Constructor.
 String Field.getName()
          Returns the name of the field represented by this Field object.
 String Field.toString()
          Returns a string describing this Field.
 

Constructors in java.lang.reflect with parameters of type String
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 an UndeclaredThrowableException with the specified Throwable and a detail message.
InvocationTargetException(Throwable target, String s)
          Constructs a InvocationTargetException with a target exception and a detail message.
 

Uses of String in java.math
 

Methods in java.math that return String
 String BigInteger.toString(int radix)
          Returns the String representation of this BigInteger in the given radix.
 String BigInteger.toString()
          Returns the decimal String representation of this BigInteger.
 

Constructors in java.math with parameters of type String
BigInteger(String val, int radix)
          Translates the String representation of a BigInteger in the specified radix into a BigInteger.
BigInteger(String val)
          Translates the decimal String representation of a BigInteger into a BigInteger.
 

Uses of String in java.net
 

Methods in java.net that return String
protected  String URLStreamHandler.toExternalForm(URL u)
          Converts a URL of a specific protocol to a String.
 String URLConnection.getContentType()
          Returns the value of the content-type header field.
 String URLConnection.getContentEncoding()
          Returns the value of the content-encoding header field.
 String URLConnection.getHeaderField(String name)
          Returns the value of the named header field.
 String URLConnection.getHeaderFieldKey(int n)
          Returns the key for the nth header field.
 String URLConnection.getHeaderField(int n)
          Returns the value for the nth header field.
 String URLConnection.toString()
          Returns a String representation of this URL connection.
 String URLConnection.getRequestProperty(String key)
          Returns the value of the named general request property for this connection.
static String URLConnection.guessContentTypeFromName(String fname)
          Tries to determine the content type of an object, based on the specified "file" component of a URL.
static String URLConnection.guessContentTypeFromStream(InputStream is)
          Tries to determine the type of an input stream based on the characters at the beginning of the input stream.
 String URL.getQuery()
          Gets the query part of this URL.
 String URL.getPath()
          Gets the path part of this URL.
 String URL.getUserInfo()
          Gets the userInfo part of this URL.
 String URL.getAuthority()
          Gets the authority part of this URL.
 String URL.getProtocol()
          Gets the protocol name of this URL.
 String URL.getHost()
          Gets the host name of this URL, if applicable.
 String URL.getFile()
          Gets the file name of this URL.
 String URL.getRef()
          Gets the anchor (also known as the "reference") of this URL.
 String URL.toString()
          Constructs a string representation of this URL.
 String URL.toExternalForm()
          Constructs a string representation of this URL.
 String SocketPermission.getActions()
          Returns the canonical string representation of the actions.
 String NetworkInterface.getName()
          Get the name of this network interface.
 String NetworkInterface.getDisplayName()
          Get the display name of this network interface.
 String NetworkInterface.toString()
           
 String JarURLConnection.getEntryName()
          Return the entry name for this connection.
 String InetSocketAddress.getHostName()
          Gets the hostname.
 String InetSocketAddress.toString()
          Constructs a string representation of this InetSocketAddress.
 String InetAddress.getHostName()
          Gets the host name for this IP address.
 String InetAddress.getCanonicalHostName()
          Gets the fully qualified domain name for this IP address.
 String InetAddress.getHostAddress()
          Returns the IP address string in textual presentation.
 String InetAddress.toString()
          Converts this IP address to a String.
 String Inet6Address.getHostAddress()
          Returns the IP address string in textual presentation.
 String Inet4Address.getHostAddress()
          Returns the IP address string in textual presentation form.
 String FileNameMap.getContentTypeFor(String fileName)
          Gets the MIME type for the specified file name.
 

Methods in java.net with parameters of type String
 URLStreamHandler URLStreamHandlerFactory.createURLStreamHandler(String protocol)
          Creates a new URLStreamHandler instance with the specified protocol.
protected  void URLStreamHandler.parseURL(URL u, String spec, int start, int limit)
          Parses the string representation of a URL into a URL object.
protected  void URLStreamHandler.setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)
          Sets the fields of the URL argument to the indicated values.
 String URLConnection.getHeaderField(String name)
          Returns the value of the named header field.
 int URLConnection.getHeaderFieldInt(String name, int Default)
          Returns the value of the named field parsed as a number.
 long URLConnection.getHeaderFieldDate(String name, long Default)
          Returns the value of the named field parsed as date.
 void URLConnection.setRequestProperty(String key, String value)
          Sets the general request property.
 void URLConnection.addRequestProperty(String key, String value)
          Adds a general request property specified by a key-value pair.
 String URLConnection.getRequestProperty(String key)
          Returns the value of the named general request property for this connection.
static String URLConnection.guessContentTypeFromName(String fname)
          Tries to determine the content type of an object, based on the specified "file" component of a URL.
protected  Class URLClassLoader.findClass(String name)
          Finds and loads the class with the specified name from the URL search path.
protected  Package URLClassLoader.definePackage(String name, Manifest man, URL url)
          Defines a new package by name in this ClassLoader.
 URL URLClassLoader.findResource(String name)
          Finds the resource with the specified name on the URL search path.
 Enumeration URLClassLoader.findResources(String name)
          Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.
protected  void URL.set(String protocol, String host, int port, String file, String ref)
          Sets the fields of the URL.
protected  void URL.set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)
          Sets the specified 8 fields of the URL.
static NetworkInterface NetworkInterface.getByName(String name)
          Searches for the network interface with the specified name.
static InetAddress InetAddress.getByAddress(String host, byte[] addr)
          Create an InetAddress based on the provided host name and IP address No name service is checked for the validity of the address.
static InetAddress InetAddress.getByName(String host)
          Determines the IP address of a host, given the host's name.
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.
 String FileNameMap.getContentTypeFor(String fileName)
          Gets the MIME type for the specified file name.
 ContentHandler ContentHandlerFactory.createContentHandler(String mimetype)
          Creates a new ContentHandler to read an object from a URLStreamHandler.
 

Constructors in java.net with parameters of type String
UnknownServiceException(String msg)
          Constructs a new UnknownServiceException with the specified detail message.
UnknownHostException(String host)
          Constructs a new UnknownHostException with the specified detail message.
SocketTimeoutException(String msg)
          Constructs a new SocketTimeoutException with a detail message.
URL(String protocol, String host, int port, String file)
          Creates a URL object from the specified protocol, host, port number, and file.
URL(String protocol, String host, String file)
          Creates a URL from the specified protocol name, host name, and file name.
URL(String protocol, String host, int port, String file, URLStreamHandler handler)
          Creates a URL object from the specified protocol, host, port number, file, and handler.
URL(String spec)
          Creates a URL object from the String representation.
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.
SocketPermission(String host, String action)
          Creates a new SocketPermission object with the specified actions.
SocketException(String msg)
          Constructs a new SocketException with the specified detail message.
PortUnreachableException(String msg)
          Constructs a new PortUnreachableException with a detail message.
ProtocolException(String host)
          Constructs a new ProtocolException with the specified detail message.
MalformedURLException(String msg)
          Constructs a MalformedURLException with the specified detail message.
InetSocketAddress(String hostname, int port)
          Creates a socket address from a hostname and a port number.
BindException(String msg)
          Constructs a new BindException with the specified detail message as to why the bind error occurred.
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.
 

Uses of String in java.security
 

Methods in java.security that return String
 String UnresolvedPermission.getActions()
          Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for an UnresolvedPermission.
 String UnresolvedPermission.toString()
          Returns a string describing this UnresolvedPermission.
 String ProtectionDomain.toString()
          Convert a ProtectionDomain to a String.
 String Principal.toString()
          Returns a string representation of this principal.
 String Principal.getName()
          Returns the name of this principal.
static String Security.getProperty(String key)
          Gets a security property value.
 String Provider.getName()
          Returns the name of this provider.
 String Provider.getInfo()
          Returns a human-readable description of the provider and its services.
 String Provider.toString()
          Returns a string with the name and the version number of this provider.
 String PermissionCollection.toString()
          Returns a string describing this PermissionCollection object, providing information about all the permissions it contains.
 String Permission.getName()
          Returns the name of this Permission.
abstract  String Permission.getActions()
          Returns the actions as a String.
 String Permission.toString()
          Returns a string describing this Permission.
 String MessageDigest.toString()
          Returns a string representation of this message digest object.
 String MessageDigest.getAlgorithm()
          Returns a string that identifies the algorithm, independent of implementation details.
 String PrivilegedActionException.toString()
           
 String DigestOutputStream.toString()
          Prints a string representation of this digest output stream and its associated message digest object.
 String CodeSource.toString()
          Returns a string describing this CodeSource, telling its URL and certificates.
 String Key.getAlgorithm()
          Returns the standard algorithm name for this key.
 String Key.getFormat()
          Returns the name of the primary encoding format of this key, or null if this key does not support encoding.
 String AllPermission.getActions()
          Returns the canonical string representation of the actions.
 String BasicPermission.getActions()
          Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for a BasicPermission.
 

Methods in java.security with parameters of type String
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.
static void Security.removeProvider(String name)
          Removes the provider with the specified name.
static Provider Security.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.
static String Security.getProperty(String key)
          Gets a security property value.
static void Security.setProperty(String key, String datum)
          Sets a security property value.
static Set 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).
static MessageDigest MessageDigest.getInstance(String algorithm)
          Generates a MessageDigest object that implements the specified digest algorithm.
static MessageDigest MessageDigest.getInstance(String algorithm, String provider)
          Generates a MessageDigest object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider.
static MessageDigest MessageDigest.getInstance(String algorithm, Provider provider)
          Generates a MessageDigest object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider.
 

Constructors in java.security with parameters of type String
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.
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.
SignatureException(String msg)
          Constructs a SignatureException with the specified detail message.
ProviderException(String s)
          Constructs a ProviderException with the specified detail message.
Provider(String name, double version, String info)
          Constructs a provider with the specified name, version number, and information.
Permission(String name)
          Constructs a permission with the specified name.
NoSuchProviderException(String msg)
          Constructs a NoSuchProviderException with the specified detail message.
MessageDigest(String algorithm)
          Creates a message digest with the specified algorithm name.
NoSuchAlgorithmException(String msg)
          Constructs a NoSuchAlgorithmException with the specified detail message.
InvalidAlgorithmParameterException(String msg)
          Constructs an InvalidAlgorithmParameterException with the specified detail message.
KeyException(String msg)
          Constructs a KeyException with the specified detail message.
InvalidParameterException(String msg)
          Constructs an InvalidParameterException with the specified detail message.
InvalidKeyException(String msg)
          Constructs an InvalidKeyException with the specified detail message.
DigestException(String msg)
          Constructs a DigestException with the specified detail message.
AllPermission(String name, String actions)
          Creates a new AllPermission object.
AccessControlException(String s)
          Constructs an AccessControlException with the specified, detailed message.
AccessControlException(String s, Permission p)
          Constructs an AccessControlException with the specified, detailed message, and the requested permission that caused the exception.
GeneralSecurityException(String msg)
          Constructs a GeneralSecurityException with the specified detail message.
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.
 

Uses of String in java.security.cert
 

Methods in java.security.cert that return String
 String Certificate.getType()
          Returns the type of this certificate.
abstract  String Certificate.toString()
          Returns a string representation of this certificate.
 

Methods in java.security.cert with parameters of type String
abstract  void Certificate.verify(PublicKey key, String sigProvider)
          Verifies that this certificate was signed using the private key that corresponds to the specified public key.
 

Constructors in java.security.cert with parameters of type String
CertificateException(String msg)
          Constructs a certificate exception with the given detail message.
CertificateEncodingException(String message)
          Constructs a CertificateEncodingException with the specified detail message.
Certificate(String type)
          Creates a certificate of the specified type.
Certificate.CertificateRep(String type, byte[] data)
          Construct the alternate Certificate class with the Certificate type and Certificate encoding bytes.
 

Uses of String in java.text
 

Methods in java.text that return String
 String ParsePosition.toString()
          Return a string representation of this ParsePosition.
 String MessageFormat.toPattern()
          Returns a pattern representing the current state of the message format.
static String MessageFormat.format(String pattern, Object[] arguments)
          Creates a MessageFormat with the given pattern and uses it to format the given arguments.
 String Format.format(Object obj)
          Formats an object to produce a string.
 String NumberFormat.format(double number)
          Specialization of format.
 String NumberFormat.format(long number)
          Specialization of format.
 String SimpleDateFormat.toPattern()
          Returns a pattern string describing this date format.
 String SimpleDateFormat.toLocalizedPattern()
          Returns a localized pattern string describing this date format.
 String DecimalFormatSymbols.getInfinity()
          Gets the string used to represent infinity.
 String DecimalFormatSymbols.getNaN()
          Gets the string used to represent "not a number".
 String DecimalFormatSymbols.getCurrencySymbol()
          Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.
 String DecimalFormatSymbols.getInternationalCurrencySymbol()
          Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
 String[] DateFormatSymbols.getEras()
          Gets era strings.
 String[] DateFormatSymbols.getMonths()
          Gets month strings.
 String[] DateFormatSymbols.getShortMonths()
          Gets short month strings.
 String[] DateFormatSymbols.getWeekdays()
          Gets weekday strings.
 String[] DateFormatSymbols.getShortWeekdays()
          Gets short weekday strings.
 String[] DateFormatSymbols.getAmPmStrings()
          Gets ampm strings.
 String[][] DateFormatSymbols.getZoneStrings()
          Gets timezone strings.
 String DateFormatSymbols.getLocalPatternChars()
          Gets localized date-time pattern characters.
 String FieldPosition.toString()
          Return a string representation of this FieldPosition.
 String DateFormat.format(Date date)
          Formats a Date into a date/time string.
 String Annotation.toString()
          Returns the String representation of this Annotation.
 String AttributedCharacterIterator.Attribute.toString()
          Returns a string representation of the object.
protected  String AttributedCharacterIterator.Attribute.getName()
          Returns the name of the attribute.
 String ChoiceFormat.toPattern()
          Gets the pattern.
 String DecimalFormat.getPositivePrefix()
          Get the positive prefix.
 String DecimalFormat.getNegativePrefix()
          Get the negative prefix.
 String DecimalFormat.getPositiveSuffix()
          Get the positive suffix.
 String DecimalFormat.getNegativeSuffix()
          Get the negative suffix.
 String DecimalFormat.toPattern()
          Synthesizes a pattern string that represents the current state of this Format object.
 String DecimalFormat.toLocalizedPattern()
          Synthesizes a localized pattern string that represents the current state of this Format object.
 

Methods in java.text with parameters of type String
 void MessageFormat.applyPattern(String pattern)
          Sets the pattern used by this message format.
static String MessageFormat.format(String pattern, Object[] arguments)
          Creates a MessageFormat with the given pattern and uses it to format the given arguments.
 Object[] MessageFormat.parse(String source, ParsePosition pos)
          Parses the string.
 Object[] MessageFormat.parse(String source)
          Parses text from the beginning of the given string to produce an object array.
 Object MessageFormat.parseObject(String source, ParsePosition pos)
          Parses text from a string to produce an object array.
abstract  Object Format.parseObject(String source, ParsePosition pos)
          Parses text from a string to produce an object.
 Object Format.parseObject(String source)
          Parses text from the beginning of the given string to produce an object.
 Object NumberFormat.parseObject(String source, ParsePosition pos)
          Parses text from a string to produce a Number.
abstract  Number NumberFormat.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.
 Number NumberFormat.parse(String source)
          Parses text from the beginning of the given string to produce a number.
 Date SimpleDateFormat.parse(String text, ParsePosition pos)
          Parses text from a string to produce a Date.
 void SimpleDateFormat.applyPattern(String pattern)
          Applies the given pattern string to this date format.
 void SimpleDateFormat.applyLocalizedPattern(String pattern)
          Applies the given localized pattern string to this date format.
 void DecimalFormatSymbols.setInfinity(String infinity)
          Sets the string used to represent infinity.
 void DecimalFormatSymbols.setNaN(String NaN)
          Sets the string used to represent "not a number".
 void DecimalFormatSymbols.setCurrencySymbol(String currency)
          Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale.
 void DecimalFormatSymbols.setInternationalCurrencySymbol(String currencyCode)
          Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
 void DateFormatSymbols.setEras(String[] newEras)
          Sets era strings.
 void DateFormatSymbols.setMonths(String[] newMonths)
          Sets month strings.
 void DateFormatSymbols.setShortMonths(String[] newShortMonths)
          Sets short month strings.
 void DateFormatSymbols.setWeekdays(String[] newWeekdays)
          Sets weekday strings.
 void DateFormatSymbols.setShortWeekdays(String[] newShortWeekdays)
          Sets short weekday strings.
 void DateFormatSymbols.setAmPmStrings(String[] newAmpms)
          Sets ampm strings.
 void DateFormatSymbols.setZoneStrings(String[][] newZoneStrings)
          Sets timezone strings.
 void DateFormatSymbols.setLocalPatternChars(String newLocalPatternChars)
          Sets localized date-time pattern characters.
 Date DateFormat.parse(String source)
          Parses text from the beginning of the given string to produce a date.
abstract  Date DateFormat.parse(String source, ParsePosition pos)
          Parse a date/time string according to the given parse position.
 Object DateFormat.parseObject(String source, ParsePosition pos)
          Parses text from a string to produce a Date.
 void ChoiceFormat.applyPattern(String newPattern)
          Sets the pattern.
 void ChoiceFormat.setChoices(double[] limits, String[] formats)
          Set the choices to be used in formatting.
 Number ChoiceFormat.parse(String text, ParsePosition status)
          Parses a Number from the input text.
 Number DecimalFormat.parse(String text, ParsePosition pos)
          Parses text from a string to produce a Number.
 void DecimalFormat.setPositivePrefix(String newValue)
          Set the positive prefix.
 void DecimalFormat.setNegativePrefix(String newValue)
          Set the negative prefix.
 void DecimalFormat.setPositiveSuffix(String newValue)
          Set the positive suffix.
 void DecimalFormat.setNegativeSuffix(String newValue)
          Set the positive suffix.
 void DecimalFormat.applyPattern(String pattern)
          Apply the given pattern to this Format object.
 void DecimalFormat.applyLocalizedPattern(String pattern)
          Apply the given pattern to this Format object.
 

Constructors in java.text with parameters of type String
ParseException(String s, int errorOffset)
          Constructs a ParseException with the specified detail message and offset.
MessageFormat(String pattern)
          Constructs a MessageFormat for the default locale and the specified pattern.
MessageFormat(String pattern, Locale locale)
          Constructs a MessageFormat for the specified locale and pattern.
MessageFormat.Field(String name)
          Creates a Field with the specified name.
Format.Field(String name)
          Creates a Field with the specified name.
NumberFormat.Field(String name)
          Creates a Field instance with the specified name.
SimpleDateFormat(String pattern)
          Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the default locale.
SimpleDateFormat(String pattern, Locale locale)
          Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the given locale.
SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols)
          Constructs a SimpleDateFormat using the given pattern and date format symbols.
DateFormat.Field(String name, int calendarField)
          Creates a Field with the specified name.
AttributedString(String text)
          Constructs an AttributedString instance with the given text.
AttributedString(String text, Map attributes)
          Constructs an AttributedString instance with the given text and attributes.
AttributedCharacterIterator.Attribute(String name)
          Constructs an Attribute with the given name.
ChoiceFormat(String newPattern)
          Constructs with limits and corresponding formats based on the pattern.
ChoiceFormat(double[] limits, String[] formats)
          Constructs with the limits and the corresponding formats.
DecimalFormat(String pattern)
          Creates a DecimalFormat using the given pattern and the symbols for the default locale.
DecimalFormat(String pattern, DecimalFormatSymbols symbols)
          Creates a DecimalFormat using the given pattern and symbols.
 

Uses of String in java.util
 

Methods in java.util that return String
 String Vector.toString()
          Returns a string representation of this Vector, containing the String representation of each element.
 String StringTokenizer.nextToken()
          Returns the next token from this string tokenizer.
 String StringTokenizer.nextToken(String delim)
          Returns the next token in this string tokenizer's string.
 String TimeZone.getID()
          Gets the ID of this time zone.
 String TimeZone.getDisplayName()
          Returns a name of this time zone suitable for presentation to the user in the default locale.
 String TimeZone.getDisplayName(Locale locale)
          Returns a name of this time zone suitable for presentation to the user in the specified locale.
 String TimeZone.getDisplayName(boolean daylight, int style)
          Returns a name of this time zone suitable for presentation to the user in the default locale.
 String TimeZone.getDisplayName(boolean daylight, int style, Locale locale)
          Returns a name of this time zone suitable for presentation to the user in the specified locale.
static String[] TimeZone.getAvailableIDs(int rawOffset)
          Gets the available IDs according to the given time zone offset.
static String[] TimeZone.getAvailableIDs()
          Gets all the available IDs supported.
 String SimpleTimeZone.toString()
          Returns a string representation of this time zone.
 String ResourceBundle.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.
 String Properties.getProperty(String key)
          Searches for the property with the specified key in this property list.
 String Properties.getProperty(String key, String defaultValue)
          Searches for the property with the specified key in this property list.
 String MissingResourceException.getClassName()
          Gets parameter passed by constructor.
 String MissingResourceException.getKey()
          Gets parameter passed by constructor.
 String PropertyPermission.getActions()
          Returns the "canonical string representation" of the actions.
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.
 String Locale.getLanguage()
          Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
 String Locale.getCountry()
          Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
 String Locale.getVariant()
          Returns the variant code for this locale.
 String Locale.toString()
          Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars.
 String Locale.getISO3Language()
          Returns a three-letter abbreviation for this locale's language.
 String Locale.getISO3Country()
          Returns a three-letter abbreviation for this locale's country.
 String Locale.getDisplayLanguage()
          Returns a name for the locale's language that is appropriate for display to the user.
 String Locale.getDisplayLanguage(Locale inLocale)
          Returns a name for the locale's language that is appropriate for display to the user.
 String Locale.getDisplayCountry()
          Returns a name for the locale's country that is appropriate for display to the user.
 String Locale.getDisplayCountry(Locale inLocale)
          Returns a name for the locale's country that is appropriate for display to the user.
 String Locale.getDisplayVariant()
          Returns a name for the locale's variant code that is appropriate for display to the user.
 String Locale.getDisplayVariant(Locale inLocale)
          Returns a name for the locale's variant code that is appropriate for display to the user.
 String Locale.getDisplayName()
          Returns a name for the locale that is appropriate for display to the user.
 String Locale.getDisplayName(Locale inLocale)
          Returns a name for the locale that is appropriate for display to the user.
 String Hashtable.toString()
          Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "" (comma and space).
 String Currency.getCurrencyCode()
          Gets the ISO 4217 currency code of this currency.
 String Currency.getSymbol()
          Gets the symbol of this currency for the default locale.
 String Currency.getSymbol(Locale locale)
          Gets the symbol of this currency for the specified locale.
 String Currency.toString()
          Returns the ISO 4217 currency code of this currency.
 String Calendar.toString()
          Return a string representation of this calendar.
 String BitSet.toString()
          Returns a string representation of this bit set.
 String AbstractMap.toString()
          Returns a string representation of this map.
 String AbstractCollection.toString()
          Returns a string representation of this collection.
 String Date.toString()
          Converts this Date object to a String of the form:
 

Methods in java.util with parameters of type String
 String StringTokenizer.nextToken(String delim)
          Returns the next token in this string tokenizer's string.
 void TimeZone.setID(String ID)
          Sets the time zone ID.
static TimeZone TimeZone.getTimeZone(String ID)
          Gets the TimeZone for the given ID.
 String ResourceBundle.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.
 Object ResourceBundle.getObject(String key)
          Gets an object for the given key from this resource bundle or one of its parents.
static ResourceBundle ResourceBundle.getBundle(String baseName)
          Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
static ResourceBundle ResourceBundle.getBundle(String baseName, Locale locale)
          Gets a resource bundle using the specified base name and locale, and the caller's class loader.
static ResourceBundle ResourceBundle.getBundle(String baseName, Locale locale, ClassLoader loader)
          Gets a resource bundle using the specified base name, locale, and class loader.
protected abstract  Object ResourceBundle.handleGetObject(String key)
          Gets an object for the given key from this resource bundle.
 Object PropertyResourceBundle.handleGetObject(String key)
           
 Object Properties.setProperty(String key, String value)
          Calls the Hashtable method put.
 void Properties.save(OutputStream out, String header)
          Deprecated. This method does not throw an IOException if an I/O error occurs while saving the property list. As of the Java 2 platform v1.2, the preferred way to save a properties list is via the store(OutputStream out, String header) method.
 void Properties.store(OutputStream out, String header)
          Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load method.
 String Properties.getProperty(String key)
          Searches for the property with the specified key in this property list.
 String Properties.getProperty(String key, String defaultValue)
          Searches for the property with the specified key in this property list.
 Object ListResourceBundle.handleGetObject(String key)
           
static Currency Currency.getInstance(String currencyCode)
          Returns the Currency instance for the given currency code.
 

Constructors in java.util with parameters of type String
StringTokenizer(String str, String delim, boolean returnDelims)
          Constructs a string tokenizer for the specified string.
StringTokenizer(String str, String delim)
          Constructs a string tokenizer for the specified string.
StringTokenizer(String str)
          Constructs a string tokenizer for the specified string.
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.
NoSuchElementException(String s)
          Constructs a NoSuchElementException, saving a reference to the error message string s for later retrieval by the getMessage method.
MissingResourceException(String s, String className, String key)
          Constructs a MissingResourceException with the specified information.
PropertyPermission(String name, String actions)
          Creates a new PropertyPermission object with the specified name.
Locale(String language, String country, String variant)
          Construct a locale from language, country, variant.
Locale(String language, String country)
          Construct a locale from language, country.
Locale(String language)
          Construct a locale from a language code.
ConcurrentModificationException(String message)
          Constructs a ConcurrentModificationException with the specified detail message.
 

Uses of String in java.util.jar
 

Fields in java.util.jar declared as String
static String JarFile.MANIFEST_NAME
          The JAR manifest file name.
 

Methods in java.util.jar that return String
 String Attributes.getValue(String name)
          Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.
 String Attributes.getValue(Attributes.Name name)
          Returns the value of the specified Attributes.Name, or null if the attribute was not found.
 String Attributes.putValue(String name, String value)
          Associates the specified value with the specified attribute name, specified as a String.
 String Attributes.Name.toString()
          Returns the attribute name as a String.
 

Methods in java.util.jar with parameters of type String
 Attributes Manifest.getAttributes(String name)
          Returns the Attributes for the specified entry name.
protected  ZipEntry JarInputStream.createZipEntry(String name)
          Creates a new JarEntry (ZipEntry) for the specified JAR file entry name.
 JarEntry JarFile.getJarEntry(String name)
          Returns the JarEntry for the given entry name or null if not found.
 ZipEntry JarFile.getEntry(String name)
          Returns the ZipEntry for the given entry name or null if not found.
 String Attributes.getValue(String name)
          Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.
 String Attributes.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
JarFile(String name)
          Creates a new JarFile to read from the specified file name.
JarFile(String name, boolean verify)
          Creates a new JarFile to read from the specified file name.
Attributes.Name(String name)
          Constructs a new attribute name using the given string name.
JarException(String s)
          Constructs a JarException with the specified detail message.
JarEntry(String name)
          Creates a new JarEntry for the specified JAR file entry name.
 

Uses of String in java.util.zip
 

Methods in java.util.zip that return String
 String ZipFile.getName()
          Returns the path name of the ZIP file.
 String ZipEntry.getName()
          Returns the name of the entry.
 String ZipEntry.getComment()
          Returns the comment string for the entry, or null if none.
 String ZipEntry.toString()
          Returns a string representation of the ZIP entry.
 

Methods in java.util.zip with parameters of type String
protected  ZipEntry ZipInputStream.createZipEntry(String name)
          Creates a new ZipEntry object for the specified entry name.
 ZipEntry ZipFile.getEntry(String name)
          Returns the zip file entry for the specified name, or null if not found.
 void ZipEntry.setComment(String comment)
          Sets the optional comment string for the entry.
 

Constructors in java.util.zip with parameters of type String
ZipException(String s)
          Constructs an ZipException with the specified detail message.
ZipFile(String name)
          Opens a zip file for reading.
ZipEntry(String name)
          Creates a new zip entry with the specified name.
DataFormatException(String s)
          Constructs a DataFormatException with the specified detail message.
 

Uses of String in javax.microedition.io
 

Methods in javax.microedition.io that return String
 String UDPDatagramConnection.getLocalAddress()
          Gets the local address to which the datagram connection is bound.
 String Datagram.getAddress()
          Get the address of the datagram.
 String ContentConnection.getType()
          Returns the type of content that the resource connected to is providing.
 String ContentConnection.getEncoding()
          Returns a string describing the encoding of the content which the resource connected to is providing.
 

Methods in javax.microedition.io with parameters of type String
 void Datagram.setAddress(String addr)
          Set datagram address.
 Datagram DatagramConnection.newDatagram(int size, String addr)
          Create a new datagram object.
 Datagram DatagramConnection.newDatagram(byte[] buf, int size, String addr)
          Make a new datagram object.
static Connection Connector.open(String name)
          Create and open a Connection.
static Connection Connector.open(String name, int mode)
          Create and open a Connection.
static Connection Connector.open(String name, int mode, boolean timeouts)
          Create and open a Connection.
static DataInputStream Connector.openDataInputStream(String name)
          Create and open a connection input stream.
static DataOutputStream Connector.openDataOutputStream(String name)
          Create and open a connection output stream.
static InputStream Connector.openInputStream(String name)
          Create and open a connection input stream.
static OutputStream Connector.openOutputStream(String name)
          Create and open a connection output stream.
 

Constructors in javax.microedition.io with parameters of type String
ConnectionNotFoundException(String s)
          Constructs a ConnectionNotFoundException with the specified detail message.
 


CDC 1.1.2

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 218 specification.