public class ChannelBlock extends OverBlock.AbstractOverBlock implements Closeable
OverBlock.AbstractOverBlock, OverBlock.AbstractSubOverBlock, OverBlock.SubOverBlockReadableBlock.AbstractReadableBlock, ReadableBlock.AbstractSubReadableBlock, ReadableBlock.BlockInput, ReadableBlock.SubReadableBlockBinInput.XorInputInput.AbstractInputOutput.AbstractOutput| コンストラクタと説明 |
|---|
ChannelBlock(SeekableByteChannel ch) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
long |
backLength()
先頭からの位置.
|
int |
backRead(byte[] buf,
int offset,
int length)
逆から読む.
|
void |
close() |
ChannelBlock |
get(long index,
byte[] b,
int offset,
int length)
バッファに複製する.
|
long |
length()
これから読み書きできる長さ.
|
static OverBlock |
over(File file)
読み書きできる形のBlockで開く.
|
static OverBlock |
over(Path path) |
static OverBlock |
over(SeekableByteChannel ch) |
int |
read(byte[] d,
int offset,
int length)
配列の一部に読む.
|
long |
seek(long offset)
移動.
|
static ReadableBlock |
wrap(File file)
読む形で開く.
|
static ReadableBlock |
wrap(Path path)
読み専用でBlockにする.
|
void |
write(byte[] data,
int offset,
int length)
上書き.
|
backWrite, flip, getInputStream, put, put, writebackWrite, backWrite, backWrite, backWrite, dbackWrite, dwrite, flush, getBackOutputStream, getOutputStream, isOpen, put, put, put, put, write, write, write, writeback, backRead, backRead, backReadPacket, backSize, get, get, get, get, getBackInputStream, read, read, read, readPacket, revGet, revGet, revGet, size, skip, toByteArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannel, readBlock, sub, wrap, wrap, wrap, wrap, wraparray, arrayOffset, hasArray, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapget, getget, get, get, get, read, read, read, read, readPacket, size, skip, skipImpl, splitImpl, toByteArraybackWrite, backWrite, backWrite, backWrite, backWrite, dbackWrite, flush, getBackOutputStreamdwrite, getOutputStream, put, put, write, write, write, write, writeback, backImpl, backRead, backRead, backReadPacket, backSize, getBackInputStream, revGet, splitImplput, putreadpublic ChannelBlock(SeekableByteChannel ch)
public static ReadableBlock wrap(File file) throws FileNotFoundException
wrap インタフェース内 ReadableBlockfile - ふぁいるFileNotFoundExceptionpublic static ReadableBlock wrap(Path path) throws IOException
path - nio な pathIOExceptionpublic static OverBlock over(File file) throws IOException
file - ファイルIOExceptionpublic static OverBlock over(Path path) throws IOException
IOExceptionpublic static OverBlock over(SeekableByteChannel ch) throws IOException
IOExceptionpublic long backLength()
backLength インタフェース内 RevInputpublic int read(byte[] d,
int offset,
int length)
Inputpublic ChannelBlock get(long index, byte[] b, int offset, int length)
OverBlockget インタフェース内 OverBlockget インタフェース内 ReadableBlockget インタフェース内 IndexInputget クラス内 OverBlock.AbstractOverBlockindex - 位置b - 複製先offset - バッファ位置length - 長さpublic int backRead(byte[] buf,
int offset,
int length)
public void write(byte[] data,
int offset,
int length)
OverBlock.AbstractOverBlockwrite インタフェース内 Outputwrite クラス内 OverBlock.AbstractOverBlockdata - データoffset - データ位置length - データ長public void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose インタフェース内 Channelclose クラス内 BaseIOExceptionCopyright © 2024. All rights reserved.