public class Utf8LineInput extends LineInput
| Constructor and Description |
|---|
Utf8LineInput(InputStream stream,
String path,
LineConfiguration configuration)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLineNumber()
Returns the number of lines which this object has read.
|
String |
getPath()
Returns the parsing target path.
|
boolean |
readTo(StringOption model)
Reads contents and write them into the target data model object.
|
newInstancepublic Utf8LineInput(InputStream stream, String path, LineConfiguration configuration)
stream - the source streampath - the source pathconfiguration - the current configurationIllegalArgumentException - if some parameters were nullLineInput.newInstance(InputStream, String, LineConfiguration)public String getPath()
LineInputpublic long getLineNumber()
LineInputgetLineNumber in class LineInputpublic boolean readTo(StringOption model) throws IOException
ModelInputmodel - the target data model objecttrue if the next data was successfully read, or false if there is no any moreIOException - if error occurred while reading the next datapublic void close()
throws IOException
IOExceptionCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.