com.googlecode.mp4parser
Class ByteBufferByteChannel
java.lang.Object
com.googlecode.mp4parser.ByteBufferByteChannel
- All Implemented Interfaces:
- java.io.Closeable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
public class ByteBufferByteChannel
- extends java.lang.Object
- implements java.nio.channels.ByteChannel
Creates a ReadableByteChannel
that is backed by a ByteBuffer
.
Method Summary |
void |
close()
|
boolean |
isOpen()
|
int |
read(java.nio.ByteBuffer dst)
|
int |
write(java.nio.ByteBuffer src)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteBufferByteChannel
public ByteBufferByteChannel(java.nio.ByteBuffer byteBuffer)
read
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
- Specified by:
read
in interface java.nio.channels.ReadableByteChannel
- Throws:
java.io.IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface java.nio.channels.Channel
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface java.nio.channels.Channel
- Throws:
java.io.IOException
write
public int write(java.nio.ByteBuffer src)
throws java.io.IOException
- Specified by:
write
in interface java.nio.channels.WritableByteChannel
- Throws:
java.io.IOException
Copyright © 2012. All Rights Reserved.