codesimian
Class InputStreamOfCS

java.lang.Object
  extended by java.io.InputStream
      extended by codesimian.InputStreamOfCS
All Implemented Interfaces:
java.io.Closeable

public class InputStreamOfCS
extends java.io.InputStream

Returns each child of the CS as a BYTE, starting with param0, param1, param2... then returns -1 at the end of params.


Constructor Summary
InputStreamOfCS(CS cs)
           
 
Method Summary
 int available()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
          "Returns: the next byte of data, or -1 if the end of the stream is reached."
 void reset()
           
 long skip(long n)
          skipping avoids EXECUTING the CSs of the skipped indexs
 
Methods inherited from class java.io.InputStream
close, read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamOfCS

public InputStreamOfCS(CS cs)
Method Detail

read

public int read()
"Returns: the next byte of data, or -1 if the end of the stream is reached."

Specified by:
read in class java.io.InputStream

available

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

markSupported

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

mark

public void mark(int readLimit)
Overrides:
mark in class java.io.InputStream

reset

public void reset()
Overrides:
reset in class java.io.InputStream

skip

public long skip(long n)
skipping avoids EXECUTING the CSs of the skipped indexs

Overrides:
skip in class java.io.InputStream