public class TranslatingInputStream extends InputStream
| Constructor and Description |
|---|
TranslatingInputStream(InputStream delegate,
Charset from,
Charset to)
Creates an instance that reads bytes from
delegate that
represent characters in the "from" character set, and returning them
to the caller as characters in the "to" character set. |
TranslatingInputStream(InputStream delegate,
Charset from,
Charset to,
char replacement)
Creates an instance that reads bytes from
delegate that
represent characters in the "from" character set, and returning them
to the caller as characters in the "to" character set. |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
available, close, mark, markSupported, read, read, reset, skippublic TranslatingInputStream(InputStream delegate, Charset from, Charset to)
delegate that
represent characters in the "from" character set, and returning them
to the caller as characters in the "to" character set. Any characters
that cannot be represented in the "to" character set will be ignored.public TranslatingInputStream(InputStream delegate, Charset from, Charset to, char replacement)
delegate that
represent characters in the "from" character set, and returning them
to the caller as characters in the "to" character set. Any characters
that cannot be represented in the "to" character set will be replaced
by replacementpublic int read()
throws IOException
read in class InputStreamIOException