sleep.bridges.io
Class IOObject

java.lang.Object
  extended bysleep.bridges.io.IOObject
Direct Known Subclasses:
FileObject, ProcessObject, SocketObject

public class IOObject
extends Object


Field Summary
protected  InputStream in
           
protected  OutputStream out
           
protected  BufferedReader reader
           
protected  DataInputStream readerb
           
protected  PrintWriter writer
           
protected  DataOutputStream writerb
           
 
Constructor Summary
IOObject()
           
 
Method Summary
 void close()
           
static IOObject getConsole()
          returns an IOObject that represents stdin/stdout
 DataInputStream getReader()
           
 DataOutputStream getWriter()
           
 boolean isEOF()
           
 void openRead(InputStream _in)
           
 void openWrite(OutputStream _out)
           
 void print(String text)
           
 void printLine(String text)
           
 String readLine()
           
 void sendEOF()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in

out

protected OutputStream out

reader

protected BufferedReader reader

writer

protected PrintWriter writer

readerb

protected DataInputStream readerb

writerb

protected DataOutputStream writerb
Constructor Detail

IOObject

public IOObject()
Method Detail

getConsole

public static IOObject getConsole()
returns an IOObject that represents stdin/stdout


openRead

public void openRead(InputStream _in)

openWrite

public void openWrite(OutputStream _out)

close

public void close()

readLine

public String readLine()

isEOF

public boolean isEOF()

sendEOF

public void sendEOF()

getReader

public DataInputStream getReader()

getWriter

public DataOutputStream getWriter()

printLine

public void printLine(String text)

print

public void print(String text)