MBTilesFile { public void init() throws IOException { try { Connection cx = connPool.getConnection(); try { init(cx); } finally { cx.close(); } } catch (SQLException e) { throw new IOException(e); } } MBTilesFile();  MBTilesFile(boolean disableJournal);  MBTilesFile(File file);  MBTilesFile(File file, boolean disableJournal);  MBTilesFile(File file, String user, String passwd, boolean disableJournal);   MBTilesFile(DataSource dataSource);   MBTilesFile(JDBCDataStore dataStore); void saveMetaData(MBTilesMetadata metaData); void saveMinMaxZoomMetadata(int min, int max); void saveTile(MBTilesTile entry); void saveGrid(MBTilesGrid entry); MBTilesMetadata loadMetaData(); MBTilesMetadata loadMetaData(MBTilesMetadata metaData); MBTilesTile loadTile(long zoomLevel, long column, long row); MBTilesTile loadTile(MBTilesTile entry); MBTilesGrid loadGrid(long zoomLevel, long column, long row); MBTilesGrid loadGrid(MBTilesGrid entry); TileIterator tiles(); TileIterator tiles(long zoomLevel); TileIterator tiles(long zoomLevel, long leftTile, long bottomTile, long rightTile, long topTile); int numberOfTiles(); int numberOfTiles(long zoomLevel); long closestZoom(long zoomLevel); long minZoom(); long maxZoom(); long minColumn(long zoomLevel); long maxColumn(long zoomLevel); long minRow(long zoomLevel); long maxRow(long zoomLevel); void close(); File getFile(); void init(); static final String PRAGMA_JOURNAL_MODE_OFF; }
@Test public void testMBTilesInitTwice() throws IOException { MBTilesFile file = new MBTilesFile(); file.init(); file.init(); }