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. | 
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.IOExceptionpublic static void copyFile(java.io.File f1,
                            java.io.File f2)
                     throws java.io.IOException
f1 - the source filef2 - the target filejava.io.IOExceptionpublic 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.ExceptionCopyright © 2001-2019 Jalios SA. All Rights Reserved.