diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java b/src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java index da9681e..6c46729 100644 --- a/src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java +++ b/src/main/java/com/healthmarketscience/jackcess/DatabaseBuilder.java @@ -307,6 +307,20 @@ public class DatabaseBuilder } /** + * 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 * * @param fileFormat version of new database. |