Example #1
0
 public static long readDigits(InPort port, int radix) throws IOException {
   long ival = -2;
   for (; ; ) {
     ival = readDigitsInBuffer(port, ival, radix);
     if (port.pos < port.limit || port.peek() < 0) break;
   }
   return ival;
 }
Example #2
0
 public int peek() throws java.io.IOException {
   return port.peek();
 }