String JDK 1.0

java.lang serializable comparable

Synopsis^  ?
public final class String implements SerializableComparable {
// Public Constructors
    public String( );  
    public String( String value);  
    public String( StringBuffer buffer);  
1.1 public String( byte[ ] bytes);  
    public String( char[ ] value);  
1.1 public String( byte[ ] bytes, String enc) throws UnsupportedEncodingException;  
    public String( char[ ] value, int offset, int count);  
1.1 public String( byte[ ] bytes, int offset, int length);  
1.1 public String( byte[ ] bytes, int offset, int length, String enc) throws UnsupportedEncodingException;  
// Public Constants
2.0 public final static Comparator CASE_INSENSITIVE_ORDER; 
// Public Class Methods
    public static String copyValueOf( char[ ] data);  
    public static String copyValueOf( char[ ] data, int offset, int count);  
    public static String valueOf( Object obj);  
    public static String valueOf( long l);  
    public static String valueOf( char[ ] data);  
    public static String valueOf( boolean b);  
    public static String valueOf( double d);  
    public static String valueOf( char c);  
    public static String valueOf( int i);  
    public static String valueOf( float f);  
    public static String valueOf( char[ ] data, int offset, int count);  
// Property Accessor Methods (by property name)
1.1 public byte[ ] getBytes( );  
1.1 public byte[ ] getBytes( String enc) throws UnsupportedEncodingException;  
// Public Instance Methods
    public char charAt( int index);  
    public int compareTo( String anotherString);  
2.0 public int compareToIgnoreCase( String str);  
    public String concat( String str);  
    public boolean endsWith( String suffix);  
    public boolean equalsIgnoreCase( String anotherString);  
    public void getChars( int srcBegin, int srcEnd, char[ ] dst, int dstBegin);  
    public int indexOf( String str);  
    public int indexOf( int ch);  
    public int indexOf( String str, int fromIndex);  
    public int indexOf( int ch, int fromIndex);  
    public String intern( ); native 
    public int lastIndexOf( int ch);  
    public int lastIndexOf( String str);  
    public int lastIndexOf( String str, int fromIndex);  
    public int lastIndexOf( int ch, int fromIndex);  
    public int length( );  
    public boolean regionMatches( int toffset, String other, int ooffset, int len);  
    public boolean regionMatches( boolean ignoreCase, int toffset, String other, int ooffset, int len);  
    public String replace( char oldChar, char newChar);  
    public boolean startsWith( String prefix);  
    public boolean startsWith( String prefix, int toffset);  
    public String substring( int beginIndex);  
    public String substring( int beginIndex, int endIndex);  
    public char[ ] toCharArray( );  
    public String toLowerCase( );  
1.1 public String toLowerCase( Locale locale);  
    public String toUpperCase( );  
1.1 public String toUpperCase( Locale locale);  
    public String trim( );  
// Methods implementing Comparable
2.0 public int compareTo( Object o);  
// Public methods overriding Object
    public boolean equals( Object anObject);  
    public int hashCode( );  
    public String toString( );  
// Deprecated Methods
 #  public void getBytes( int srcBegin, int srcEnd, byte[ ] dst, int dstBegin);  
 #  public String( byte[ ] ascii, int hibyte);  
 #  public String( byte[ ] ascii, int hibyte, int offset, int count);  
}

Hierarchy^  ?

[Object] |-<Comparable>
   |   |
[String]-|-<Serializable>

JavaBeans Properties^  ?

  Name    Type    Access    Default    Flags  
  bytes    byte[ ]    get     read-only   

Inherited Properties^  ?
Object: class

Inherited Methods^  ?
Object: clone(), finalize(), notify(), notifyAll(), wait(), wait(), wait()

Passed To^  ?
184 methods

Returned By^  ?
72 methods

Uses^  ?
Character, Class, Comparable, Double, Float, Integer, InternalError, Long, Math, Object, StringBuffer, StringIndexOutOfBoundsException, System, ThreadLocal

Used By^  ?
67 classes


Java Power Reference. Created by David Flanagan.
Copyright © 1999 O'Reilly & Associates.All Rights Reserved.

This file may not be distributed on the Internet.