Package com.basis.filesystem
Class FileInfo
java.lang.Object
com.basis.filesystem.FileInfo
Class used as a utility to display file information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Function for command line file information.static void
printByteArray
(byte[] p_bytes, int p_len, PrintWriter p_out) Helper function to print an array of bytes.static void
printByteArray
(byte[] p_bytes, PrintWriter p_out) Helper function to print an array of bytes.static void
printData
(FilePosition p_pos, PrintWriter p_out, int p_max) Print file data.static void
printHeader
(FilePosition p_pos, PrintWriter p_out) Print file header information.
-
Method Details
-
main
Function for command line file information. This function will open all files specified on the command line (in turn) and display file information.- Parameters:
p_argv
- Command line arguments.
-
printHeader
Print file header information.- Parameters:
p_pos
-FilePosition
to print the header for.p_out
-PrintWriter
to print information to.
-
printData
Print file data.- Parameters:
p_pos
-FilePosition
to print the data for.p_out
-PrintWriter
to print information to.
-
printByteArray
Helper function to print an array of bytes.- Parameters:
p_bytes
- Array of bytes to print.p_out
-PrintWriter
to print bytes to.
-
printByteArray
Helper function to print an array of bytes.- Parameters:
p_bytes
- Array of bytes to print.p_len
- Length of bytes to print.p_out
-PrintWriter
to print bytes to.
-