class Decoder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
bytes |
protected static ConcurrentHashMap<Class,Constructor> |
constructorMap |
protected EndianPolicy |
endianPolicy |
protected Object |
last |
protected Map<String,Object> |
map |
protected int |
ordinal |
| 构造器和说明 |
|---|
Decoder(byte[] bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
Decoder |
boolType(int byteOffset,
int bitOffset) |
Decoder |
boolType(int byteOffset,
int bitOffset,
String name) |
Decoder |
byteType(int offset) |
Decoder |
byteType(int offset,
String name) |
Decoder |
defaultEndian(EndianPolicy endianPolicy) |
Decoder |
doubleType(int offset) |
Decoder |
doubleType(int offset,
EndianPolicy endianPolicy) |
Decoder |
doubleType(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
doubleType(int offset,
String name) |
Decoder |
floatType(int offset) |
Decoder |
floatType(int offset,
EndianPolicy endianPolicy) |
Decoder |
floatType(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
floatType(int offset,
String name) |
Map<String,Object> |
get()
已过时。
|
BigInteger |
getAsBigInteger() |
boolean |
getAsBoolean() |
double |
getAsDouble() |
float |
getAsFloat() |
int |
getAsInt() |
long |
getAsLong() |
Map<String,Object> |
getAsMap() |
short |
getAsShort() |
Decoder |
int16Type(int offset) |
Decoder |
int16Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
int16Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
int16Type(int offset,
String name) |
Decoder |
int32Type(int offset) |
Decoder |
int32Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
int32Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
int32Type(int offset,
String name) |
Decoder |
int64Type(int offset) |
Decoder |
int64Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
int64Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
int64Type(int offset,
String name) |
Decoder |
int8Type(int offset) |
Decoder |
int8Type(int offset,
String name) |
<T> T |
mapTo(Class<T> clazz) |
protected <T> T |
mapToArg(Constructor<T> constructor) |
protected <T> T |
mapToNoArg(Constructor<T> constructor) |
protected Decoder |
put(Object value) |
protected Decoder |
put(String key,
Object value) |
Decoder |
shortType(int offset) |
Decoder |
shortType(int offset,
EndianPolicy endianPolicy) |
Decoder |
shortType(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
shortType(int offset,
String name) |
Decoder |
uint16Type(int offset) |
Decoder |
uint16Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
uint16Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
uint16Type(int offset,
String name) |
Decoder |
uint32Type(int offset) |
Decoder |
uint32Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
uint32Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
uint32Type(int offset,
String name) |
Decoder |
uint64Type(int offset) |
Decoder |
uint64Type(int offset,
EndianPolicy endianPolicy) |
Decoder |
uint64Type(int offset,
EndianPolicy endianPolicy,
String name) |
Decoder |
uint64Type(int offset,
String name) |
Decoder |
uint8Type(int offset) |
Decoder |
uint8Type(int offset,
String name) |
protected static ConcurrentHashMap<Class,Constructor> constructorMap
protected byte[] bytes
protected EndianPolicy endianPolicy
protected int ordinal
protected Object last
public Decoder defaultEndian(EndianPolicy endianPolicy)
public Decoder boolType(int byteOffset, int bitOffset)
public Decoder uint8Type(int offset)
public Decoder uint16Type(int offset)
public Decoder uint16Type(int offset, EndianPolicy endianPolicy)
public Decoder uint16Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder uint32Type(int offset)
public Decoder uint32Type(int offset, EndianPolicy endianPolicy)
public Decoder uint32Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder uint64Type(int offset)
public Decoder uint64Type(int offset, EndianPolicy endianPolicy)
public Decoder uint64Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder byteType(int offset)
public Decoder int8Type(int offset)
public Decoder shortType(int offset)
public Decoder shortType(int offset, EndianPolicy endianPolicy)
public Decoder shortType(int offset, EndianPolicy endianPolicy, String name)
public Decoder int16Type(int offset)
public Decoder int16Type(int offset, EndianPolicy endianPolicy)
public Decoder int16Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder int32Type(int offset)
public Decoder int32Type(int offset, EndianPolicy endianPolicy)
public Decoder int32Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder int64Type(int offset)
public Decoder int64Type(int offset, EndianPolicy endianPolicy)
public Decoder int64Type(int offset, EndianPolicy endianPolicy, String name)
public Decoder floatType(int offset)
public Decoder floatType(int offset, EndianPolicy endianPolicy)
public Decoder floatType(int offset, EndianPolicy endianPolicy, String name)
public Decoder doubleType(int offset)
public Decoder doubleType(int offset, EndianPolicy endianPolicy)
public Decoder doubleType(int offset, EndianPolicy endianPolicy, String name)
public boolean getAsBoolean()
public short getAsShort()
public int getAsInt()
public long getAsLong()
public BigInteger getAsBigInteger()
public float getAsFloat()
public double getAsDouble()
@Deprecated public Map<String,Object> get()
public <T> T mapTo(Class<T> clazz)
protected <T> T mapToNoArg(Constructor<T> constructor)
protected <T> T mapToArg(Constructor<T> constructor)
Copyright © 2019–2022 indunet. All rights reserved.