public class NIOUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
NIOUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clean(java.nio.MappedByteBuffer buffer) |
static void |
copyFile(java.io.File f1,
java.io.File f2)
Copy f1 into f2 (mkdirs for f2).
|
static void |
copyFile(java.lang.String filename1,
java.lang.String filename2)
Copy filename1 into filename2 (mkdirs for filename2)
|
static boolean |
goToLine(java.nio.ByteBuffer buffer,
long line)
Move the position of the given ByteBuffer to the given line.
|
static void |
main(java.lang.String[] args) |
static void |
main2(java.lang.String[] args) |
static void |
mainTest(java.lang.String[] args) |
public static final java.lang.String REVISION
public static void copyFile(java.lang.String filename1, java.lang.String filename2) throws java.io.IOException
filename1
- the source filefilename2
- the target filejava.io.IOException
public static void copyFile(java.io.File f1, java.io.File f2) throws java.io.IOException
f1
- the source filef2
- the target filejava.io.IOException
public static boolean goToLine(java.nio.ByteBuffer buffer, long line)
buffer
- the buffer to move the position.line
- the line to be reachedpublic static void clean(java.nio.MappedByteBuffer buffer) throws java.lang.Exception
java.lang.Exception
public static void mainTest(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void main2(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2001-2010 Jalios SA. All Rights Reserved.