ByteOrder.java, [...]: Add code to load library with code for native methods if needed.
2003-10-21 Michael Koch <konqueror@gmx.de> * java/nio/ByteOrder.java, java/nio/DirectByteBufferImpl.java, java/nio/channels/FileChannelImpl.java: Add code to load library with code for native methods if needed. From-SVN: r72747
This commit is contained in:
parent
7c54b00335
commit
c4ff410a6b
4 changed files with 38 additions and 0 deletions
|
@ -38,10 +38,20 @@ exception statement from your version. */
|
|||
|
||||
package java.nio;
|
||||
|
||||
import gnu.classpath.Configuration;
|
||||
import gnu.gcj.RawData;
|
||||
|
||||
class DirectByteBufferImpl extends ByteBuffer
|
||||
{
|
||||
static
|
||||
{
|
||||
// load the shared library needed for native methods.
|
||||
if (Configuration.INIT_LOAD_LIBRARY)
|
||||
{
|
||||
System.loadLibrary ("javanio");
|
||||
}
|
||||
}
|
||||
|
||||
RawData address;
|
||||
private int offset;
|
||||
private boolean readOnly;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue