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
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
インタフェース内 Channel
IOException
public int read(ByteBuffer dst) throws IOException
read
インタフェース内 ReadableByteChannel
read
インタフェース内 SeekableByteChannel
IOException
public long position() throws IOException
position
インタフェース内 SeekableByteChannel
IOException
public SeekableByteChannel position(long newPosition) throws IOException
position
インタフェース内 SeekableByteChannel
IOException
public long size() throws IOException
size
インタフェース内 SeekableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
インタフェース内 SeekableByteChannel
write
インタフェース内 WritableByteChannel
IOException
public SeekableByteChannel truncate(long size) throws IOException
truncate
インタフェース内 SeekableByteChannel
IOException
Copyright © 2018 The Apache Software Foundation. All rights reserved.