simtools.util.test
Class TestStreamMemoryBuffer.DumpChannel
java.lang.Object
simtools.util.test.TestStreamMemoryBuffer.DumpChannel
- All Implemented Interfaces:
- java.io.Closeable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
- Enclosing class:
- TestStreamMemoryBuffer
public static class TestStreamMemoryBuffer.DumpChannel
- extends java.lang.Object
- implements java.nio.channels.ByteChannel
A byte channel to validate memory buffer saving
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 |
TestStreamMemoryBuffer.DumpChannel
public TestStreamMemoryBuffer.DumpChannel()
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
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
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface java.nio.channels.Channel
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