public class ReaderUTF8InputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ReaderUTF8InputStream(java.io.Reader source)
Composes an InputStream stream from any other Reader you may have around.
|
ReaderUTF8InputStream(java.lang.String source)
Composes a stream from a String.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Stringreader.
|
void |
mark(int limit)
Marks the read limit of the StringReader.
|
boolean |
markSupported() |
int |
read()
Reads from the Stringreader.
|
void |
reset()
Resets to the beginning by resetting the wrapped Reader.
|
public ReaderUTF8InputStream(java.io.Reader source)
source - The Reader object to read from. Must not be
null.public ReaderUTF8InputStream(java.lang.String source)
source - The string to read from. Must not be null.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if the original StringReader fails to be readpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException - if the original Reader fails to be closedpublic void mark(int limit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException - if the StringReader fails to be resetpublic boolean markSupported()
markSupported in class java.io.InputStreamInputStream.markSupported()