public class FileInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] p_argv)
Function for command line file information.
|
static void |
printByteArray(byte[] p_bytes,
int p_len,
java.io.PrintWriter p_out)
Helper function to print an array of bytes.
|
static void |
printByteArray(byte[] p_bytes,
java.io.PrintWriter p_out)
Helper function to print an array of bytes.
|
static void |
printData(FilePosition p_pos,
java.io.PrintWriter p_out,
int p_max)
Print file data.
|
static void |
printHeader(FilePosition p_pos,
java.io.PrintWriter p_out)
Print file header information.
|
public static void main(java.lang.String[] p_argv)
p_argv
- Command line arguments.public static void printHeader(FilePosition p_pos, java.io.PrintWriter p_out)
p_pos
- FilePosition
to print the header for.p_out
- PrintWriter
to print information to.public static void printData(FilePosition p_pos, java.io.PrintWriter p_out, int p_max)
p_pos
- FilePosition
to print the data for.p_out
- PrintWriter
to print information to.public static void printByteArray(byte[] p_bytes, java.io.PrintWriter p_out)
p_bytes
- Array of bytes to print.p_out
- PrintWriter
to print bytes to.public static void printByteArray(byte[] p_bytes, int p_len, java.io.PrintWriter p_out)
p_bytes
- Array of bytes to print.p_len
- Length of bytes to print.p_out
- PrintWriter
to print bytes to.