org.postgresql.util
Class PGtokenizer

java.lang.Object
  extended by org.postgresql.util.PGtokenizer

public class PGtokenizer
extends Object

This class is used to tokenize the text output of org.postgres. It's mainly used by the geometric classes, but is useful in parsing any output from custom data types output from org.postgresql.

See Also:
PGbox, PGcircle, PGlseg, PGpath, PGpoint, PGpolygon

Field Summary
protected  Vector tokens
           
 
Constructor Summary
PGtokenizer(String string, char delim)
           
 
Method Summary
 int getSize()
           
 String getToken(int n)
           
 void remove(String l, String t)
           
static String remove(String s, String l, String t)
           
 void removeAngle()
           
static String removeAngle(String s)
           
 void removeBox()
           
static String removeBox(String s)
           
 void removePara()
           
static String removePara(String s)
           
 int tokenize(String string, char delim)
           
 PGtokenizer tokenizeToken(int n, char delim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokens

protected Vector tokens
Constructor Detail

PGtokenizer

public PGtokenizer(String string,
                   char delim)
Method Detail

tokenize

public int tokenize(String string,
                    char delim)

getSize

public int getSize()

getToken

public String getToken(int n)

tokenizeToken

public PGtokenizer tokenizeToken(int n,
                                 char delim)

remove

public static String remove(String s,
                            String l,
                            String t)

remove

public void remove(String l,
                   String t)

removePara

public static String removePara(String s)

removePara

public void removePara()

removeBox

public static String removeBox(String s)

removeBox

public void removeBox()

removeAngle

public static String removeAngle(String s)

removeAngle

public void removeAngle()


Copyright © 2013. All Rights Reserved.