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.IOExceptionpublic void skipComments()
throws java.io.IOException
java.io.IOExceptionpublic int nextInt()
throws java.io.IOException,
ParseFormatException
java.io.IOExceptionParseFormatExceptionpublic java.math.BigInteger nextBigInteger()
throws java.io.IOException,
ParseFormatException
java.io.IOExceptionParseFormatExceptionpublic java.lang.String next()
throws java.io.IOException,
ParseFormatException
ParseFormatException - never used in that method.java.io.IOExceptionpublic char skipSpaces()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String nextLine()
throws java.io.IOException
java.io.IOExceptionpublic void skipRestOfLine()
throws java.io.IOException
java.io.IOExceptionpublic boolean eof()
throws java.io.IOException
java.io.IOExceptionpublic char currentChar()
throws java.io.IOException
java.io.IOException