Home » openjdk-7 » net.bonzoun » cocodonkey » [javadoc | source]
net.bonzoun.cocodonkey
public class: StringParser [javadoc | source]
java.lang.Object
   net.bonzoun.cocodonkey.StringParser

Direct Known Subclasses:
    SearchParser

Field Summary
public static final  String WHITESPACE     
public static final  String INTEGER     
public static final  String HEXA     
public static final  String FLOAT     
Constructor:
 public StringParser(String s) 
Method from net.bonzoun.cocodonkey.StringParser Summary:
getLastChar,   getLastFloat,   getLastInt,   getLastIntUntil,   getLastString,   getLastStringUntil,   getNextChar,   getNextFloat,   getNextInt,   getNextIntUntil,   getNextString,   getNextStringUntil,   getRemainingString,   goAfter,   goBefore,   hasMoreData,   parseFloat,   parseInt,   stringContainsOnly,   testLastChar,   testNextChar
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.bonzoun.cocodonkey.StringParser Detail:
 public char getLastChar() 
 public float getLastFloat(int def) 
 public int getLastInt(int def) 
 public int getLastIntUntil(String delim,
    int def) 
 public String getLastString() 
    Returns the last non empty chars *
 public String getLastStringUntil(String delim) 
    Returns the last non empty chars until any char in delim is met, skipping the head withespaces
 public char getNextChar() 
 public float getNextFloat(int def) 
 public int getNextInt(int def) 
 public int getNextIntUntil(String delim,
    int def) 
 public String getNextString() 
    Returns the next non empty chars
 public String getNextStringUntil(String delim) 
    Returns the next non empty chars until any char in delim is met, skipping the head withespaces
 public String getRemainingString() 
 public boolean goAfter(char delim) 
    Skips the next chars until delim is met *
 public boolean goBefore(char delim) 
    Skips the next chars until delim is met *
 public boolean hasMoreData() 
 public static float parseFloat(String s,
    int def) 
    Converts a String to an float, without failing *
 public static int parseInt(String s,
    int def) 
    Converts a String to an int, without failing *
 public static boolean stringContainsOnly(String s,
    String chars) 
 public char testLastChar() 
 public char testNextChar()