Browse Source

add convenience method for opening with Path

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1302 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/jackcess-3.5.0
James Ahlborn 4 years ago
parent
commit
6460b47598
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java

+ 14
- 0
src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java View File

@@ -306,6 +306,20 @@ public class DatabaseBuilder
return new DatabaseBuilder(mdbFile).open();
}

/**
* Open an existing Database. If the existing file is not writeable, the
* file will be opened read-only. Auto-syncing is enabled for the returned
* Database.
*
* @param mdbFile File containing the database
*
* @see DatabaseBuilder for more flexible Database opening
* @usage _general_method_
*/
public static Database open(Path mdbFile) throws IOException {
return new DatabaseBuilder(mdbFile).open();
}

/**
* Create a new Database for the given fileFormat
*

Loading…
Cancel
Save