Class FileLib


  • public class FileLib
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileLib()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void close​(java.nio.channels.FileChannel channel)  
      static java.nio.channels.FileChannel openManaged​(java.lang.String filename)  
      static java.nio.channels.FileChannel openManaged​(java.lang.String filename, java.lang.String mode)  
      static java.nio.channels.FileChannel openUnmanaged​(java.lang.String filename)  
      static java.nio.channels.FileChannel openUnmanaged​(java.lang.String filename, java.lang.String mode)  
      static long size​(java.nio.channels.FileChannel channel)  
      static void sync​(java.nio.channels.FileChannel channel)  
      static void truncate​(java.nio.channels.FileChannel channel, long posn)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileLib

        public FileLib()
    • Method Detail

      • openUnmanaged

        public static java.nio.channels.FileChannel openUnmanaged​(java.lang.String filename)
      • openUnmanaged

        public static java.nio.channels.FileChannel openUnmanaged​(java.lang.String filename,
                                                                  java.lang.String mode)
      • openManaged

        public static java.nio.channels.FileChannel openManaged​(java.lang.String filename)
      • openManaged

        public static java.nio.channels.FileChannel openManaged​(java.lang.String filename,
                                                                java.lang.String mode)
      • size

        public static long size​(java.nio.channels.FileChannel channel)
      • truncate

        public static void truncate​(java.nio.channels.FileChannel channel,
                                    long posn)
      • close

        public static void close​(java.nio.channels.FileChannel channel)
      • sync

        public static void sync​(java.nio.channels.FileChannel channel)