com.ebmwebsourcing.easycommons.io
Class ByteChannelDumpHelper

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

public final class ByteChannelDumpHelper
extends Object

Author:
Marc Jambert - EBM WebSourcing

Method Summary
static FileChannel createDumpFileChannel(File dumpFile)
           
static int dumpAndRead(ReadableByteChannel channelToDump, ByteBuffer readBuffer, FileChannel dumpChannel)
           
static int dumpAndWrite(WritableByteChannel channelToDump, ByteBuffer writeBuffer, 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 FileChannel createDumpFileChannel(File dumpFile)

dumpAndRead

public static final int dumpAndRead(ReadableByteChannel channelToDump,
                                    ByteBuffer readBuffer,
                                    FileChannel dumpChannel)
                             throws IOException
Throws:
IOException

dumpAndWrite

public static final int dumpAndWrite(WritableByteChannel channelToDump,
                                     ByteBuffer writeBuffer,
                                     FileChannel dumpChannel)
                              throws IOException
Throws:
IOException


Copyright © 2015 Petals Link. All rights reserved.