public class HexRead
extends java.lang.Object
Constructor and Description |
---|
HexRead() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
readData(java.io.InputStream stream, int eofChar) |
static byte[] |
readData(java.io.InputStream stream, java.lang.String section)
Same as readData(String) except that this method allows you to specify sections within a file.
(与 readData(String) 相同,只是此方法允许您指定文件中的部分。)
|
static byte[] |
readData(java.lang.String filename)
This method reads hex data from a filename and returns a byte array.
(此方法从文件名中读取十六进制数据并返回一个字节数组。)
|
static byte[] |
readData(java.lang.String filename, java.lang.String section) |
static byte[] |
readFromString(java.lang.String data) |
public static byte[] readData(java.lang.String filename) throws java.io.IOException
filename
- The filename to read
(filename - 要读取的文件名)
java.io.IOException
- If there was a problem while reading the file.
(java.io.IOException - 如果读取文件时出现问题。)
public static byte[] readData(java.io.InputStream stream, java.lang.String section) throws java.io.IOException
[sectioname](与 readData(String) 相同,只是此方法允许您指定文件中的部分。使用以下形式的节标题引用节:[sectioname])
java.io.IOException
(java.io.IOException)
readData(String)
public static byte[] readData(java.lang.String filename, java.lang.String section) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public static byte[] readData(java.io.InputStream stream, int eofChar) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public static byte[] readFromString(java.lang.String data)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.