aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2021-01-08 01:17:20 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2021-01-08 01:17:20 +0000
commite358751fe03e48b2d53fa1c104ee2623bc14c58c (patch)
tree5a45214ea79b98d44c5b60e2b5370e430dd00be9 /src
parent38f79d88d401051f77127b1b8392f20f10dcf2de (diff)
downloadjackcess-e358751fe03e48b2d53fa1c104ee2623bc14c58c.tar.gz
jackcess-e358751fe03e48b2d53fa1c104ee2623bc14c58c.zip
make some useful things public; add auto module name to manifest
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1348 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java4
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java3
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/TestUtil.java4
4 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
index 532eb65..1ff129e 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
@@ -2149,8 +2149,9 @@ public class DatabaseImpl implements Database, DateTimeContext
/**
* Returns the password mask retrieved from the given header page and
* format, or {@code null} if this format does not use a password mask.
+ * @usage _advanced_method_
*/
- static byte[] getPasswordMask(ByteBuffer buffer, JetFormat format)
+ public static byte[] getPasswordMask(ByteBuffer buffer, JetFormat format)
{
// get extra password mask if necessary (the extra password mask is
// generated from the database creation date stored in the header)
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java b/src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java
index 2d2f0af..8a3aa64 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java
@@ -63,9 +63,9 @@ public abstract class JetFormat {
private static final byte CODE_VERSION_16 = 0x5;
/** location of the engine name in the header */
- static final int OFFSET_ENGINE_NAME = 0x4;
+ public static final int OFFSET_ENGINE_NAME = 0x4;
/** length of the engine name in the header */
- static final int LENGTH_ENGINE_NAME = 0xF;
+ public static final int LENGTH_ENGINE_NAME = 0xF;
/** amount of initial data to be read to determine database type */
private static final int HEADER_LENGTH = 21;
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java b/src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java
index 101a3e0..efd8be2 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java
@@ -32,7 +32,8 @@ public class PageChannel implements Channel, Flushable {
static final int INVALID_PAGE_NUMBER = -1;
- static final ByteOrder DEFAULT_BYTE_ORDER = ByteOrder.LITTLE_ENDIAN;
+ /** default byte order of access mdb files */
+ public static final ByteOrder DEFAULT_BYTE_ORDER = ByteOrder.LITTLE_ENDIAN;
/** invalid page header, used when deallocating old pages. data pages
generally have 4 interesting bytes at the beginning which we want to
diff --git a/src/test/java/com/healthmarketscience/jackcess/TestUtil.java b/src/test/java/com/healthmarketscience/jackcess/TestUtil.java
index d4bccd8..e10fd39 100644
--- a/src/test/java/com/healthmarketscience/jackcess/TestUtil.java
+++ b/src/test/java/com/healthmarketscience/jackcess/TestUtil.java
@@ -415,7 +415,7 @@ public class TestUtil
Assert.assertEquals(expectedLdt, found);
}
- static void copyFile(File srcFile, File dstFile)
+ public static void copyFile(File srcFile, File dstFile)
throws IOException
{
// FIXME should really be using commons io FileUtils here, but don't want
@@ -441,7 +441,7 @@ public class TestUtil
}
}
- static File createTempFile(boolean keep) throws Exception {
+ public static File createTempFile(boolean keep) throws Exception {
File tmp = File.createTempFile("databaseTest", ".mdb");
if(keep) {
System.out.println("Created " + tmp);