public class EfficientScanner extends Object implements Serializable
| Constructor and Description |
|---|
EfficientScanner(InputStream input) |
EfficientScanner(InputStream input,
char commentChar) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
char |
currentChar() |
boolean |
eof() |
String |
next() |
BigInteger |
nextBigInteger() |
int |
nextInt()
To get the next available integer.
|
String |
nextLine() |
void |
skipComments()
Skip commented lines.
|
void |
skipRestOfLine() |
char |
skipSpaces() |
public EfficientScanner(InputStream input, char commentChar)
public EfficientScanner(InputStream input)
public void close()
throws IOException
IOExceptionpublic void skipComments()
throws IOException
IOExceptionpublic int nextInt()
throws IOException,
ParseFormatException
IOExceptionParseFormatExceptionpublic BigInteger nextBigInteger() throws IOException, ParseFormatException
IOExceptionParseFormatExceptionpublic String next() throws IOException, ParseFormatException
ParseFormatException - never used in that method.IOExceptionpublic char skipSpaces()
throws IOException
IOExceptionpublic String nextLine() throws IOException
IOExceptionpublic void skipRestOfLine()
throws IOException
IOExceptionpublic boolean eof()
throws IOException
IOExceptionpublic char currentChar()
throws IOException
IOExceptionCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.