|
30 | 30 | * @version 0.6.0 |
31 | 31 | */ |
32 | 32 | public interface Unpacker extends Iterable<Value>, Closeable { |
33 | | - public boolean readBoolean() throws IOException; |
| 33 | + public <T> T read(Class<T> klass) throws IOException; |
34 | 34 |
|
35 | | - public byte readByte() throws IOException; |
| 35 | + public <T> T read(T to) throws IOException; |
36 | 36 |
|
37 | | - public short readShort() throws IOException; |
| 37 | + public void skip() throws IOException; |
38 | 38 |
|
39 | | - public int readInt() throws IOException; |
40 | 39 |
|
41 | | - public long readLong() throws IOException; |
| 40 | + public int readArrayBegin() throws IOException; |
42 | 41 |
|
43 | | - public BigInteger readBigInteger() throws IOException; |
| 42 | + public void readArrayEnd(boolean check) throws IOException; |
44 | 43 |
|
45 | | - public float readFloat() throws IOException; |
| 44 | + public void readArrayEnd() throws IOException; |
46 | 45 |
|
47 | | - public double readDouble() throws IOException; |
| 46 | + public int readMapBegin() throws IOException; |
48 | 47 |
|
49 | | - public byte[] readByteArray() throws IOException; |
| 48 | + public void readMapEnd(boolean check) throws IOException; |
50 | 49 |
|
51 | | - public ByteBuffer readByteBuffer() throws IOException; |
| 50 | + public void readMapEnd() throws IOException; |
52 | 51 |
|
53 | | - public String readString() throws IOException; |
| 52 | + public void readNil() throws IOException; |
54 | 53 |
|
55 | | - public Value readValue() throws IOException; |
| 54 | + public boolean trySkipNil() throws IOException; |
56 | 55 |
|
57 | 56 |
|
58 | | - public void readNil() throws IOException; |
| 57 | + public boolean readBoolean() throws IOException; |
59 | 58 |
|
60 | | - public int readArrayBegin() throws IOException; |
| 59 | + public byte readByte() throws IOException; |
61 | 60 |
|
62 | | - public void readArrayEnd(boolean check) throws IOException; |
| 61 | + public short readShort() throws IOException; |
63 | 62 |
|
64 | | - public void readArrayEnd() throws IOException; |
| 63 | + public int readInt() throws IOException; |
65 | 64 |
|
66 | | - public int readMapBegin() throws IOException; |
| 65 | + public long readLong() throws IOException; |
67 | 66 |
|
68 | | - public void readMapEnd(boolean check) throws IOException; |
| 67 | + public BigInteger readBigInteger() throws IOException; |
69 | 68 |
|
70 | | - public void readMapEnd() throws IOException; |
| 69 | + public float readFloat() throws IOException; |
71 | 70 |
|
| 71 | + public double readDouble() throws IOException; |
72 | 72 |
|
73 | | - public boolean trySkipNil() throws IOException; |
| 73 | + public byte[] readByteArray() throws IOException; |
74 | 74 |
|
75 | | - public void skip() throws IOException; |
| 75 | + public ByteBuffer readByteBuffer() throws IOException; |
76 | 76 |
|
77 | | - public <T> T read(Class<T> klass) throws IOException; |
| 77 | + public String readString() throws IOException; |
78 | 78 |
|
79 | | - public <T> T read(T to) throws IOException; |
| 79 | + public Value readValue() throws IOException; |
80 | 80 |
|
81 | 81 |
|
82 | 82 | public UnpackerIterator iterator(); |
|
0 commit comments