Bugfixed cookie parsing.
[jsvc.git] / src / dolda / jsvc / util / Misc.java
index 63a10a7..34e36f7 100644 (file)
@@ -131,4 +131,14 @@ public class Misc {
            return(false);
        throw(new IllegalArgumentException("value not recognized as boolean: " + val));
     }
+    
+    public static void eatws(PushbackReader in) throws IOException {
+       int c;
+       do {
+           c = in.read();
+           if(c < 0)
+               return;
+       } while(Character.isWhitespace(c));
+       in.unread(c);
+    }
 }