2004-04-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java (static): Removed, not needed anymore. * gnu/java/nio/channels/FileChannelImpl.java (FileChannelImpl): Made final. (mode): Made private. (READ, WRITE, APPEND): Made public. (EXCL, SYNC, DSYNC): Likewise. (static): Load native JNI library, when needed. (length): Unused, removed. (available): Made public. (implPosition): Throws IOException. (seek): Likewise. (implTruncate): Likewise. (unlock): Likewise. (lock): Likewise. From-SVN: r80891
This commit is contained in:
parent
7431acbe5a
commit
0150fc2287
3 changed files with 61 additions and 38 deletions
|
@ -38,9 +38,8 @@ exception statement from your version. */
|
|||
|
||||
package gnu.java.nio;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.IOException;
|
||||
import java.nio.channels.*;
|
||||
import java.nio.channels.FileLock;
|
||||
import gnu.classpath.Configuration;
|
||||
import gnu.java.nio.channels.FileChannelImpl;
|
||||
|
||||
|
@ -50,15 +49,6 @@ import gnu.java.nio.channels.FileChannelImpl;
|
|||
*/
|
||||
public class FileLockImpl extends FileLock
|
||||
{
|
||||
static
|
||||
{
|
||||
// load the shared library needed for native methods.
|
||||
if (Configuration.INIT_LOAD_LIBRARY)
|
||||
{
|
||||
System.loadLibrary ("javanio");
|
||||
}
|
||||
}
|
||||
|
||||
private FileChannelImpl ch;
|
||||
|
||||
public FileLockImpl (FileChannelImpl channel, long position,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue