| java.lang.Object org.apache.poi.util.HexRead
HexRead | public class HexRead (Code) | | Utilities to read hex from files.
author: Marc Johnson author: Glen Stampoultzis (glens at apache.org) |
Method Summary | |
public static byte[] | readData(String filename) This method reads hex data from a filename and returns a byte array. | public static byte[] | readData(String filename, String section) Same as readData(String) except that this method allows you to specify sections within
a file. | public static byte[] | readData(InputStream stream, int eofChar) | public static byte[] | readFromString(String data) |
readData | public static byte[] readData(String filename) throws IOException(Code) | | This method reads hex data from a filename and returns a byte array.
The file may contain line comments that are preceeded with a # symbol.
Parameters: filename - The filename to read The bytes read from the file. throws: IOException - If there was a problem while reading the file. |
readData | public static byte[] readData(String filename, String section) throws IOException(Code) | | Same as readData(String) except that this method allows you to specify sections within
a file. Sections are referenced using section headers in the form:
[sectioname]
See Also: HexRead.readData(String) |
|
|