verify from xdb File/Path

This commit is contained in:
lionsoul2014 2025-12-12 12:16:59 +08:00
parent ea297041dd
commit ff75ddbcfd
1 changed files with 6 additions and 2 deletions

View File

@ -297,10 +297,14 @@ public class Searcher {
} }
} }
public static void verifyFromFile(String dbFile) throws IOException, XdbException { public static void verifyFromFile(File xdbFile) throws IOException, XdbException {
final RandomAccessFile handle = new RandomAccessFile(dbFile, "r"); final RandomAccessFile handle = new RandomAccessFile(xdbFile, "r");
verify(handle); verify(handle);
handle.close(); handle.close();
} }
public static void verifyFromFile(String xdbPath) throws IOException, XdbException {
verifyFromFile(new File(xdbPath));
}
} }