<extensions>true</extensions>
<configuration>
<instructions>
+ <Automatic-Module-Name>com.healthmarketscience.jackcess</Automatic-Module-Name>
</instructions>
</configuration>
<executions>
/**
* 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)
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;
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
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
}
}
- 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);