public class TiledChannel extends Object implements org.jcodec.common.io.SeekableByteChannel
| Constructor and Description |
|---|
TiledChannel(org.jcodec.common.io.SeekableByteChannel ch) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
int |
read(ByteBuffer buffer) |
org.jcodec.common.io.SeekableByteChannel |
setPosition(long newPosition) |
long |
size() |
org.jcodec.common.io.SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer buffer) |
public long position()
throws IOException
position in interface org.jcodec.common.io.SeekableByteChannelIOExceptionpublic org.jcodec.common.io.SeekableByteChannel setPosition(long newPosition)
throws IOException
setPosition in interface org.jcodec.common.io.SeekableByteChannelIOExceptionpublic long size()
throws IOException
size in interface org.jcodec.common.io.SeekableByteChannelIOExceptionpublic org.jcodec.common.io.SeekableByteChannel truncate(long size)
throws IOException
truncate in interface org.jcodec.common.io.SeekableByteChannelIOExceptionpublic int read(ByteBuffer buffer) throws IOException
read in interface ReadableByteChannelIOExceptionpublic int write(ByteBuffer buffer) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2019. All rights reserved.