More Java work.
[doldaconnect.git] / lib / java / dolda / dolcon / Response.java
index 5ce1115..d5ee921 100644 (file)
@@ -3,10 +3,11 @@ package dolda.dolcon;
 import java.util.*;
 
 public class Response {
-    List<List<String>>lines;
+    List<List<String>> lines;
+    Command cmd;
     int code;
     
-    public Response(int code, List<List<String>>lines) {
+    public Response(int code, List<List<String>> lines) {
        this.code = code;
        this.lines = lines;
     }
@@ -14,4 +15,8 @@ public class Response {
     public String toString() {
        return("Response " + code + ": " + lines.toString());
     }
+    
+    public String token(int line, int token) {
+       return(lines.get(line).get(token));
+    }
 }