public class UTF8 extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bValidChar
UTF-8 validity status on last read character.
|
byte[] |
chars_read
Bytes read in the decoding process.
|
int |
utf8_c
Complete or partial UTF-8 character, depending on conversion errors.
|
| Constructor and Description |
|---|
UTF8() |
| Modifier and Type | Method and Description |
|---|---|
int |
readUtf8(int c,
java.io.InputStream in)
Given a character and an input stream returns the next decoded UTF-8
character.
|
int |
writeUtf8(int c,
java.io.OutputStream out)
UTF-8 encodes a character and outputs in onto the stream.
|
public int utf8_c
public byte[] chars_read
public boolean bValidChar
public UTF8()
public int readUtf8(int c, java.io.InputStream in) throws java.io.IOException
c - initial characterin - input stream used to read extra UTF-8 encoded datajava.io.IOException - if an I/O error occurs while readingpublic int writeUtf8(int c, java.io.OutputStream out) throws java.io.IOException
c - character to UTF-8 encodeout - UTF-8 output streamjava.io.IOException - if an I/O error occurs while writingCopyright © 2011–2023. All rights reserved.