| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | mByteCount
Total read byte count; used for error reporting purposes |
| pack-priv int | mCharCount
Total read character count; used for error reporting purposes |
| pack-priv char | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: True, if enough bytes were read to allow decoding of at least one full character; false if EOF was encountered instead.Number of "unused" bytes in the input buffer available)
|
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters start, int Maximum number of characters to read len)Implements abstract java. Reads characters into a portion of an array. |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | setXmlCompliancy(int xmlVersion)
Implements abstract com. Method that can be called to indicate the xml conformance used when reading content using this reader. |
| mByteCount | back to summary |
|---|---|
| pack-priv int mByteCount Total read byte count; used for error reporting purposes | |
| mCharCount | back to summary |
|---|---|
| pack-priv int mCharCount Total read character count; used for error reporting purposes | |
| mSurrogate | back to summary |
|---|---|
| pack-priv char mSurrogate | |
| mXml11 | back to summary |
|---|---|
| pack-priv boolean mXml11 | |
| UTF8Reader | back to summary |
|---|---|
| public UTF8Reader(ReaderConfig cfg, InputStream in, byte[] buf, int ptr, int len, boolean recycleBuffer) | |
| loadMore | back to summary |
|---|---|
private boolean loadMore(int available) throws IOException
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int start, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |
| reportInvalid | back to summary |
|---|---|
| private void reportInvalid(int value, int offset, String msg) throws IOException | |
| reportInvalidInitial | back to summary |
|---|---|
| private void reportInvalidInitial(int mask, int offset) throws IOException | |
| reportInvalidOther | back to summary |
|---|---|
| private void reportInvalidOther(int mask, int offset) throws IOException | |
| reportUnexpectedEOF | back to summary |
|---|---|
| private void reportUnexpectedEOF(int gotBytes, int needed) throws IOException | |
| setXmlCompliancy | back to summary |
|---|---|
| public void setXmlCompliancy(int xmlVersion) Implements abstract com. Doc from com. Method that can be called to indicate the xml conformance used when reading content using this reader. Some of the character validity checks need to be done at reader level, and sometimes they depend on xml level (for example, xml 1.1 has new linefeeds and both more and less restricted characters).
| |