org.n52.security.common.util
Class StringInputStream
java.lang.Object
java.io.InputStream
org.n52.security.common.util.StringInputStream
- All Implemented Interfaces:
- Closeable
public class StringInputStream
- extends InputStream
Tasks of Class StringInputStream.
- This is a Low Memory Implementation to convert a String in a InputStream
- It converts only CHAR_BUFFER_SIZE chars at once
- Author:
- reiprecht
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringInputStream
public StringInputStream(String pContent,
String pCharset)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class InputStream
- Throws:
IOException
Copyright © 2004–2013 52north.org. All rights reserved.