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
IOException
public void skipComments() throws IOException
IOException
public int nextInt() throws IOException, ParseFormatException
IOException
ParseFormatException
public BigInteger nextBigInteger() throws IOException, ParseFormatException
IOException
ParseFormatException
public String next() throws IOException, ParseFormatException
ParseFormatException
- never used in that method.IOException
public char skipSpaces() throws IOException
IOException
public String nextLine() throws IOException
IOException
public void skipRestOfLine() throws IOException
IOException
public boolean eof() throws IOException
IOException
public char currentChar() throws IOException
IOException
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.