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.
|
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 readjava.io.IOException
- If there was a problem while reading the file.public static byte[] readData(java.io.InputStream stream, java.lang.String section) throws java.io.IOException
[sectioname]
java.io.IOException
readData(String)
public static byte[] readData(java.lang.String filename, java.lang.String section) throws java.io.IOException
java.io.IOException
public static byte[] readData(java.io.InputStream stream, int eofChar) throws java.io.IOException
java.io.IOException
public static byte[] readFromString(java.lang.String data)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.