|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.media.util.ByteBufferUtils
This class implements methods for creating an input or output stream on a ByteBuffer.
Obtain or create a ByteBuffer:
ByteBuffer buf = ByteBuffer.allocate(10);
Create an output stream on the ByteBuffer:
OutputStream os = newOutputStream(buf);
Create an input stream on the ByteBuffer:
InputStream is = newInputStream(buf);
Constructor Summary | |
ByteBufferUtils()
|
Method Summary | |
static java.io.InputStream |
newInputStream(java.nio.ByteBuffer buf)
Returns an input stream for a ByteBuffer. |
static java.io.OutputStream |
newOutputStream(java.nio.ByteBuffer buf)
Returns an output stream for a ByteBuffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteBufferUtils()
Method Detail |
public static java.io.OutputStream newOutputStream(java.nio.ByteBuffer buf)
public static java.io.InputStream newInputStream(java.nio.ByteBuffer buf)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |