public class EfficientScanner
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EfficientScanner(java.io.InputStream input) |
EfficientScanner(java.io.InputStream input,
char commentChar) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
char |
currentChar() |
boolean |
eof() |
java.lang.String |
next() |
java.math.BigInteger |
nextBigInteger() |
int |
nextInt()
To get the next available integer.
|
java.lang.String |
nextLine() |
void |
skipComments()
Skip commented lines.
|
void |
skipRestOfLine() |
char |
skipSpaces() |
public EfficientScanner(java.io.InputStream input, char commentChar)
public EfficientScanner(java.io.InputStream input)
public void close() throws java.io.IOException
java.io.IOException
public void skipComments() throws java.io.IOException
java.io.IOException
public int nextInt() throws java.io.IOException, ParseFormatException
java.io.IOException
ParseFormatException
public java.math.BigInteger nextBigInteger() throws java.io.IOException, ParseFormatException
java.io.IOException
ParseFormatException
public java.lang.String next() throws java.io.IOException, ParseFormatException
ParseFormatException
- never used in that method.java.io.IOException
public char skipSpaces() throws java.io.IOException
java.io.IOException
public java.lang.String nextLine() throws java.io.IOException
java.io.IOException
public void skipRestOfLine() throws java.io.IOException
java.io.IOException
public boolean eof() throws java.io.IOException
java.io.IOException
public char currentChar() throws java.io.IOException
java.io.IOException