47 |
import java.nio.ByteBuffer; |
import java.nio.ByteBuffer; |
48 |
import java.nio.MappedByteBuffer; |
import java.nio.MappedByteBuffer; |
49 |
import java.nio.MappedByteBufferImpl; |
import java.nio.MappedByteBufferImpl; |
50 |
|
import gnu.classpath.Configuration; |
51 |
import gnu.classpath.RawData; |
import gnu.classpath.RawData; |
52 |
|
|
53 |
/** |
/** |
60 |
|
|
61 |
public class FileChannelImpl extends FileChannel |
public class FileChannelImpl extends FileChannel |
62 |
{ |
{ |
63 |
|
static |
64 |
|
{ |
65 |
|
// load the shared library needed for native methods. |
66 |
|
if (Configuration.INIT_LOAD_LIBRARY) |
67 |
|
{ |
68 |
|
System.loadLibrary ("javanio"); |
69 |
|
} |
70 |
|
} |
71 |
|
|
72 |
public RawData map_address; |
public RawData map_address; |
73 |
|
|
74 |
int length; |
int length; |