com.github.dakusui.cmd.io
Class BasicLineReader
java.lang.Object
com.github.dakusui.cmd.io.BasicLineReader
- All Implemented Interfaces:
- LineReader
public class BasicLineReader
- extends Object
- implements LineReader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicLineReader
public BasicLineReader(Charset cs,
int maxLineSize,
InputStream is)
- Creates an object of this class.
- Parameters:
cs - Character set that is assumed for the inputstream is.maxLineSize - is -
read
public String read()
throws CommandException
- Specified by:
read in interface LineReader
- Throws:
CommandException
close
public void close()
throws CommandException
- Specified by:
close in interface LineReader
- Throws:
CommandException
Copyright © 2016. All rights reserved.