public interface FixedField
Modifier and Type | Method and Description |
---|---|
void |
readFromBytes(byte[] data)
set the value from its offset into an array of bytes
(将值从其偏移量设置为字节数组)
|
void |
readFromStream(java.io.InputStream stream)
set the value from an InputStream
(从 InputStream 设置值)
|
java.lang.String |
toString()
return the value as a String
(将值作为字符串返回)
|
void |
writeToBytes(byte[] data)
write the value out to an array of bytes at the appropriate offset
(在适当的偏移量处将值写入字节数组)
|
void readFromBytes(byte[] data) throws java.lang.ArrayIndexOutOfBoundsException
data
- the byte array from which the value is to be read
(data - 要从中读取值的字节数组)
java.lang.ArrayIndexOutOfBoundsException
- if the offset is out of the array's valid index range
(java.lang.ArrayIndexOutOfBoundsException - 如果偏移量超出数组的有效索引范围)
void readFromStream(java.io.InputStream stream) throws java.io.IOException
stream
- the InputStream from which the value is to be read
(stream - 要从中读取值的 InputStream)
LittleEndian.BufferUnderrunException
- if there is not enough data available from the InputStream
(LittleEndian.BufferUnderrunException - 如果 InputStream 没有足够的数据可用)
java.io.IOException
- if an IOException is thrown from reading the InputStream
(java.io.IOException - 如果读取 InputStream 时抛出 IOException)
void writeToBytes(byte[] data) throws java.lang.ArrayIndexOutOfBoundsException
data
- the array of bytes to which the value is to be written
(data - 要写入值的字节数组)
java.lang.ArrayIndexOutOfBoundsException
- if the offset is out of the array's valid index range
(java.lang.ArrayIndexOutOfBoundsException - 如果偏移量超出数组的有效索引范围)
java.lang.String toString()
toString
in class
java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.