com.github.dakusui.cmd.io
Class BasicLineReader

java.lang.Object
  extended by com.github.dakusui.cmd.io.BasicLineReader
All Implemented Interfaces:
LineReader

public class BasicLineReader
extends Object
implements LineReader


Constructor Summary
BasicLineReader(Charset cs, int maxLineSize, InputStream is)
          Creates an object of this class.
 
Method Summary
 void close()
           
 String read()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.