Class Channels2


  • public final class Channels2
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeFully​(java.nio.channels.WritableByteChannel channel, java.nio.ByteBuffer buffer)  
      static void writeFullyAtPosition​(java.nio.channels.FileChannel channel, java.nio.ByteBuffer buffer, long position)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • writeFully

        public static void writeFully​(java.nio.channels.WritableByteChannel channel,
                                      java.nio.ByteBuffer buffer)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writeFullyAtPosition

        public static void writeFullyAtPosition​(java.nio.channels.FileChannel channel,
                                                java.nio.ByteBuffer buffer,
                                                long position)
                                         throws java.io.IOException
        Throws:
        java.io.IOException