Constructor and Description |
---|
CsvReader(Reader reader)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<String> |
get()
Returns an object on the current source position.
|
boolean |
next()
Moves this source to the next object, and then returns
true
if and only if the next object exists. |
public CsvReader(Reader reader)
reader
- the CSV sourcepublic boolean next() throws IOException
Source
true
if and only if the next object exists.next
in interface Source<List<String>>
true
if the next object exists, otherwise false
IOException
- if failed to move this cursorpublic List<String> get() throws IOException
Source
get
in interface Source<List<String>>
IOException
- if failed to load an object by I/O errorpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.