public class FileLib extends Object
| Constructor and Description |
|---|
FileLib() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(FileChannel channel) |
static FileChannel |
openManaged(String filename) |
static FileChannel |
openManaged(String filename,
String mode) |
static FileChannel |
openUnmanaged(String filename) |
static FileChannel |
openUnmanaged(String filename,
String mode) |
static long |
size(FileChannel channel) |
static void |
sync(FileChannel channel) |
static void |
truncate(FileChannel channel,
long posn) |
public static FileChannel openUnmanaged(String filename)
public static FileChannel openUnmanaged(String filename, String mode)
public static FileChannel openManaged(String filename)
public static FileChannel openManaged(String filename, String mode)
public static long size(FileChannel channel)
public static void truncate(FileChannel channel, long posn)
public static void close(FileChannel channel)
public static void sync(FileChannel channel)
Licensed under the Apache License, Version 2.0