forked from json-iterator/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecoder.java
More file actions
38 lines (30 loc) · 1.01 KB
/
Decoder.java
File metadata and controls
38 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.jsoniter;
import java.io.IOException;
public interface Decoder {
/**
* Customized decoder to read values from iterator
*
* @param iter the iterator instance
* @return the value to set
* @throws IOException when reading from iterator triggered error
*/
Object decode(Jsoniter iter) throws IOException;
interface BooleanDecoder extends Decoder {
boolean decodeBoolean(Jsoniter iter) throws IOException;
}
interface ShortDecoder extends Decoder {
short decodeShort(Jsoniter iter) throws IOException;
}
interface IntDecoder extends Decoder {
int decodeInt(Jsoniter iter) throws IOException;
}
interface LongDecoder extends Decoder {
long decodeLong(Jsoniter iter) throws IOException;
}
interface FloatDecoder extends Decoder {
float decodeFloat(Jsoniter iter) throws IOException;
}
interface DoubleDecoder extends Decoder {
double decodeDouble(Jsoniter iter) throws IOException;
}
}