Buglet - buglet.sourceforge.org

org.buglet.util
Class StringParser

java.lang.Object
  |
  +--org.buglet.util.StringParser

public class StringParser
extends java.lang.Object

This class takes in two strings and seperates the first string on instances of the second one.

Author:
Field Summary
(package private) static org.apache.log4j.Category log
           
(package private)  int num
          int containing number of positions in the return array
(package private)  java.lang.String[] returnVal
          Array containing the return val in array form
 
Constructor Summary
StringParser(java.lang.String target, java.lang.String delim)
          Constructor, parses the target String into the array using delim as a delimeter.
 
Method Summary
 java.lang.String get(int pos)
           
 java.lang.String[] getArray()
          This method returns the parsed String in a String[] form
 int getCount()
          This method returns the number of occurances of the delimeter
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.log4j.Category log

returnVal

java.lang.String[] returnVal
Array containing the return val in array form

num

int num
int containing number of positions in the return array
Constructor Detail

StringParser

public StringParser(java.lang.String target,
                    java.lang.String delim)
Constructor, parses the target String into the array using delim as a delimeter.
Parameters:
target -  
delim -  
Method Detail

get

public java.lang.String get(int pos)

getArray

public java.lang.String[] getArray()
This method returns the parsed String in a String[] form

getCount

public int getCount()
This method returns the number of occurances of the delimeter

main

public static void main(java.lang.String[] args)

Buglet - buglet.sourceforge.org

Copyright © 2001 58k.com Inc. All Rights Reserved