com.mindoo.remote.api.tools.io
Class ReaderInputStream
java.lang.Object
java.io.InputStream
com.mindoo.remote.api.tools.io.ReaderInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class ReaderInputStream
- extends java.io.InputStream
Class to convert a Reader into an InputStream
Internal utility class. Not part of the public API.
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_reader
protected java.io.Reader m_reader
m_encoding
protected java.lang.String m_encoding
ReaderInputStream
public ReaderInputStream(java.io.Reader reader)
ReaderInputStream
public ReaderInputStream(java.io.Reader reader,
java.lang.String encoding)
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
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
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException