public class BlockChannel extends Object implements SeekableByteChannel
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
SeekableByteChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
long |
size() |
SeekableByteChannel |
truncate(long size)
詰める.
|
int |
write(ByteBuffer src) |
public int read(ByteBuffer dst) throws IOException
read インタフェース内 ReadableByteChannelread インタフェース内 SeekableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write インタフェース内 SeekableByteChannelwrite インタフェース内 WritableByteChannelIOExceptionpublic long position()
throws IOException
position インタフェース内 SeekableByteChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position インタフェース内 SeekableByteChannelIOExceptionpublic long size()
throws IOException
size インタフェース内 SeekableByteChannelIOExceptionpublic SeekableByteChannel truncate(long size) throws IOException
truncate インタフェース内 SeekableByteChannelsize - 全体のサイズIOException - some I/O errorpublic void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose インタフェース内 ChannelIOExceptionCopyright © 2024. All rights reserved.