public class StringInputStream
extends java.io.InputStream
implements java.io.Serializable
InputStream to fetch bytes from a String.
There are 3 modes how bytes can be processed:
ALL - all bytes are returned: both high and low byte of each characterSTRIP - only low byte of each character is returnedASCII - only low byte of each character is returned, but overloaded chars are marked with 0x3F| Modifier and Type | Class and Description |
|---|---|
static class |
StringInputStream.Mode
Mode that defines how input string is processed.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
available |
protected int |
charOffset |
protected int |
index |
protected StringInputStream.Mode |
mode |
protected java.lang.String |
string |
| Constructor and Description |
|---|
StringInputStream(java.lang.String string,
StringInputStream.Mode mode) |
protected final java.lang.String string
protected final StringInputStream.Mode mode
protected int index
protected int charOffset
protected int available
public StringInputStream(java.lang.String string,
StringInputStream.Mode mode)
Copyright © 2003-2013 Jodd Team