public class BasicLineInput extends LineInput
Constructor and Description |
---|
BasicLineInput(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.
|
newInstance
public BasicLineInput(InputStream stream, String path, LineConfiguration configuration)
stream
- the source streampath
- the source pathconfiguration
- the current configurationIllegalArgumentException
- if some parameters were null
LineInput.newInstance(InputStream, String, LineConfiguration)
public String getPath()
LineInput
public long getLineNumber()
LineInput
getLineNumber
in class LineInput
public boolean readTo(StringOption model) throws IOException
ModelInput
model
- 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
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.