Closeable, AutoCloseablepublic class CharSequenceInputStream extends InputStream
InputStream implementation that can read from String, StringBuffer,
StringBuilder or CharBuffer.
| Constructor | Description |
|---|---|
CharSequenceInputStream(CharSequence s,
String charset) |
Constructor, calls
CharSequenceInputStream(CharSequence, String, int)
with a buffer size of 2048. |
CharSequenceInputStream(CharSequence s,
String charset,
int bufferSize) |
Constructor, calls
CharSequenceInputStream(CharSequence, Charset, int). |
CharSequenceInputStream(CharSequence s,
Charset charset) |
Constructor, calls
CharSequenceInputStream(CharSequence, Charset, int)
with a buffer size of 2048. |
CharSequenceInputStream(CharSequence s,
Charset charset,
int bufferSize) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
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) |
readAllBytes, readNBytes, transferTopublic CharSequenceInputStream(CharSequence s, Charset charset, int bufferSize)
s - the input character sequencecharset - the character set name to usebufferSize - the buffer size to use.public CharSequenceInputStream(CharSequence s, String charset, int bufferSize)
CharSequenceInputStream(CharSequence, Charset, int).s - the input character sequencecharset - the character set name to usebufferSize - the buffer size to use.public CharSequenceInputStream(CharSequence s, Charset charset)
CharSequenceInputStream(CharSequence, Charset, int)
with a buffer size of 2048.s - the input character sequencecharset - the character set name to usepublic CharSequenceInputStream(CharSequence s, String charset)
CharSequenceInputStream(CharSequence, String, int)
with a buffer size of 2048.s - the input character sequencecharset - the character set name to usepublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreamreadlimit - max read limit (ignored)public void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2022 GeneXus S.A.. All rights reserved.