| Modifier and Type | Class and Description |
|---|---|
static class |
CharSequenceInputStream.Builder
Builds a new
CharSequenceInputStream instance. |
| Constructor and Description |
|---|
CharSequenceInputStream(java.lang.CharSequence cs,
java.nio.charset.Charset charset)
Deprecated.
|
CharSequenceInputStream(java.lang.CharSequence cs,
java.nio.charset.Charset charset,
int bufferSize)
Deprecated.
|
CharSequenceInputStream(java.lang.CharSequence cs,
java.lang.String charset)
Deprecated.
|
CharSequenceInputStream(java.lang.CharSequence cs,
java.lang.String charset,
int bufferSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Return an estimate of the number of bytes remaining in the byte stream.
|
static CharSequenceInputStream.Builder |
builder()
Constructs a new
CharSequenceInputStream.Builder. |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] array,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
@Deprecated
public CharSequenceInputStream(java.lang.CharSequence cs,
java.nio.charset.Charset charset)
builder(), CharSequenceInputStream.Builder, and CharSequenceInputStream.Builder.get()IOUtils.DEFAULT_BUFFER_SIZE.cs - the input character sequence.charset - the character set name to use.java.lang.IllegalArgumentException - if the buffer is not large enough to hold a complete character.@Deprecated
public CharSequenceInputStream(java.lang.CharSequence cs,
java.nio.charset.Charset charset,
int bufferSize)
builder(), CharSequenceInputStream.Builder, and CharSequenceInputStream.Builder.get()cs - the input character sequence.charset - the character set name to use, null maps to the default Charset.bufferSize - the buffer size to use.java.lang.IllegalArgumentException - if the buffer is not large enough to hold a complete character.@Deprecated
public CharSequenceInputStream(java.lang.CharSequence cs,
java.lang.String charset)
builder(), CharSequenceInputStream.Builder, and CharSequenceInputStream.Builder.get()IOUtils.DEFAULT_BUFFER_SIZE.cs - the input character sequence.charset - the character set name to use.java.lang.IllegalArgumentException - if the buffer is not large enough to hold a complete character.@Deprecated
public CharSequenceInputStream(java.lang.CharSequence cs,
java.lang.String charset,
int bufferSize)
builder(), CharSequenceInputStream.Builder, and CharSequenceInputStream.Builder.get()cs - the input character sequence.charset - the character set name to use, null maps to the default Charset.bufferSize - the buffer size to use.java.lang.IllegalArgumentException - if the buffer is not large enough to hold a complete character.public static CharSequenceInputStream.Builder builder()
CharSequenceInputStream.Builder.CharSequenceInputStream.Builder.public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - if an error occurs (probably not possible).public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreamreadlimit - max read limit (ignored).public boolean markSupported()
markSupported in class java.io.InputStreampublic 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 int read(byte[] array,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved