Class FileInfo

java.lang.Object
com.basis.filesystem.FileInfo

public class FileInfo extends Object
Class used as a utility to display file information.
  • Method Details

    • main

      public static void main(String[] p_argv)
      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

      public static void printHeader(FilePosition p_pos, PrintWriter p_out)
      Print file header information.
      Parameters:
      p_pos - FilePosition to print the header for.
      p_out - PrintWriter to print information to.
    • printData

      public static void printData(FilePosition p_pos, PrintWriter p_out, int p_max)
      Print file data.
      Parameters:
      p_pos - FilePosition to print the data for.
      p_out - PrintWriter to print information to.
    • printByteArray

      public static void printByteArray(byte[] p_bytes, PrintWriter p_out)
      Helper function to print an array of bytes.
      Parameters:
      p_bytes - Array of bytes to print.
      p_out - PrintWriter to print bytes to.
    • printByteArray

      public static void printByteArray(byte[] p_bytes, int p_len, PrintWriter p_out)
      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.