cakoose.util.exec
Class Exec.StringOutputCollector

java.lang.Object
  extended by cakoose.util.exec.Exec.OutputConsumer
      extended by cakoose.util.exec.Exec.StringOutputCollector
Enclosing class:
Exec

public static class Exec.StringOutputCollector
extends Exec.OutputConsumer


Constructor Summary
Exec.StringOutputCollector()
           
Exec.StringOutputCollector(Charset encoding)
           
 
Method Summary
 void consume(InputStream source)
           
 String getString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exec.StringOutputCollector

public Exec.StringOutputCollector(Charset encoding)

Exec.StringOutputCollector

public Exec.StringOutputCollector()
Method Detail

consume

public void consume(InputStream source)
             throws IOException
Specified by:
consume in class Exec.OutputConsumer
Throws:
IOException

getString

public String getString()
                 throws CharacterCodingException
Throws:
CharacterCodingException