From fa67a247cf66ea86f6fcc773c27cfd4698d2405a Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Sat, 20 Sep 1997 02:21:25 +0000 Subject: Bring in Peter's changes...finally :( --- src/interfaces/jdbc/postgresql/PGtokenizer.java | 100 ++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 src/interfaces/jdbc/postgresql/PGtokenizer.java (limited to 'src/interfaces/jdbc/postgresql/PGtokenizer.java') diff --git a/src/interfaces/jdbc/postgresql/PGtokenizer.java b/src/interfaces/jdbc/postgresql/PGtokenizer.java new file mode 100644 index 00000000000..d41bfef5a0c --- /dev/null +++ b/src/interfaces/jdbc/postgresql/PGtokenizer.java @@ -0,0 +1,100 @@ +/** + * + * This class is used to tokenize the text output of postgres. + * + */ + +package postgresql; + +import java.sql.*; +import java.util.*; + +public class PGtokenizer +{ + protected Vector tokens; + + public PGtokenizer(String string,char delim) + { + tokenize(string,delim); + } + + /** + * Tokenizes a new string + */ + public int tokenize(String string,char delim) + { + tokens = new Vector(); + + int nest=0,p,s; + for(p=0,s=0;p");} + public void removeAngle() {remove("<",">");} +} -- cgit v1.2.3