class TextInputStream
extends java.io.InputStream
InputStream backed by CharSequence.| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
bbuf |
private java.nio.CharBuffer |
cbuf |
private java.nio.charset.CharsetEncoder |
encoder |
private int |
mark |
| Constructor and Description |
|---|
TextInputStream(java.lang.CharSequence s,
java.nio.charset.Charset charset,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private void |
fillBuffer() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
private final java.nio.charset.CharsetEncoder encoder
private final java.nio.CharBuffer cbuf
private final java.nio.ByteBuffer bbuf
private int mark
TextInputStream(java.lang.CharSequence s,
java.nio.charset.Charset charset,
int bufferSize)
private void fillBuffer()
throws java.nio.charset.CharacterCodingException
java.nio.charset.CharacterCodingExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException