java.lang
Class String

java.lang.Object
  extended by java.lang.String

public class String
extends Object


Constructor Summary
String()
           
String(byte[] newValue)
           
String(byte[] newValue, int hibyte)
           
String(byte[] bytes, int offset, int length)
           
String(byte[] newValue, int hibyte, int offset, int count)
           
String(byte[] newValue, int hibyte, int offset, String encoding)
           
String(byte[] newValue, String enc)
           
String(char[] newValue)
           
String(char[] newValue, int offset, int count)
           
String(String newValue)
           
String(StringBuffer newValue)
           
 
Method Summary
 char charAt(int index)
           
 int compareTo(String str)
           
 String concat(String str)
           
static String copyValueOf(char[] newValue)
           
static String copyValueOf(char[] newValue, int offset, int count)
           
 boolean endsWith(String suffix)
           
 boolean equals(Object obj)
           
 boolean equalsIgnoreCase(String str)
           
 byte[] getBytes()
           
 void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin)
           
 byte[] getBytes(String enc)
           
 void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
           
 int hashCode()
           
 int indexOf(int c)
           
 int indexOf(int c, int fromIndex)
           
 int indexOf(String str)
           
 int indexOf(String str, int fromIndex)
           
 String intern()
           
 int lastIndexOf(int c)
           
 int lastIndexOf(int c, int fromIndex)
           
 int lastIndexOf(String str)
           
 int lastIndexOf(String str, int fromIndex)
           
 int length()
           
 boolean regionMatches(boolean ignoreCase, int offset, String str, int strOffset, int len)
           
 boolean regionMatches(int offset, String str, int strOffset, int len)
           
 String replace(char oldChar, char newChar)
           
 String[] split(String regex)
           
 boolean startsWith(String prefix)
           
 boolean startsWith(String prefix, int offset)
           
 String substring(int beginIndex)
           
 String substring(int beginIndex, int endIndex)
           
 char[] toCharArray()
           
 String toLowerCase()
           
 String toString()
           
 String toUpperCase()
           
 String trim()
           
static String valueOf(boolean b)
           
static String valueOf(char c)
           
static String valueOf(char[] newValue)
           
static String valueOf(char[] newValue, int offset, int count)
           
static String valueOf(double d)
           
static String valueOf(float f)
           
static String valueOf(int i)
           
static String valueOf(long l)
           
static String valueOf(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait
 

Constructor Detail

String

public String()

String

public String(char[] newValue,
              int offset,
              int count)

String

public String(byte[] bytes,
              int offset,
              int length)

String

public String(char[] newValue)

String

public String(byte[] newValue,
              int hibyte,
              int offset,
              int count)

String

public String(byte[] newValue,
              int hibyte)

String

public String(byte[] newValue)

String

public String(byte[] newValue,
              String enc)

String

public String(String newValue)

String

public String(StringBuffer newValue)

String

public String(byte[] newValue,
              int hibyte,
              int offset,
              String encoding)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

length

public int length()

charAt

public char charAt(int index)

getChars

public void getChars(int srcBegin,
                     int srcEnd,
                     char[] dst,
                     int dstBegin)

getBytes

public byte[] getBytes()

getBytes

public byte[] getBytes(String enc)

getBytes

public void getBytes(int srcBegin,
                     int srcEnd,
                     byte[] dst,
                     int dstBegin)

toCharArray

public char[] toCharArray()

substring

public String substring(int beginIndex)

substring

public String substring(int beginIndex,
                        int endIndex)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equalsIgnoreCase

public boolean equalsIgnoreCase(String str)

compareTo

public int compareTo(String str)

regionMatches

public boolean regionMatches(boolean ignoreCase,
                             int offset,
                             String str,
                             int strOffset,
                             int len)

regionMatches

public boolean regionMatches(int offset,
                             String str,
                             int strOffset,
                             int len)

startsWith

public boolean startsWith(String prefix)

startsWith

public boolean startsWith(String prefix,
                          int offset)

endsWith

public boolean endsWith(String suffix)

concat

public String concat(String str)

replace

public String replace(char oldChar,
                      char newChar)

toLowerCase

public String toLowerCase()

toUpperCase

public String toUpperCase()

trim

public String trim()

indexOf

public int indexOf(int c,
                   int fromIndex)

indexOf

public int indexOf(int c)

indexOf

public int indexOf(String str,
                   int fromIndex)

indexOf

public int indexOf(String str)

lastIndexOf

public int lastIndexOf(int c,
                       int fromIndex)

lastIndexOf

public int lastIndexOf(int c)

lastIndexOf

public int lastIndexOf(String str,
                       int fromIndex)

lastIndexOf

public int lastIndexOf(String str)

intern

public String intern()

copyValueOf

public static String copyValueOf(char[] newValue)

copyValueOf

public static String copyValueOf(char[] newValue,
                                 int offset,
                                 int count)

valueOf

public static String valueOf(boolean b)

valueOf

public static String valueOf(char c)

valueOf

public static String valueOf(char[] newValue)

valueOf

public static String valueOf(char[] newValue,
                             int offset,
                             int count)

valueOf

public static String valueOf(double d)

valueOf

public static String valueOf(float f)

valueOf

public static String valueOf(int i)

valueOf

public static String valueOf(long l)

valueOf

public static String valueOf(Object obj)

split

public String[] split(String regex)