brain.alice
Class AliceBasedInterface.ConsoleInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by brain.alice.AliceBasedInterface.ConsoleInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
AliceBasedInterface

public class AliceBasedInterface.ConsoleInputStream
extends java.io.InputStream


Field Summary
(package private)  byte[] content
           
 
Constructor Summary
AliceBasedInterface.ConsoleInputStream()
           
 
Method Summary
 int available()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void receive(java.lang.String string)
           
 
Methods inherited from class java.io.InputStream
close, mark, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

byte[] content
Constructor Detail

AliceBasedInterface.ConsoleInputStream

public AliceBasedInterface.ConsoleInputStream()
Method Detail

receive

public void receive(java.lang.String string)

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream

read

public int read()
Specified by:
read in class java.io.InputStream