com.coremedia.iso
Class ChannelHelper
java.lang.Object
com.coremedia.iso.ChannelHelper
public class ChannelHelper
- extends java.lang.Object
Method Summary |
static void |
close(java.nio.channels.SelectionKey key)
|
static void |
readFully(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buf)
|
static int |
readFully(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buf,
int length)
|
static java.nio.ByteBuffer |
readFully(java.nio.channels.ReadableByteChannel channel,
long size)
|
static void |
writeFully(java.nio.channels.WritableByteChannel channel,
java.nio.ByteBuffer buf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelHelper
public ChannelHelper()
readFully
public static java.nio.ByteBuffer readFully(java.nio.channels.ReadableByteChannel channel,
long size)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
public static void readFully(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
public static int readFully(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buf,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
writeFully
public static void writeFully(java.nio.channels.WritableByteChannel channel,
java.nio.ByteBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
close
public static void close(java.nio.channels.SelectionKey key)
Copyright © 2012. All Rights Reserved.