org.postgresql.pljava.test
Class CommandReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by org.postgresql.pljava.test.CommandReader
All Implemented Interfaces:
Closeable, Readable

public class CommandReader
extends BufferedReader

Author:
Thomas Hallgren

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Method Summary
 void close()
           
static CommandReader create(String[] args, String[] env)
           
 BufferedReader getErrorReader()
           
 int getExitValue()
           
 
Methods inherited from class java.io.BufferedReader
mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static CommandReader create(String[] args,
                                   String[] env)
                            throws IOException
Throws:
IOException

getErrorReader

public BufferedReader getErrorReader()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class BufferedReader
Throws:
IOException

getExitValue

public int getExitValue()
                 throws IllegalThreadStateException
Throws:
IllegalThreadStateException