|
BenQ Mobile |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use String | |
java.io | Provides classes for input and output through data streams. |
java.lang | Provides classes that are fundamental to the Java programming language. |
java.util | Contains the collection classes, and the date and time facilities. |
Uses of String in java.io |
Methods in java.io that return String | |
String |
ByteArrayOutputStream.toString()
Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding. |
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.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format. |
Methods in java.io with parameters of type String | |
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 s)
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 |
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. |
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 UTF-8 encoding in a machine-independent manner. |
Constructors in java.io with parameters of type String | |
IOException(String s)
Constructs an IOException with the specified detail
message. |
|
InputStreamReader(InputStream is,
String enc)
Create an InputStreamReader that uses the named character encoding. |
|
OutputStreamWriter(OutputStream os,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message. |
|
UTFDataFormatException(String s)
Constructs a UTFDataFormatException with the
specified detail message. |
|
InterruptedIOException(String s)
Constructs an InterruptedIOException with the
specified detail message. |
|
EOFException(String s)
Constructs an EOFException with the specified detail
message. |
Uses of String in java.lang |
Methods in java.lang that return String | |
static String |
Long.toString(long i,
int radix)
Creates a string representation of the first argument in the radix specified by the second argument. |
static String |
Long.toString(long i)
Returns a new String object representing the specified integer. |
String |
Long.toString()
Returns a String object representing this Long's value. |
static String |
Integer.toString(int i,
int radix)
Creates a string representation of the first argument in the radix specified by the second argument. |
static String |
Integer.toHexString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 16. |
static String |
Integer.toOctalString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 8. |
static String |
Integer.toBinaryString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 2. |
static String |
Integer.toString(int i)
Returns a new String object representing the specified integer. |
String |
Integer.toString()
Returns a String object representing this Integer's value. |
String |
Short.toString()
Returns a String object representing this Short's value. |
String |
Byte.toString()
Returns a String object representing this Byte's value. |
static String |
Double.toString(double d)
Creates 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 for the specified float value. |
String |
Float.toString()
Returns a String representation of this Float object. |
String |
Character.toString()
Returns a String object representing this character's value. |
String |
Boolean.toString()
Returns a String object representing this Boolean's value. |
String |
StringBuffer.toString()
Converts to a string representing the data in this string buffer. |
String |
Thread.getName()
Returns this thread's name. |
String |
Thread.toString()
Returns a string representation of this thread, including the thread's name and priority. |
String |
Throwable.getMessage()
Returns the error message string of this Throwable object. |
String |
Throwable.toString()
Returns a short description of this Throwable object.
|
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key. |
String |
Class.toString()
Converts the object to a string. |
String |
Class.getName()
Returns the fully-qualified 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()
Converts all of the characters in this String to lower case. |
String |
String.toUpperCase()
Converts all of the characters in this String to upper case. |
String |
String.trim()
Removes white space from both ends of this string. |
String |
String.toString()
This object (which is already a string!) |
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.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 |
Object.toString()
Returns a string representation of the object. |
Methods in java.lang with parameters of type String | |
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 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 a new Integer object initialized to the value of the specified String. |
static Integer |
Integer.valueOf(String s)
Returns a new Integer object initialized to the value of the specified String. |
static short |
Short.parseShort(String s)
Assuming the specified String represents a short, returns that short's value. |
static short |
Short.parseShort(String s,
int radix)
Assuming the specified String represents a short, returns that short's value in the radix specified by the second argument. |
static byte |
Byte.parseByte(String s)
Assuming the specified String represents a byte, returns that byte's value. |
static byte |
Byte.parseByte(String s,
int radix)
Assuming the specified String represents a byte, returns that byte's value. |
static Double |
Double.valueOf(String s)
Returns a new Double object initialized to the value
represented by the specified string. |
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 the floating point value represented by the specified String. |
static float |
Float.parseFloat(String s)
Returns a new float initialized to the value represented by the specified String . |
StringBuffer |
StringBuffer.append(String str)
Appends the string to this string buffer. |
StringBuffer |
StringBuffer.insert(int offset,
String str)
Inserts the string into this string buffer. |
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key. |
static Class |
Class.forName(String className)
Returns the Class object associated with the class
with the given string name. |
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name in the application's JAR file. |
byte[] |
String.getBytes(String enc)
Convert this String into bytes according to the specified
character encoding, 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. |
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 at the 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. |
String |
String.concat(String str)
Concatenates the specified string to the end of this string. |
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. |
|
IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message. |
|
InterruptedException(String s)
Constructs an InterruptedException with the
specified detail message. |
|
IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail message. |
|
IndexOutOfBoundsException(String s)
Constructs an IndexOutOfBoundsException with the
specified detail message. |
|
IllegalArgumentException(String s)
Constructs an IllegalArgumentException with the
specified detail message. |
|
ArithmeticException(String s)
Constructs an ArithmeticException with the specified
detail message. |
|
NullPointerException(String s)
Constructs a NullPointerException with the specified
detail message. |
|
StringBuffer(String str)
Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string. |
|
Thread(String name)
Allocates a new Thread object with the
given name.
|
|
Thread(Runnable target,
String name)
Allocates a new Thread object with the given
target and name. |
|
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. |
|
ClassNotFoundException(String s)
Constructs a ClassNotFoundException with the
specified detail message. |
|
RuntimeException(String s)
Constructs a RuntimeException with the specified
detail message. |
|
Exception(String s)
Constructs an Exception with the specified detail message. |
|
Error(String s)
Constructs an Error with the specified detail message. |
|
Throwable(String message)
Constructs a new Throwable with the specified error
message. |
|
String(String value)
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 off,
int len,
String enc)
Construct a new String by converting the specified
subarray of bytes using the specified character encoding. |
|
String(byte[] bytes,
String enc)
Construct a new String by converting the specified array
of bytes using the specified character encoding. |
|
StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with
the specified detail message. |
|
SecurityException(String s)
Constructs a SecurityException with the specified
detail message. |
|
NegativeArraySizeException(String s)
Constructs a NegativeArraySizeException with the
specified detail message. |
|
InstantiationException(String s)
Constructs an InstantiationException 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. |
Uses of String in java.util |
Methods in java.util that return String | |
String |
TimeZone.getID()
Gets the ID of this time zone. |
static String[] |
TimeZone.getAvailableIDs()
Gets all the available IDs supported. |
String |
Date.toString()
Converts this Date object to a String
of the form:
dow mon dd hh:mm:ss zzz yyyy
where:
dow is the day of the week (Sun, Mon, Tue, Wed,
Thu, Fri, Sat).
|
String |
Vector.toString()
Returns a string representation of this vector. |
String |
Hashtable.toString()
Returns a rather long string representation of this hashtable. |
Methods in java.util with parameters of type String | |
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the TimeZone for the given ID. |
Constructors in java.util with parameters of type String | |
NoSuchElementException(String s)
Constructs a NoSuchElementException , saving a reference
to the error message string s for later retrieval by the
getMessage method. |
|
BenQ Mobile |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |