| Modifier and Type | Field and Description |
|---|---|
| private MappedByteBuffer | |
| private int | |
| private long | |
| private MappedByteBuffer[] | |
| private boolean | |
| private FileChannel | |
| private long | |
| private RandomAccessFile | |
| private FileDescriptor | |
| private long | |
| private static final String | |
| pack-priv static final long | |
| pack-priv static final int | |
| pack-priv static final int | |
| private final EventLogInterface | |
| private final long | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | RAFileNIO(EventLogInterface logger, String name, boolean readOnly, long requiredLength, long maxLength)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| private boolean | |
| public boolean | |
| public Database | |
| public long | |
| public boolean | |
| public long | |
| private void | |
| private void | |
| public int | |
| public void | |
| public int | |
| public long | |
| public void | |
| private void | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void |
| buffer | back to summary |
|---|---|
| private MappedByteBuffer buffer | |
| bufferLength | back to summary |
|---|---|
| private int bufferLength | |
| bufferPosition | back to summary |
|---|---|
| private long bufferPosition | |
| buffers | back to summary |
|---|---|
| private MappedByteBuffer[] buffers | |
| buffersModified | back to summary |
|---|---|
| private boolean buffersModified | |
| channel | back to summary |
|---|---|
| private FileChannel channel | |
| currentPosition | back to summary |
|---|---|
| private long currentPosition | |
| file | back to summary |
|---|---|
| private RandomAccessFile file | |
| fileDescriptor | back to summary |
|---|---|
| private FileDescriptor fileDescriptor | |
| fileLength | back to summary |
|---|---|
| private long fileLength | |
| JVM_ERROR | back to summary |
|---|---|
| private static final String JVM_ERROR | |
| largeBufferMask | back to summary |
|---|---|
| pack-priv static final long largeBufferMask | |
| largeBufferScale | back to summary |
|---|---|
| pack-priv static final int largeBufferScale | |
| largeBufferSize | back to summary |
|---|---|
| pack-priv static final int largeBufferSize | |
| logger | back to summary |
|---|---|
| private final EventLogInterface logger | |
| maxLength | back to summary |
|---|---|
| private final long maxLength | |
| readOnly | back to summary |
|---|---|
| private final boolean readOnly | |
| RAFileNIO | back to summary |
|---|---|
| pack-priv RAFileNIO(EventLogInterface logger, String name, boolean readOnly, long requiredLength, long maxLength) throws IOException | |
| checkBuffer | back to summary |
|---|---|
| private void checkBuffer() checks for two types of potential errors before reads and writes and fixes them. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. | |
| enlargeFile | back to summary |
|---|---|
| private boolean enlargeFile(long newFileLength) | |
| ensureLength | back to summary |
|---|---|
| public boolean ensureLength(long newLength) Implements org. | |
| getDatabase | back to summary |
|---|---|
| public Database getDatabase() | |
| getFilePointer | back to summary |
|---|---|
| public long getFilePointer() throws IOException Implements org. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Implements org. | |
| length | back to summary |
|---|---|
| public long length() throws IOException Implements org. | |
| positionBufferMove | back to summary |
|---|---|
| private void positionBufferMove(int relOffset) | |
| positionBufferSeek | back to summary |
|---|---|
| private void positionBufferSeek(long offset) | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements org. | |
| read | back to summary |
|---|---|
| public void read(byte[] b, int offset, int length) throws IOException Implements org. | |
| readInt | back to summary |
|---|---|
| public int readInt() throws IOException Implements org. | |
| readLong | back to summary |
|---|---|
| public long readLong() throws IOException Implements org. | |
| seek | back to summary |
|---|---|
| public void seek(long newPos) throws IOException Implements org. | |
| setCurrentBuffer | back to summary |
|---|---|
| private void setCurrentBuffer(long offset) | |
| setLength | back to summary |
|---|---|
| public boolean setLength(long newLength) Implements org. | |
| synch | back to summary |
|---|---|
| public void synch() Implements org. | |
| write | back to summary |
|---|---|
| public void write(byte[] b, int offset, int length) throws IOException Implements org. | |
| writeInt | back to summary |
|---|---|
| public void writeInt(int i) throws IOException Implements org. | |
| writeLong | back to summary |
|---|---|
| public void writeLong(long i) throws IOException Implements org. | |