com.ebmwebsourcing.easycommons.io
Class ByteChannelDumpHelper

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.io.ByteChannelDumpHelper

public final class ByteChannelDumpHelper
extends java.lang.Object


Method Summary
static java.nio.channels.FileChannel createDumpFileChannel(java.io.File dumpFile)
           
static int dumpAndRead(java.nio.channels.ReadableByteChannel channelToDump, java.nio.ByteBuffer readBuffer, java.nio.channels.FileChannel dumpChannel)
           
static int dumpAndWrite(java.nio.channels.WritableByteChannel channelToDump, java.nio.ByteBuffer writeBuffer, java.nio.channels.FileChannel dumpChannel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDumpFileChannel

public static final java.nio.channels.FileChannel createDumpFileChannel(java.io.File dumpFile)

dumpAndRead

public static final int dumpAndRead(java.nio.channels.ReadableByteChannel channelToDump,
                                    java.nio.ByteBuffer readBuffer,
                                    java.nio.channels.FileChannel dumpChannel)
                             throws java.io.IOException
Throws:
java.io.IOException

dumpAndWrite

public static final int dumpAndWrite(java.nio.channels.WritableByteChannel channelToDump,
                                     java.nio.ByteBuffer writeBuffer,
                                     java.nio.channels.FileChannel dumpChannel)
                              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 Petals Link. All Rights Reserved.