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; }
public int peek() throws java.io.IOException { return port.peek(); }