public class Reader extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
InputStream |
stream |
| 构造器和说明 |
|---|
Reader(byte[] bytes) |
Reader(byte[] bytes,
boolean simple) |
Reader(byte[] bytes,
HproseMode mode) |
Reader(byte[] bytes,
HproseMode mode,
boolean simple) |
Reader(ByteBuffer buffer) |
Reader(ByteBuffer buffer,
boolean simple) |
Reader(ByteBuffer buffer,
HproseMode mode) |
Reader(ByteBuffer buffer,
HproseMode mode,
boolean simple) |
Reader(InputStream stream) |
Reader(InputStream stream,
boolean simple) |
Reader(InputStream stream,
HproseMode mode) |
Reader(InputStream stream,
HproseMode mode,
boolean simple) |
public final InputStream stream
public Reader(InputStream stream)
public Reader(InputStream stream, boolean simple)
public Reader(InputStream stream, HproseMode mode)
public Reader(InputStream stream, HproseMode mode, boolean simple)
public Reader(ByteBuffer buffer)
public Reader(ByteBuffer buffer, boolean simple)
public Reader(ByteBuffer buffer, HproseMode mode)
public Reader(ByteBuffer buffer, HproseMode mode, boolean simple)
public Reader(byte[] bytes)
public Reader(byte[] bytes,
boolean simple)
public Reader(byte[] bytes,
HproseMode mode)
public Reader(byte[] bytes,
HproseMode mode,
boolean simple)
public final HproseException unexpectedTag(int tag)
public final HproseException unexpectedTag(int tag, String expectTags)
public final void checkTag(int tag,
int expectTag)
throws HproseException
HproseExceptionpublic final void checkTag(int expectTag)
throws IOException
IOExceptionpublic final int checkTags(int tag,
String expectTags)
throws IOException
IOExceptionpublic final int checkTags(String expectTags) throws IOException
IOExceptionpublic final void skip(int tag)
throws IOException
IOExceptionpublic final byte readByte(int tag)
throws IOException
IOExceptionpublic final short readShort(int tag)
throws IOException
IOExceptionpublic final int readInt(int tag)
throws IOException
IOExceptionpublic final long readLong(int tag)
throws IOException
IOExceptionpublic final int readIntWithoutTag()
throws IOException
IOExceptionpublic final BigInteger readBigIntegerWithoutTag() throws IOException
IOExceptionpublic final long readLongWithoutTag()
throws IOException
IOExceptionpublic final double readDoubleWithoutTag()
throws IOException
IOExceptionpublic final double readInfinityWithoutTag()
throws IOException
IOExceptionpublic final Calendar readDateWithoutTag() throws IOException
IOExceptionpublic final Calendar readTimeWithoutTag() throws IOException
IOExceptionpublic final byte[] readBytesWithoutTag()
throws IOException
IOExceptionpublic final String readUTF8CharWithoutTag() throws IOException
IOExceptionpublic final String readStringWithoutTag() throws IOException
IOExceptionpublic final char[] readCharsWithoutTag()
throws IOException
IOExceptionpublic final UUID readUUIDWithoutTag() throws IOException
IOExceptionpublic final ArrayList readListWithoutTag() throws IOException
IOExceptionpublic final HashMap readMapWithoutTag() throws IOException
IOExceptionpublic final Object readObjectWithoutTag(Type type) throws IOException
IOExceptionpublic final Object unserialize() throws IOException
IOExceptionpublic final boolean readBoolean()
throws IOException
IOExceptionpublic final Boolean readBooleanObject() throws IOException
IOExceptionpublic final char readChar()
throws IOException
IOExceptionpublic final Character readCharObject() throws IOException
IOExceptionpublic final byte readByte()
throws IOException
IOExceptionpublic final Byte readByteObject() throws IOException
IOExceptionpublic final short readShort()
throws IOException
IOExceptionpublic final Short readShortObject() throws IOException
IOExceptionpublic final int readInt()
throws IOException
IOExceptionpublic final Integer readIntObject() throws IOException
IOExceptionpublic final long readLong()
throws IOException
IOExceptionpublic final Long readLongObject() throws IOException
IOExceptionpublic final float readFloat()
throws IOException
IOExceptionpublic final Float readFloatObject() throws IOException
IOExceptionpublic final double readDouble()
throws IOException
IOExceptionpublic final Double readDoubleObject() throws IOException
IOExceptionpublic final <T extends Enum<T>> T readEnum(Class<T> type) throws IOException
IOExceptionpublic final String readString() throws IOException
IOExceptionpublic final BigInteger readBigInteger() throws IOException
IOExceptionpublic final Date readDate() throws IOException
IOExceptionpublic final Time readTime() throws IOException
IOExceptionpublic final Date readDateTime() throws IOException
IOExceptionpublic final Timestamp readTimestamp() throws IOException
IOExceptionpublic final Calendar readCalendar() throws IOException
IOExceptionpublic final BigDecimal readBigDecimal() throws IOException
IOExceptionpublic final StringBuilder readStringBuilder() throws IOException
IOExceptionpublic final StringBuffer readStringBuffer() throws IOException
IOExceptionpublic final UUID readUUID() throws IOException
IOExceptionpublic final void readArray(Type[] types, Object[] a, int count) throws IOException
IOExceptionpublic final Object[] readArray(int count) throws IOException
IOExceptionpublic final Object[] readObjectArray() throws IOException
IOExceptionpublic final boolean[] readBooleanArray()
throws IOException
IOExceptionpublic final char[] readCharArray()
throws IOException
IOExceptionpublic final byte[] readByteArray()
throws IOException
IOExceptionpublic final short[] readShortArray()
throws IOException
IOExceptionpublic final int[] readIntArray()
throws IOException
IOExceptionpublic final long[] readLongArray()
throws IOException
IOExceptionpublic final float[] readFloatArray()
throws IOException
IOExceptionpublic final double[] readDoubleArray()
throws IOException
IOExceptionpublic final String[] readStringArray() throws IOException
IOExceptionpublic final BigInteger[] readBigIntegerArray() throws IOException
IOExceptionpublic final Date[] readDateArray() throws IOException
IOExceptionpublic final Time[] readTimeArray() throws IOException
IOExceptionpublic final Timestamp[] readTimestampArray() throws IOException
IOExceptionpublic final Date[] readDateTimeArray() throws IOException
IOExceptionpublic final Calendar[] readCalendarArray() throws IOException
IOExceptionpublic final BigDecimal[] readBigDecimalArray() throws IOException
IOExceptionpublic final StringBuilder[] readStringBuilderArray() throws IOException
IOExceptionpublic final StringBuffer[] readStringBufferArray() throws IOException
IOExceptionpublic final UUID[] readUUIDArray() throws IOException
IOExceptionpublic final char[][] readCharsArray()
throws IOException
IOExceptionpublic final byte[][] readBytesArray()
throws IOException
IOExceptionpublic final Object unserialize(Type type) throws IOException
IOExceptionpublic final <T> T unserialize(Class<T> type) throws IOException
IOExceptionpublic final Object readRef() throws IOException
IOExceptionpublic final <T> T readRef(Type type) throws IOException
IOExceptionpublic void setRef(Object obj)
public void readClass()
throws IOException
IOExceptionpublic Object readClassRef() throws IOException
IOExceptionpublic String[] readMemberNames() throws IOException
IOExceptionpublic final String tagToString(int tag) throws IOException
IOExceptionpublic final ByteBufferStream readRaw() throws IOException
IOExceptionpublic final void readRaw(OutputStream ostream) throws IOException
IOExceptionpublic final void reset()
Copyright © 2018. All rights reserved.