jodd.io
Class AsciiStringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by jodd.io.AsciiStringInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Serializable

public class AsciiStringInputStream
extends java.io.InputStream
implements java.io.Serializable

Simple InputStream subclass to fetch low order bytes from a String.

See Also:
StringInputStream, Serialized Form

Field Summary
protected  int available
           
protected  java.lang.String str
           
protected  int strOffset
           
 
Constructor Summary
AsciiStringInputStream(java.lang.String s)
           
 
Method Summary
 int available()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strOffset

protected int strOffset

available

protected int available

str

protected java.lang.String str
Constructor Detail

AsciiStringInputStream

public AsciiStringInputStream(java.lang.String s)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
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


Copyright ©2008 Jodd Team