class Lexer implements Closeable.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1602919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-06-16 16:16:48 +00:00
parent bfa592d06b
commit 2076464484
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.INVALID;
import static org.apache.commons.csv.Token.Type.TOKEN;
import java.io.Closeable;
import java.io.IOException;
/**
@ -37,7 +38,7 @@ import java.io.IOException;
*
* @version $Id$
*/
final class Lexer {
final class Lexer implements Closeable {
/**
* Constant char to use for disabling comments, escapes and encapsulation. The value -2 is used because it
@ -425,7 +426,7 @@ final class Lexer {
* @throws IOException
* If an I/O error occurs
*/
void close() throws IOException {
public void close() throws IOException {
reader.close();
}
}