Browse Source

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
tags/jackcess-4.0.0
James Ahlborn 3 years ago
parent
commit
e358751fe0

+ 1
- 0
pom.xml View File

@@ -142,6 +142,7 @@
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>com.healthmarketscience.jackcess</Automatic-Module-Name>
</instructions>
</configuration>
<executions>

+ 2
- 1
src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java View File

@@ -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)

+ 2
- 2
src/main/java/com/healthmarketscience/jackcess/impl/JetFormat.java View File

@@ -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;


+ 2
- 1
src/main/java/com/healthmarketscience/jackcess/impl/PageChannel.java View File

@@ -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

+ 2
- 2
src/test/java/com/healthmarketscience/jackcess/TestUtil.java View File

@@ -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);

Loading…
Cancel
Save