Package org.apache.xmlbeans.impl.common
Class ReaderInputStream
java.lang.Object
java.io.InputStream
org.apache.xmlbeans.impl.common.PushedInputStream
org.apache.xmlbeans.impl.common.ReaderInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ReaderInputStream extends PushedInputStream
-
Field Summary
Fields Modifier and Type Field Description static int
defaultBufferSize
Fields inherited from class org.apache.xmlbeans.impl.common.PushedInputStream
marklimit, markpos, outputStream, readpos, writepos
-
Constructor Summary
Constructors Constructor Description ReaderInputStream(Reader reader, String encoding)
ReaderInputStream(Reader reader, String encoding, int bufferSize)
-
Method Summary
Modifier and Type Method Description void
fill(int requestedBytes)
Called when more bytes need to be written into this stream (as an OutputStream).Methods inherited from class org.apache.xmlbeans.impl.common.PushedInputStream
available, getOutputStream, mark, markSupported, read, read, reset, skip
Methods inherited from class java.io.InputStream
close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
defaultBufferSize
public static final int defaultBufferSize- See Also:
- Constant Field Values
-
-
Constructor Details
-
ReaderInputStream
- Throws:
UnsupportedEncodingException
-
ReaderInputStream
public ReaderInputStream(Reader reader, String encoding, int bufferSize) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
-
Method Details
-
fill
Description copied from class:PushedInputStream
Called when more bytes need to be written into this stream (as an OutputStream). This method must write at least one byte if the stream is not ended, and it must not write any bytes if the stream has already ended.- Specified by:
fill
in classPushedInputStream
- Throws:
IOException
-