EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.util.io
Class StringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by echopoint.util.io.StringInputStream
All Implemented Interfaces:
Closeable

public class StringInputStream
extends InputStream

StringInputStream can read a String and return it as an InputStream.


Constructor Summary
StringInputStream(String s)
          Constructs a StringInputStream from the specified String
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringInputStream

public StringInputStream(String s)
Constructs a StringInputStream from the specified String

Parameters:
s - - the string to read
Method Detail

read

public int read()
Specified by:
read in class InputStream
See Also:
InputStream.read()

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class InputStream
See Also:
InputStream.read(byte[], int, int)

skip

public long skip(long n)
Overrides:
skip in class InputStream
See Also:
InputStream.skip(long)

available

public int available()
Overrides:
available in class InputStream
See Also:
InputStream.available()

reset

public void reset()
Overrides:
reset in class InputStream
See Also:
InputStream.reset()

EchoPoint API - 3.0.0b5
App Webcontainer