com.coremedia.iso
Class ChannelHelper

java.lang.Object
  extended by com.coremedia.iso.ChannelHelper

public class ChannelHelper
extends Object


Constructor Summary
ChannelHelper()
           
 
Method Summary
static void close(SelectionKey key)
           
static void readFully(ReadableByteChannel channel, ByteBuffer buf)
           
static int readFully(ReadableByteChannel channel, ByteBuffer buf, int length)
           
static ByteBuffer readFully(ReadableByteChannel channel, long size)
           
static void writeFully(WritableByteChannel channel, ByteBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelHelper

public ChannelHelper()
Method Detail

readFully

public static ByteBuffer readFully(ReadableByteChannel channel,
                                   long size)
                            throws IOException
Throws:
IOException

readFully

public static void readFully(ReadableByteChannel channel,
                             ByteBuffer buf)
                      throws IOException
Throws:
IOException

readFully

public static int readFully(ReadableByteChannel channel,
                            ByteBuffer buf,
                            int length)
                     throws IOException
Throws:
IOException

writeFully

public static void writeFully(WritableByteChannel channel,
                              ByteBuffer buf)
                       throws IOException
Throws:
IOException

close

public static void close(SelectionKey key)


Copyright © 2012. All Rights Reserved.