类 JSONInputStream
- java.lang.Object
-
- io.github.javaherobrine.ioStream.JSONInputStream
-
- 所有已实现的接口:
java.io.DataInput,java.io.ObjectInput,java.lang.AutoCloseable
public class JSONInputStream extends java.lang.Object implements java.io.ObjectInput从JSON流里面读取Map的类,只有readObject()和close()函数是有用的
-
-
构造器概要
构造器 构造器 说明 JSONInputStream(java.io.InputStream source)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intavailable()voidclose()intread()intread(byte[] b)intread(byte[] b, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)intreadInt()java.lang.StringreadLine()longreadLong()java.lang.ObjectreadObject()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()java.lang.StringreadUTF()longskip(long n)intskipBytes(int n)
-
-
-
方法详细资料
-
readObject
public java.lang.Object readObject() throws java.io.IOException- 指定者:
readObject在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
readFully
public void readFully(byte[] b) throws java.io.IOException- 指定者:
readFully在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws java.io.IOException- 指定者:
readFully在接口中java.io.DataInput- 抛出:
java.io.IOException
-
skipBytes
public int skipBytes(int n) throws java.io.IOException- 指定者:
skipBytes在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readBoolean
public boolean readBoolean() throws java.io.IOException- 指定者:
readBoolean在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readByte
public byte readByte()
- 指定者:
readByte在接口中java.io.DataInput
-
readUnsignedByte
public int readUnsignedByte() throws java.io.IOException- 指定者:
readUnsignedByte在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readShort
public short readShort() throws java.io.IOException- 指定者:
readShort在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readUnsignedShort
public int readUnsignedShort() throws java.io.IOException- 指定者:
readUnsignedShort在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readChar
public char readChar() throws java.io.IOException- 指定者:
readChar在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException- 指定者:
readInt在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException- 指定者:
readLong在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readFloat
public float readFloat() throws java.io.IOException- 指定者:
readFloat在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException- 指定者:
readDouble在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException- 指定者:
readLine在接口中java.io.DataInput- 抛出:
java.io.IOException
-
readUTF
public java.lang.String readUTF() throws java.io.IOException- 指定者:
readUTF在接口中java.io.DataInput- 抛出:
java.io.IOException
-
read
public int read() throws java.io.IOException- 指定者:
read在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- 指定者:
read在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- 指定者:
read在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- 指定者:
skip在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
available
public int available() throws java.io.IOException- 指定者:
available在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
close
public void close() throws java.io.IOException- 指定者:
close在接口中java.lang.AutoCloseable- 指定者:
close在接口中java.io.ObjectInput- 抛出:
java.io.IOException
-
-