/** * Read the contents of the file and write them to system out. * * @param fileName the name of the file * @param details whether to print details */ public static void dump(String fileName, boolean details) { dump(fileName, new PrintWriter(System.out), details); }
if ("-dump".equals(args[i])) { String fileName = args[++i]; dump(fileName, new PrintWriter(System.out), true); } else if ("-info".equals(args[i])) { String fileName = args[++i];
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.isEmpty()) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }
/** * Read the contents of the file and write them to system out. * * @param fileName the name of the file * @param details whether to print details */ public static void dump(String fileName, boolean details) { dump(fileName, new PrintWriter(System.out), details); }
/** * Read the contents of the file and write them to system out. * * @param fileName the name of the file * @param details whether to print details */ public static void dump(String fileName, boolean details) { dump(fileName, new PrintWriter(System.out), details); }
/** * Read the contents of the file and write them to system out. * * @param fileName the name of the file * @param details whether to print details */ public static void dump(String fileName, boolean details) { dump(fileName, new PrintWriter(System.out), details); }
if ("-dump".equals(args[i])) { String fileName = args[++i]; dump(fileName, new PrintWriter(System.out), true); } else if ("-info".equals(args[i])) { String fileName = args[++i];
if ("-dump".equals(args[i])) { String fileName = args[++i]; dump(fileName, new PrintWriter(System.out), true); } else if ("-info".equals(args[i])) { String fileName = args[++i];
if ("-dump".equals(args[i])) { String fileName = args[++i]; dump(fileName, new PrintWriter(System.out), true); } else if ("-info".equals(args[i])) { String fileName = args[++i];
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.size() == 0) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.size() == 0) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }