use of org.loboevolution.info.BookmarkInfo in project LoboEvolution by LoboEvolution.
the class MozilaFirefoxData method getHostEntries.
private static List<BookmarkInfo> getHostEntries(String path) {
final List<BookmarkInfo> hostEntries = new ArrayList<>();
try (Connection conn = DriverManager.getConnection(DatabseSQLite.JDBC_SQLITE + path);
PreparedStatement pstmt = conn.prepareStatement(MOZ_HISTORY);
ResultSet rs = pstmt.executeQuery()) {
while (rs != null && rs.next()) {
BookmarkInfo info = new BookmarkInfo();
info.setUrl(rs.getString(1));
info.setTitle(rs.getString(2));
hostEntries.add(info);
}
} catch (final Exception e) {
logger.log(Level.SEVERE, e.getMessage(), e);
}
return hostEntries;
}
Aggregations