public class ByteArrayReadableSeekableByteChannel extends Object implements SeekableByteChannel
| コンストラクタと説明 |
|---|
ByteArrayReadableSeekableByteChannel(byte[] byteArray) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 ByteArrayReadableSeekableByteChannel(byte[] byteArray)
public void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose インタフェース内 ChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read インタフェース内 ReadableByteChannelread インタフェース内 SeekableByteChannelIOExceptionpublic long position()
throws IOException
position インタフェース内 SeekableByteChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position インタフェース内 SeekableByteChannelIOExceptionpublic long size()
throws IOException
size インタフェース内 SeekableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write インタフェース内 SeekableByteChannelwrite インタフェース内 WritableByteChannelIOExceptionpublic SeekableByteChannel truncate(long size) throws IOException
truncate インタフェース内 SeekableByteChannelIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.