Files { public static void hexDump(File f, long amount) throws IOException { Dumper.hexDump(new FileInputStream(f), System.out, 20, amount); } private  Files(); static Comparator<File> getNameSortingComparator(final Locale locale); static Comparator<File> getNameSortingComparator(); static FileFilter extensionFilter(String... extensions); static void deleteFiles(File... files); static void deleteFilesAndDirs(File... files); static List<File> crawlDirectory(File dir); static List<File> getFilesSorted(File dir, Comparator<File> comparator); static List<File> getFilesSorted(File dir, Comparator<File> comparator, FileFilter... filters); static List<File> crawlDirectory(File dir, FileFilter... filters); static List<File> crawlDirectory(File dir, boolean recurseSubDirs, FileFilter... filters); static List<File> getDirectories(File rootDir, boolean recurseSubDirs); static byte[] calculateMD5(File file); static void copyDirectory(File srcDir, File dstDir); static void copy(File src, File dst); static boolean contentEquals(File file1, File file2); static boolean containsUTF8Bom(File file); static void appendFiles(File target, File... filesToAppend); static void appendFiles(OutputStream os, File... filesToAppend); static void hexDump(File f, long amount); static void hexDump(File f, File out, long amount); static final Comparator<File> FILE_MODIFICATION_TIME_COMPARATOR_ASC; static final Comparator<File> FILE_MODIFICATION_TIME_COMPARATOR_DESC; }
@Ignore("Not a unit test") @Test public void testHexDump() throws IOException { Files.hexDump(new File("test/multi_line_text_file.txt"), -1); }