| 限定符和类型 | 字段和说明 |
|---|---|
protected CharsetDecoder |
m_Decoder |
protected ByteBuffer |
m_InBuffer |
protected CharBuffer |
m_OutBuffer |
protected int |
m_Position |
protected InputStream |
m_Source |
| 构造器和说明 |
|---|
JsonInputStream(InputStream source) |
JsonInputStream(InputStream source,
String charset) |
protected InputStream m_Source
protected CharsetDecoder m_Decoder
protected ByteBuffer m_InBuffer
protected CharBuffer m_OutBuffer
protected int m_Position
public JsonInputStream(InputStream source)
public JsonInputStream(InputStream source, String charset)
protected boolean decode()
throws IOException
IOExceptionpublic int available()
throws IOException
JsonInputavailable 在接口中 JsonInputIOException - IO异常时抛出public char readChar()
throws IOException
JsonInputreadChar 在接口中 JsonInputIOException - IO异常时抛出public void close()
throws IOException
JsonInputclose 在接口中 JsonInputIOException - IO异常时抛出Copyright © 2021. All rights reserved.