net.sourceforge.neurosdbm.db
Class NIOFile
java.lang.Object
net.sourceforge.neurosdbm.db.NIOFile
- public class NIOFile
- extends java.lang.Object
Constructor Summary |
NIOFile(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
private java.lang.String filename
BUFFER_SIZE
private static final int BUFFER_SIZE
- See Also:
- Constant Field Values
buffer
private java.nio.ByteBuffer buffer
channel
private java.nio.channels.WritableByteChannel channel
numberOfBuffers
private int numberOfBuffers
NIOFile
public NIOFile(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
append
public void append(byte value)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(int value)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(char value)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(Word word)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(WordPointer ptr)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
newBuffer
private void newBuffer()
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write()
throws java.io.IOException
- Throws:
java.io.IOException
position
public int position()
Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.