|
Foundation 1.1.2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
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.acl | The classes and interfaces in this package have been superseded by classes in the java.security package. |
java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. |
java.security.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications. |
java.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. |
javax.microedition.pki | Certificates are used to authenticate information for secure Connections. |
javax.security.auth.x500 | This package contains the classes that should be used to store X500 Principal and X500 Private Crendentials in a Subject. |
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. |
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. |
String |
InvalidClassException.classname
Name of the invalid class. |
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 |
FilePermission.getActions()
Returns the "canonical string representation" of the actions. |
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 |
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:
with:DataInputStream d = new DataInputStream(in); 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 |
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 |
InputStreamReader.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
BufferedReader.readLine()
Read a line of text. |
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 |
OutputStreamWriter.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
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 |
WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one. |
String |
StringWriter.toString()
Return the buffer's current value as a string. |
String |
RandomAccessFile.readLine()
Reads the next line of text from this file. |
String |
RandomAccessFile.readUTF()
Reads in a string from this file. |
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 |
LineNumberReader.readLine()
Read a line of text. |
String |
InvalidClassException.getMessage()
Produce the message and include the classname, if present. |
String |
CharArrayWriter.toString()
Converts input data to a string. |
Methods in java.io with parameters of type 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. |
boolean |
FilenameFilter.accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
String |
ByteArrayOutputStream.toString(String enc)
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding. |
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. |
void |
OutputStreamWriter.write(String str,
int off,
int len)
Write a portion of a 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 |
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 |
StringWriter.write(String str)
Write a string. |
void |
StringWriter.write(String str,
int off,
int len)
Write a portion of a string. |
void |
RandomAccessFile.writeBytes(String s)
Writes the string to the file as a sequence of bytes. |
void |
RandomAccessFile.writeChars(String s)
Writes a string to the file as a sequence of characters. |
void |
RandomAccessFile.writeUTF(String str)
Writes a string to the file using UTF-8 encoding in a machine-independent manner. |
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. |
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. |
void |
FilterWriter.write(String str,
int off,
int len)
Write a portion of a string. |
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. |
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 |
CharArrayWriter.write(String str,
int off,
int len)
Write a portion of a string to the buffer. |
Constructors in java.io with parameters of type String | |
StringReader(String s)
Create a new string reader. |
|
FileNotFoundException(String s)
Constructs a FileNotFoundException with the
specified detail message. |
|
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. |
|
InputStreamReader(InputStream in,
String enc)
Create an InputStreamReader that uses the named character encoding. |
|
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. |
|
OutputStreamWriter(OutputStream out,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Create a new print stream. |
|
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. |
|
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. |
|
WriteAbortedException(String s,
Exception ex)
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort. |
|
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message. |
|
UTFDataFormatException(String s)
Constructs a UTFDataFormatException with the
specified detail message. |
|
SyncFailedException(String desc)
Constructs an SyncFailedException with a detail message. |
|
StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown. |
|
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. |
|
RandomAccessFile(String name,
String mode)
Creates a random access file stream to read from, and optionally to write to, a file with the specified name. |
|
RandomAccessFile(File file,
String mode)
Creates a random access file stream to read from, and optionally to write to, the file specified by the File argument. |
|
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 . |
|
InvalidClassException(String reason)
Report a InvalidClassException for the reason specified. |
|
InvalidClassException(String cname,
String reason)
Constructs an InvalidClassException object. |
|
InterruptedIOException(String s)
Constructs an InterruptedIOException with the
specified detail message. |
|
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. |
|
FileReader(String fileName)
Creates a new FileReader, given the name of the file to read from. |
|
EOFException(String s)
Constructs an EOFException with the specified detail
message. |
|
CharConversionException(String s)
This provides a detailed message. |
Uses of String in java.lang |
Methods in java.lang that return String | |
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. |
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 |
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 |
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 |
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. |
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. |
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 |
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 |
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 |
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 |
ThreadGroup.getName()
Returns the name of this thread group. |
String |
ThreadGroup.toString()
Returns a string representation of this Thread group. |
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. |
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. |
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. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
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. |
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 |
CharSequence.toString()
Returns a string containing the characters in this sequence in the same order as this sequence. |
String |
Object.toString()
Returns a string representation of the object. |
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. |
Methods in java.lang with parameters of type String | |
static boolean |
Compiler.compileClasses(String string)
Compiles all classes whose name matches the specified string. |
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. |
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 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 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 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 . |
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 . |
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 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" . |
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. |
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 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. |
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. |
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. |
Constructors in java.lang with parameters of type String | |
ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class
with the specified detail message. |
|
NumberFormatException(String s)
Constructs a NumberFormatException with the
specified detail message. |
|
IllegalArgumentException(String s)
Constructs an IllegalArgumentException with the
specified detail message. |
|
IndexOutOfBoundsException(String s)
Constructs an IndexOutOfBoundsException with the
specified detail message. |
|
UnsupportedOperationException(String message)
Constructs an UnsupportedOperationException with the specified detail message. |
|
InterruptedException(String s)
Constructs an InterruptedException with the
specified detail message. |
|
IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail message. |
|
NoSuchMethodError(String s)
Constructs a NoSuchMethodError with the
specified detail message. |
|
IncompatibleClassChangeError(String s)
Constructs an IncompatibleClassChangeError 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. |
|
ArithmeticException(String s)
Constructs an ArithmeticException with the specified
detail message. |
|
NullPointerException(String s)
Constructs a NullPointerException with the specified
detail message. |
|
Long(String s)
Constructs a newly allocated Long object that
represents the long value indicated by the
String parameter. |
|
Integer(String s)
Constructs a newly allocated Integer object that
represents the int value indicated by the
String parameter. |
|
Short(String s)
Constructs a newly allocated Short object that
represents the short value indicated by the
String parameter. |
|
Byte(String s)
Constructs a newly allocated Byte object that
represents the byte value indicated by the
String parameter. |
|
Double(String s)
Constructs a newly allocated Double object that
represents the floating-point value of type double
represented by the string. |
|
Float(String s)
Constructs a newly allocated Float object that
represents the floating-point value of type float
represented by the string. |
|
Character.Subset(String name)
Constructs a new Subset instance. |
|
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" . |
|
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. |
|
ThreadGroup(String name)
Constructs a new thread group. |
|
ThreadGroup(ThreadGroup parent,
String name)
Creates a new thread group. |
|
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. |
|
StackOverflowError(String s)
Constructs a StackOverflowError with the specified
detail message. |
|
OutOfMemoryError(String s)
Constructs an OutOfMemoryError with the specified
detail message. |
|
VirtualMachineError(String s)
Constructs a VirtualMachineError with the specified
detail message. |
|
ArrayStoreException(String s)
Constructs an ArrayStoreException with the specified
detail message. |
|
ClassCastException(String s)
Constructs a ClassCastException with the specified
detail message. |
|
NoClassDefFoundError(String s)
Constructs a NoClassDefFoundError with the specified
detail message. |
|
LinkageError(String s)
Constructs a LinkageError 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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
VerifyError(String s)
Constructs an VerifyError with the specified detail message. |
|
UnsupportedClassVersionError(String s)
Constructs a UnsupportedClassVersionError with
the specified detail message. |
|
UnsatisfiedLinkError(String s)
Constructs an UnsatisfiedLinkError with the
specified detail message. |
|
UnknownError(String s)
Constructs an UnknownError with the specified detail
message. |
|
StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with
the specified detail message. |
|
SecurityException(String s)
Constructs a SecurityException with the specified
detail message. |
|
NoSuchMethodException(String s)
Constructs a NoSuchMethodException with a 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. |
|
InternalError(String s)
Constructs an InternalError with the specified
detail message. |
|
InstantiationException(String s)
Constructs an InstantiationException with the
specified detail message. |
|
InstantiationError(String s)
Constructs an InstantiationError with the specified
detail message. |
|
IllegalThreadStateException(String s)
Constructs an IllegalThreadStateException with the
specified detail message. |
|
IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the
specified detail message. |
|
IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message. |
|
IllegalAccessError(String s)
Constructs an IllegalAccessError with the specified
detail message. |
|
ExceptionInInitializerError(String s)
Constructs an ExceptionInInitializerError with the specified detail message string. |
|
CloneNotSupportedException(String s)
Constructs a CloneNotSupportedException with the
specified detail message. |
|
ClassFormatError(String s)
Constructs a ClassFormatError with the specified
detail message. |
|
ClassCircularityError(String s)
Constructs a ClassCircularityError with the
specified detail message. |
|
AbstractMethodError(String s)
Constructs an AbstractMethodError with the specified
detail message. |
Uses of String in java.lang.reflect |
Methods in java.lang.reflect that return String | |
static String |
Modifier.toString(int mod)
Return a string describing the access modifier flags in the specified modifier. |
String |
Constructor.getName()
Returns the name of this constructor, as a string. |
String |
Constructor.toString()
Returns a string describing this Constructor . |
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 . |
String |
Field.getName()
Returns the name of the field represented by this Field object. |
String |
Field.toString()
Returns a string describing this Field . |
String |
Member.getName()
Returns the simple name of the underlying member or constructor represented by this Member. |
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. |
String |
BigDecimal.toString()
Returns the string representation of this BigDecimal. |
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. |
|
BigDecimal(String val)
Translates the String representation of a BigDecimal into a BigDecimal. |
Uses of String in java.net |
Fields in java.net declared as String | |
protected String |
HttpURLConnection.method
The HTTP method (GET,POST,PUT,etc.). |
protected String |
HttpURLConnection.responseMessage
The HTTP response message. |
Methods in java.net that return String | |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
String |
HttpURLConnection.getHeaderFieldKey(int n)
Returns the key for the n th header field. |
String |
HttpURLConnection.getHeaderField(int n)
Returns the value for the n th header field. |
String |
HttpURLConnection.getRequestMethod()
Get the request method. |
String |
HttpURLConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
String |
JarURLConnection.getEntryName()
Return the entry name for this connection. |
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 n th header field. |
String |
URLConnection.getHeaderField(int n)
Returns the value for the n th 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. |
protected String |
URLStreamHandler.toExternalForm(URL u)
Converts a URL of a specific protocol to a
String . |
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 . |
static String |
URLEncoder.encode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. |
static String |
URLEncoder.encode(String s,
String enc)
Translates a string into application/x-www-form-urlencoded
format using a specific encoding scheme. |
static String |
URLDecoder.decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
URLDecoder.decode(String s,
String enc)
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme. |
String |
URISyntaxException.getInput()
Returns the input string. |
String |
URISyntaxException.getReason()
Returns a string explaining why the input string could not be parsed. |
String |
URISyntaxException.getMessage()
Returns a string describing the parse error. |
String |
URI.getScheme()
Returns the scheme component of this URI. |
String |
URI.getRawSchemeSpecificPart()
Returns the raw scheme-specific part of this URI. |
String |
URI.getSchemeSpecificPart()
Returns the decoded scheme-specific part of this URI. |
String |
URI.getRawAuthority()
Returns the raw authority component of this URI. |
String |
URI.getAuthority()
Returns the decoded authority component of this URI. |
String |
URI.getRawUserInfo()
Returns the raw user-information component of this URI. |
String |
URI.getUserInfo()
Returns the decoded user-information component of this URI. |
String |
URI.getHost()
Returns the host component of this URI. |
String |
URI.getRawPath()
Returns the raw path component of this URI. |
String |
URI.getPath()
Returns the decoded path component of this URI. |
String |
URI.getRawQuery()
Returns the raw query component of this URI. |
String |
URI.getQuery()
Returns the decoded query component of this URI. |
String |
URI.getRawFragment()
Returns the raw fragment component of this URI. |
String |
URI.getFragment()
Returns the decoded fragment component of this URI. |
String |
URI.toString()
Returns the content of this URI as a string. |
String |
URI.toASCIIString()
Returns the content of this URI as a US-ASCII string. |
String |
SocketPermission.getActions()
Returns the canonical string representation of the actions. |
String |
SocketImpl.toString()
Returns the address and port of this socket as a String . |
String |
Socket.toString()
Converts this socket to a String . |
String |
ServerSocket.toString()
Returns the implementation address and implementation port of this socket as a String . |
String |
PasswordAuthentication.getUserName()
Returns the user name. |
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 |
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. |
protected String |
Authenticator.getRequestingHost()
Gets the hostname of the
site or proxy requesting authentication, or null
if not available. |
protected String |
Authenticator.getRequestingProtocol()
Give the protocol that's requesting the connection. |
protected String |
Authenticator.getRequestingPrompt()
Gets the prompt string given by the requestor. |
protected String |
Authenticator.getRequestingScheme()
Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example). |
Methods in java.net with parameters of type String | |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
void |
HttpURLConnection.setRequestMethod(String method)
Set the method for the URL request, one of: GET POST HEAD OPTIONS PUT DELETE TRACE are legal, subject to protocol restrictions. |
long |
HttpURLConnection.getHeaderFieldDate(String name,
long Default)
|
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 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. |
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. |
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. |
URLStreamHandler |
URLStreamHandlerFactory.createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified
protocol. |
static String |
URLEncoder.encode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. |
static String |
URLEncoder.encode(String s,
String enc)
Translates a string into application/x-www-form-urlencoded
format using a specific encoding scheme. |
static String |
URLDecoder.decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
URLDecoder.decode(String s,
String enc)
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme. |
static URI |
URI.create(String str)
Creates a URI by parsing the given string. |
URI |
URI.resolve(String str)
Constructs a new URI by parsing the given string and then resolving it against this URI. |
protected abstract void |
SocketImpl.connect(String host,
int port)
Connects this socket to the specified port on the named host. |
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. |
ContentHandler |
ContentHandlerFactory.createContentHandler(String mimetype)
Creates a new ContentHandler to read an object from
a URLStreamHandler . |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress addr,
int port,
String protocol,
String prompt,
String scheme)
Ask the authenticator that has been registered with the system for a password. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String host,
InetAddress addr,
int port,
String protocol,
String prompt,
String scheme)
Ask the authenticator that has been registered with the system for a password. |
Constructors in java.net with parameters of type String | |
MalformedURLException(String msg)
Constructs a MalformedURLException with the
specified 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. |
|
UnknownServiceException(String msg)
Constructs a new UnknownServiceException with the
specified detail message. |
|
UnknownHostException(String host)
Constructs a new UnknownHostException with the
specified detail message. |
|
URISyntaxException(String input,
String reason,
int index)
Constructs an instance from the given input string, reason, and error index. |
|
URISyntaxException(String input,
String reason)
Constructs an instance from the given input string and reason. |
|
URI(String str)
Constructs a URI by parsing the given string. |
|
URI(String scheme,
String userInfo,
String host,
int port,
String path,
String query,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String authority,
String path,
String query,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String host,
String path,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String ssp,
String fragment)
Constructs a URI from the given components. |
|
SocketTimeoutException(String msg)
Constructs a new SocketTimeoutException with a detail message. |
|
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. |
|
Socket(String host,
int port)
Creates a stream socket and connects it to the specified port number on the named host. |
|
Socket(String host,
int port,
InetAddress localAddr,
int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port. |
|
ProtocolException(String host)
Constructs a new ProtocolException with the
specified detail message. |
|
PortUnreachableException(String msg)
Constructs a new PortUnreachableException with a
detail message. |
|
PasswordAuthentication(String userName,
char[] password)
Creates a new PasswordAuthentication object from the given
user name and password. |
|
NoRouteToHostException(String msg)
Constructs a new NoRouteToHostException with the specified detail message as to why the remote host cannot be reached. |
|
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. |
|
InetSocketAddress(String hostname,
int port)
Creates a socket address from a hostname and a port number. |
|
ConnectException(String msg)
Constructs a new ConnectException with the specified detail message as to why the connect error occurred. |
|
BindException(String msg)
Constructs a new BindException with the specified detail message as to why the bind error occurred. |
Uses of String in java.security |
Methods in java.security that return String | |
String |
Principal.toString()
Returns a string representation of this principal. |
String |
Principal.getName()
Returns the name of this principal. |
String |
AllPermission.getActions()
Returns the canonical string representation of the actions. |
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 |
PermissionCollection.toString()
Returns a string describing this PermissionCollection object, providing information about all the permissions it contains. |
String |
CodeSource.toString()
Returns a string describing this CodeSource, telling its URL and certificates. |
String |
PrivilegedActionException.toString()
|
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. |
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 |
ProtectionDomain.toString()
Convert a ProtectionDomain to a String. |
String |
Signer.toString()
Deprecated. Returns a string of information about the signer. |
String |
SignedObject.getAlgorithm()
Retrieves the name of the signature algorithm. |
String |
Signature.getAlgorithm()
Returns the name of the algorithm for this signature object. |
String |
Signature.toString()
Returns a string representation of this signature object, providing information that includes the state of the object and the name of the algorithm used. |
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 |
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. |
abstract String |
KeyStoreSpi.engineGetCertificateAlias(Certificate cert)
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. |
String |
KeyStore.getType()
Returns the type of this keystore. |
String |
KeyStore.getCertificateAlias(Certificate cert)
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. |
static String |
KeyStore.getDefaultType()
Returns the default keystore type as specified in the Java security properties file, or the string "jks" (acronym for "Java keystore") if no such property exists. |
String |
KeyPairGenerator.getAlgorithm()
Returns the standard name of the algorithm for this key pair generator. |
String |
KeyFactory.getAlgorithm()
Gets the name of the algorithm associated with this KeyFactory. |
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 |
IdentityScope.toString()
Deprecated. Returns a string representation of this identity scope, including its name, its scope name, and the number of identities in this identity scope. |
String |
Identity.getName()
Deprecated. Returns this identity's name. |
String |
Identity.getInfo()
Deprecated. Returns general information previously specified for this identity. |
String |
Identity.toString()
Deprecated. Returns a short string describing this identity, telling its name and its scope (if any). |
String |
Identity.toString(boolean detailed)
Deprecated. Returns a string representation of this identity, with optionally more details than that provided by the toString method without any arguments. |
String |
DigestOutputStream.toString()
Prints a string representation of this digest output stream and its associated message digest object. |
String |
DigestInputStream.toString()
Prints a string representation of this digest input stream and its associated message digest object. |
String |
Certificate.getFormat()
Deprecated. Returns the name of the coding format. |
String |
Certificate.toString(boolean detailed)
Deprecated. Returns a string that represents the contents of the certificate. |
protected abstract String |
AlgorithmParametersSpi.engineToString()
Returns a formatted string describing the parameters. |
String |
AlgorithmParameters.getAlgorithm()
Returns the name of the algorithm associated with this parameter object. |
String |
AlgorithmParameters.toString()
Returns a formatted string describing the parameters. |
String |
AlgorithmParameterGenerator.getAlgorithm()
Returns the standard name of the algorithm this parameter generator is associated with. |
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 Signature |
Signature.getInstance(String algorithm)
Generates a Signature object that implements the specified digest algorithm. |
static Signature |
Signature.getInstance(String algorithm,
String provider)
Generates a Signature object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static Signature |
Signature.getInstance(String algorithm,
Provider provider)
Generates a Signature object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
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 SecureRandom |
SecureRandom.getInstance(String algorithm)
Generates a SecureRandom object that implements the specified Pseudo Random Number Generator (PRNG) algorithm. |
static SecureRandom |
SecureRandom.getInstance(String algorithm,
String provider)
Generates a SecureRandom object for the specified PRNG algorithm, as supplied from the specified provider, if such a PRNG implementation is available from the provider. |
static SecureRandom |
SecureRandom.getInstance(String algorithm,
Provider provider)
Generates a SecureRandom object for the specified PRNG algorithm, as supplied from the specified provider, if such a PRNG implementation is available from the provider. |
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. |
abstract Key |
KeyStoreSpi.engineGetKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it. |
abstract Certificate[] |
KeyStoreSpi.engineGetCertificateChain(String alias)
Returns the certificate chain associated with the given alias. |
abstract Certificate |
KeyStoreSpi.engineGetCertificate(String alias)
Returns the certificate associated with the given alias. |
abstract Date |
KeyStoreSpi.engineGetCreationDate(String alias)
Returns the creation date of the entry identified by the given alias. |
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given password. |
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias. |
abstract void |
KeyStoreSpi.engineSetCertificateEntry(String alias,
Certificate cert)
Assigns the given certificate to the given alias. |
abstract void |
KeyStoreSpi.engineDeleteEntry(String alias)
Deletes the entry identified by the given alias from this keystore. |
abstract boolean |
KeyStoreSpi.engineContainsAlias(String alias)
Checks if the given alias exists in this keystore. |
abstract boolean |
KeyStoreSpi.engineIsKeyEntry(String alias)
Returns true if the entry identified by the given alias is a key entry, and false otherwise. |
abstract boolean |
KeyStoreSpi.engineIsCertificateEntry(String alias)
Returns true if the entry identified by the given alias is a trusted certificate entry, and false otherwise. |
static KeyStore |
KeyStore.getInstance(String type)
Generates a keystore object of the given type. |
static KeyStore |
KeyStore.getInstance(String type,
String provider)
Generates a keystore object for the specified keystore type from the specified provider. |
static KeyStore |
KeyStore.getInstance(String type,
Provider provider)
Generates a keystore object for the specified keystore type from the specified provider. |
Key |
KeyStore.getKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it. |
Certificate[] |
KeyStore.getCertificateChain(String alias)
Returns the certificate chain associated with the given alias. |
Certificate |
KeyStore.getCertificate(String alias)
Returns the certificate associated with the given alias. |
Date |
KeyStore.getCreationDate(String alias)
Returns the creation date of the entry identified by the given alias. |
void |
KeyStore.setKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given password. |
void |
KeyStore.setKeyEntry(String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias. |
void |
KeyStore.setCertificateEntry(String alias,
Certificate cert)
Assigns the given certificate to the given alias. |
void |
KeyStore.deleteEntry(String alias)
Deletes the entry identified by the given alias from this keystore. |
boolean |
KeyStore.containsAlias(String alias)
Checks if the given alias exists in this keystore. |
boolean |
KeyStore.isKeyEntry(String alias)
Returns true if the entry identified by the given alias is a key entry, and false otherwise. |
boolean |
KeyStore.isCertificateEntry(String alias)
Returns true if the entry identified by the given alias is a trusted certificate entry, and false otherwise. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm)
Generates a KeyPairGenerator object that implements the specified digest algorithm. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm,
String provider)
Generates a KeyPairGenerator object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm,
Provider provider)
Generates a KeyPairGenerator object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static KeyFactory |
KeyFactory.getInstance(String algorithm)
Generates a KeyFactory object that implements the specified algorithm. |
static KeyFactory |
KeyFactory.getInstance(String algorithm,
String provider)
Generates a KeyFactory object for the specified algorithm from the specified provider. |
static KeyFactory |
KeyFactory.getInstance(String algorithm,
Provider provider)
Generates a KeyFactory object for the specified algorithm from the specified provider. |
abstract Identity |
IdentityScope.getIdentity(String name)
Deprecated. Returns the identity in this scope with the specified name (if any). |
void |
Identity.setInfo(String info)
Deprecated. Specifies a general information string for this identity. |
protected abstract void |
AlgorithmParametersSpi.engineInit(byte[] params,
String format)
Imports the parameters from params and
decodes them according to the specified decoding format. |
protected abstract byte[] |
AlgorithmParametersSpi.engineGetEncoded(String format)
Returns the parameters encoded in the specified format. |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm)
Generates a parameter object for the specified algorithm. |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm,
String provider)
Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider. |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm,
Provider provider)
Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider. |
void |
AlgorithmParameters.init(byte[] params,
String format)
Imports the parameters from params and decodes them
according to the specified decoding scheme. |
byte[] |
AlgorithmParameters.getEncoded(String format)
Returns the parameters encoded in the specified scheme. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm)
Generates an AlgorithmParameterGenerator object that implements the specified digest algorithm. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm,
String provider)
Generates an AlgorithmParameterGenerator object for the requested algorithm, as supplied from the specified provider, if such a parameter generator is available from the provider. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm,
Provider provider)
Generates an AlgorithmParameterGenerator object for the requested algorithm, as supplied from the specified provider, if such a parameter generator is available from the provider. |
Constructors in java.security with parameters of type String | |
AllPermission(String name,
String actions)
Creates a new AllPermission object. |
|
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. |
|
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. |
|
Permission(String name)
Constructs a permission with the specified name. |
|
UnrecoverableKeyException(String msg)
Constructs an UnrecoverableKeyException with the specified detail message, which provides more information about why this exception has been thrown. |
|
Signer(String name)
Deprecated. Creates a signer with the specified identity name. |
|
Signer(String name,
IdentityScope scope)
Deprecated. Creates a signer with the specified identity name and scope. |
|
SignatureException(String msg)
Constructs a SignatureException with the specified detail message. |
|
Signature(String algorithm)
Creates a Signature object for the specified algorithm. |
|
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. |
|
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. |
|
NoSuchProviderException(String msg)
Constructs a NoSuchProviderException with the specified detail message. |
|
NoSuchAlgorithmException(String msg)
Constructs a NoSuchAlgorithmException with the specified detail message. |
|
MessageDigest(String algorithm)
Creates a message digest with the specified algorithm name. |
|
KeyStoreException(String msg)
Constructs a KeyStoreException with the specified detail message. |
|
KeyStore(KeyStoreSpi keyStoreSpi,
Provider provider,
String type)
Creates a KeyStore object of the given type, and encapsulates the given provider implementation (SPI object) in it. |
|
KeyPairGenerator(String algorithm)
Creates a KeyPairGenerator object for the specified algorithm. |
|
KeyManagementException(String msg)
Constructs a KeyManagementException with the specified detail message. |
|
KeyFactory(KeyFactorySpi keyFacSpi,
Provider provider,
String algorithm)
Creates a KeyFactory object. |
|
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. |
|
InvalidAlgorithmParameterException(String msg)
Constructs an InvalidAlgorithmParameterException with the specified detail message. |
|
IdentityScope(String name)
Deprecated. Constructs a new identity scope with the specified name. |
|
IdentityScope(String name,
IdentityScope scope)
Deprecated. Constructs a new identity scope with the specified name and scope. |
|
Identity(String name,
IdentityScope scope)
Deprecated. Constructs an identity with the specified name and scope. |
|
Identity(String name)
Deprecated. Constructs an identity with the specified name and no scope. |
|
GeneralSecurityException(String msg)
Constructs a GeneralSecurityException with the specified detail message. |
|
DigestException(String msg)
Constructs a DigestException with the specified detail message. |
|
AlgorithmParameters(AlgorithmParametersSpi paramSpi,
Provider provider,
String algorithm)
Creates an AlgorithmParameters object. |
|
AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi,
Provider provider,
String algorithm)
Creates an AlgorithmParameterGenerator 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. |
Uses of String in java.security.acl |
Methods in java.security.acl that return String | |
String |
Permission.toString()
Prints a string representation of this permission. |
String |
AclEntry.toString()
Returns a string representation of the contents of this ACL entry. |
String |
Acl.getName()
Returns the name of this ACL. |
String |
Acl.toString()
Returns a string representation of the ACL contents. |
Methods in java.security.acl with parameters of type String | |
void |
Acl.setName(Principal caller,
String name)
Sets the name of this ACL. |
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. |
abstract String |
X509Certificate.getSigAlgName()
Gets the signature algorithm name for the certificate signature algorithm. |
abstract String |
X509Certificate.getSigAlgOID()
Gets the signature algorithm OID string from the certificate. |
abstract String |
X509CRLEntry.toString()
Returns a string representation of this CRL entry. |
abstract String |
X509CRL.getSigAlgName()
Gets the signature algorithm name for the CRL signature algorithm. |
abstract String |
X509CRL.getSigAlgOID()
Gets the signature algorithm OID string from the CRL. |
String |
CertificateFactory.getType()
Returns the name of the certificate type associated with this certificate factory. |
String |
CertPath.getType()
Returns the type of Certificate s in this certification
path. |
String |
CertPath.toString()
Returns a string representation of this certification path. |
String |
CRL.getType()
Returns the type of this CRL. |
abstract String |
CRL.toString()
Returns a string representation of this CRL. |
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. |
byte[] |
X509Extension.getExtensionValue(String oid)
Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-in oid
String. |
abstract void |
X509CRL.verify(PublicKey key,
String sigProvider)
Verifies that this CRL was signed using the private key that corresponds to the given public key. |
CertPath |
CertificateFactorySpi.engineGenerateCertPath(InputStream inStream,
String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
static CertificateFactory |
CertificateFactory.getInstance(String type)
Generates a certificate factory object that implements the specified certificate type. |
static CertificateFactory |
CertificateFactory.getInstance(String type,
String provider)
Generates a certificate factory object for the specified certificate type from the specified provider. |
static CertificateFactory |
CertificateFactory.getInstance(String type,
Provider provider)
Generates a certificate factory object for the specified certificate type from the specified provider. |
CertPath |
CertificateFactory.generateCertPath(InputStream inStream,
String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
abstract byte[] |
CertPath.getEncoded(String encoding)
Returns the encoded form of this certification path, using the specified encoding. |
Constructors in java.security.cert with parameters of type String | |
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. |
|
CertificateParsingException(String message)
Constructs a CertificateParsingException with the specified detail message. |
|
CertificateNotYetValidException(String message)
Constructs a CertificateNotYetValidException with the specified detail message. |
|
CertificateFactory(CertificateFactorySpi certFacSpi,
Provider provider,
String type)
Creates a CertificateFactory object of the given type, and encapsulates the given provider implementation (SPI object) in it. |
|
CertificateExpiredException(String message)
Constructs a CertificateExpiredException with the specified detail message. |
|
CertificateException(String msg)
Constructs a certificate exception with the given detail message. |
|
CertificateEncodingException(String message)
Constructs a CertificateEncodingException with the specified detail message. |
|
CertPath(String type)
Creates a CertPath of the specified type. |
|
CertPath.CertPathRep(String type,
byte[] data)
Creates a CertPathRep with the specified
type and encoded form of a certification path. |
|
CRLException(String message)
Constructs a CRLException with the specified detail message. |
|
CRL(String type)
Creates a CRL of the specified type. |
Uses of String in java.security.spec |
Methods in java.security.spec that return String | |
String |
X509EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
String |
PKCS8EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
abstract String |
EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
Constructors in java.security.spec with parameters of type String | |
InvalidParameterSpecException(String msg)
Constructs an InvalidParameterSpecException with the specified detail message. |
|
InvalidKeySpecException(String msg)
Constructs an InvalidKeySpecException with the specified detail message. |
Uses of String in java.text |
Methods in java.text that return String | |
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 |
FieldPosition.toString()
Return a string representation of this FieldPosition. |
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. |
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 |
NumberFormat.format(double number)
Specialization of format. |
String |
NumberFormat.format(long number)
Specialization of format. |
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 |
SimpleDateFormat.toPattern()
Returns a pattern string describing this date format. |
String |
SimpleDateFormat.toLocalizedPattern()
Returns a localized pattern string describing this date format. |
String |
DateFormat.format(Date date)
Formats a Date into a date/time string. |
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 |
RuleBasedCollator.getRules()
Gets the table-based rules for the collation object. |
String |
ParsePosition.toString()
Return a string representation of this ParsePosition. |
String |
CollationKey.getSourceString()
Returns the String that this CollationKey represents. |
String |
Annotation.toString()
Returns the String representation of this Annotation. |
Methods in java.text with parameters of type String | |
void |
BreakIterator.setText(String newText)
Set a new text string to be scanned. |
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. |
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. |
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. |
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 |
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. |
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 |
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. |
void |
StringCharacterIterator.setText(String text)
Reset this iterator to point to a new string. |
CollationElementIterator |
RuleBasedCollator.getCollationElementIterator(String source)
Return a CollationElementIterator for the given String. |
int |
RuleBasedCollator.compare(String source,
String target)
Compares the character data stored in two different strings based on the collation rules. |
CollationKey |
RuleBasedCollator.getCollationKey(String source)
Transforms the string into a series of characters that can be compared with CollationKey.compareTo. |
abstract int |
Collator.compare(String source,
String target)
Compares the source string to the target string according to the collation rules for this Collator. |
abstract CollationKey |
Collator.getCollationKey(String source)
Transforms the String into a series of bits that can be compared bitwise to other CollationKeys. |
boolean |
Collator.equals(String source,
String target)
Convenience method for comparing the equality of two strings based on this Collator's collation rules. |
void |
CollationElementIterator.setText(String source)
Set a new string over which to iterate. |
Constructors in java.text with parameters of type String | |
NumberFormat.Field(String name)
Creates a Field instance with the specified name. |
|
AttributedCharacterIterator.Attribute(String name)
Constructs an Attribute with the given 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. |
|
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. |
|
DateFormat.Field(String name,
int calendarField)
Creates a Field with the specified name. |
|
Format.Field(String name)
Creates a Field 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. |
|
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. |
|
StringCharacterIterator(String text)
Constructs an iterator with an initial index of 0. |
|
StringCharacterIterator(String text,
int pos)
Constructs an iterator with the specified initial index. |
|
StringCharacterIterator(String text,
int begin,
int end,
int pos)
Constructs an iterator over the given range of the given string, with the index set at the specified position. |
|
RuleBasedCollator(String rules)
RuleBasedCollator constructor. |
|
ParseException(String s,
int errorOffset)
Constructs a ParseException with the specified detail message and offset. |
Uses of String in java.util |
Methods in java.util that return String | |
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 |
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 |
Date.toString()
Converts this Date object to a String
of the form:
|
String |
MissingResourceException.getClassName()
Gets parameter passed by constructor. |
String |
MissingResourceException.getKey()
Gets parameter passed by constructor. |
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. |
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 |
BitSet.toString()
Returns a string representation of this bit set. |
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 |
EventObject.toString()
Returns a String representation of this EventObject. |
String |
AbstractMap.toString()
Returns a string representation of this map. |
String |
Vector.toString()
Returns a string representation of this Vector, containing the String representation of each element. |
String |
AbstractCollection.toString()
Returns a string representation of this collection. |
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 |
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 |
SimpleTimeZone.toString()
Returns a string representation of this time zone. |
String |
PropertyPermission.getActions()
Returns the "canonical string representation" of the actions. |
Methods in java.util with parameters of type String | |
static Currency |
Currency.getInstance(String currencyCode)
Returns the Currency instance for the given currency code. |
void |
TimeZone.setID(String ID)
Sets the time zone ID. |
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the TimeZone for the given ID. |
Object |
ListResourceBundle.handleGetObject(String key)
|
Object |
PropertyResourceBundle.handleGetObject(String key)
|
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. |
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string. |
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. |
Constructors in java.util with parameters of type String | |
MissingResourceException(String s,
String className,
String key)
Constructs a MissingResourceException with the specified information. |
|
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. |
|
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. |
|
TooManyListenersException(String s)
Constructs a TooManyListenersException with the specified detail message. |
|
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. |
|
PropertyPermission(String name,
String actions)
Creates a new PropertyPermission object with the specified name. |
|
NoSuchElementException(String s)
Constructs a NoSuchElementException , saving a reference
to the error message string s for later retrieval by the
getMessage method. |
|
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.Name.toString()
Returns the attribute name as a 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. |
Methods in java.util.jar with parameters of type 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.putValue(String name,
String value)
Associates the specified value with the specified attribute name, specified as a String. |
Attributes |
Manifest.getAttributes(String name)
Returns the Attributes for the specified 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. |
protected ZipEntry |
JarInputStream.createZipEntry(String name)
Creates a new JarEntry (ZipEntry ) for the
specified JAR file entry name. |
Constructors in java.util.jar with parameters of type String | |
Attributes.Name(String name)
Constructs a new attribute name using the given string name. |
|
JarEntry(String name)
Creates a new JarEntry for the specified JAR file
entry name. |
|
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 . |
|
JarException(String s)
Constructs a JarException with the specified detail message. |
Uses of String in java.util.zip |
Methods in java.util.zip that return String | |
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. |
String |
ZipFile.getName()
Returns the path name of the ZIP file. |
Methods in java.util.zip with parameters of type String | |
void |
ZipEntry.setComment(String comment)
Sets the optional comment string for the entry. |
ZipEntry |
ZipFile.getEntry(String name)
Returns the zip file entry for the specified name, or null if not found. |
void |
ZipOutputStream.setComment(String comment)
Sets the ZIP file comment. |
protected ZipEntry |
ZipInputStream.createZipEntry(String name)
Creates a new ZipEntry object for the specified
entry name. |
Constructors in java.util.zip with parameters of type String | |
ZipEntry(String name)
Creates a new zip entry with the specified name. |
|
ZipFile(String name)
Opens a zip file for reading. |
|
ZipException(String s)
Constructs an ZipException with the specified detail
message. |
|
DataFormatException(String s)
Constructs a DataFormatException with the specified detail message. |
Uses of String in javax.microedition.io |
Fields in javax.microedition.io declared as String | |
static String |
HttpConnection.HEAD
HTTP Head method. |
static String |
HttpConnection.GET
HTTP Get method. |
static String |
HttpConnection.POST
HTTP Post method. |
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. |
String |
SecurityInfo.getProtocolVersion()
Returns the protocol version. |
String |
SecurityInfo.getProtocolName()
Returns the secure protocol name. |
String |
SecurityInfo.getCipherSuite()
Returns the name of the cipher suite in use for the connection. |
String |
HttpConnection.getURL()
Return a string representation of the URL for this connection. |
String |
HttpConnection.getProtocol()
Returns the protocol name of the URL of this HttpConnection . |
String |
HttpConnection.getHost()
Returns the host information of the URL of this HttpConnection . |
String |
HttpConnection.getFile()
Returns the file portion of the URL of this HttpConnection . |
String |
HttpConnection.getRef()
Returns the ref portion of the URL of this HttpConnection . |
String |
HttpConnection.getQuery()
Returns the query portion of the URL of this HttpConnection . |
String |
HttpConnection.getRequestMethod()
Get the current request method. |
String |
HttpConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
String |
HttpConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
String |
HttpConnection.getHeaderField(String name)
Returns the value of the named header field. |
String |
HttpConnection.getHeaderField(int n)
Gets a header field value by index. |
String |
HttpConnection.getHeaderFieldKey(int n)
Gets a header field key by index. |
String |
SocketConnection.getLocalAddress()
Gets the local address to which the socket is bound. |
String |
SocketConnection.getAddress()
Gets the remote address to which the socket is bound. |
String |
ServerSocketConnection.getLocalAddress()
Gets the local address to which the socket is bound. |
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. |
void |
HttpConnection.setRequestMethod(String method)
Set the method for the URL request, one of: GET POST HEAD are legal, subject to protocol restrictions. |
String |
HttpConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
void |
HttpConnection.setRequestProperty(String key,
String value)
Sets the general request property. |
String |
HttpConnection.getHeaderField(String name)
Returns the value of the named header field. |
int |
HttpConnection.getHeaderFieldInt(String name,
int def)
Returns the value of the named field parsed as a number. |
long |
HttpConnection.getHeaderFieldDate(String name,
long def)
Returns the value of the named field parsed as date. |
Constructors in javax.microedition.io with parameters of type String | |
ConnectionNotFoundException(String s)
Constructs a ConnectionNotFoundException with the specified detail message. |
Uses of String in javax.microedition.pki |
Methods in javax.microedition.pki that return String | |
String |
Certificate.getSubject()
Gets the name of this certificate's subject. |
String |
Certificate.getIssuer()
Gets the name of this certificate's issuer. |
String |
Certificate.getType()
Get the type of the Certificate . |
String |
Certificate.getVersion()
Gets the version number of this Certificate . |
String |
Certificate.getSigAlgName()
Gets the name of the algorithm used to sign the Certificate . |
String |
Certificate.getSerialNumber()
Gets the printable form of the serial number of this Certificate . |
Constructors in javax.microedition.pki with parameters of type String | |
CertificateException(String message,
Certificate certificate,
byte status)
Create a new exception with a message, Certificate ,
and specific error reason. |
Uses of String in javax.security.auth.x500 |
Fields in javax.security.auth.x500 declared as String | |
static String |
X500Principal.RFC1779
RFC 1779 String format of Distinguished Names. |
static String |
X500Principal.RFC2253
RFC 2253 String format of Distinguished Names. |
static String |
X500Principal.CANONICAL
Canonical String format of Distinguished Names. |
Methods in javax.security.auth.x500 that return String | |
String |
X500Principal.getName()
Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253. |
String |
X500Principal.getName(String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
String |
X500Principal.toString()
Return a user-friendly string representation of this X500Principal . |
Methods in javax.security.auth.x500 with parameters of type String | |
String |
X500Principal.getName(String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
Constructors in javax.security.auth.x500 with parameters of type String | |
X500Principal(String name)
Creates an X500Principal from a string representation of
an X.500 distinguished name (ex:
"CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US"). |
|
Foundation 1.1.2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |