パッケージ jcifs
インタフェース SmbRandomAccess
- すべてのスーパーインタフェース:
AutoCloseable
,DataInput
,DataOutput
- 既知の実装クラスのリスト:
SmbRandomAccessFile
public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable
File access that exposes random access semantics
- 作成者:
- mbechler
-
メソッドの概要
修飾子とタイプ メソッド 説明 void
close()
Close the filelong
getFilePointer()
Current position in filelong
length()
Get the current file lengthint
read()
Read a single byte from the current positionint
read(byte[] b)
Read into buffer from current positionint
read(byte[] b, int off, int len)
Read into buffer from current positionvoid
seek(long pos)
Seek to new positionvoid
setLength(long newLength)
Expand/truncate file lengthインタフェースから継承されたメソッド java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
インタフェースから継承されたメソッド java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
メソッドの詳細
-
close
Close the file- 定義:
close
インタフェース内AutoCloseable
- 例外:
SmbException
-
read
Read a single byte from the current position- 戻り値:
- read byte, -1 if EOF
- 例外:
SmbException
-
read
Read into buffer from current position- パラメータ:
b
- buffer- 戻り値:
- number of bytes read
- 例外:
SmbException
-
read
Read into buffer from current position- パラメータ:
b
- bufferoff
- offset into bufferlen
- read up to len bytes- 戻り値:
- number of bytes read
- 例外:
SmbException
-
getFilePointer
long getFilePointer()Current position in file- 戻り値:
- current position
-
seek
void seek(long pos)Seek to new position- パラメータ:
pos
-
-
length
Get the current file length- 戻り値:
- file length
- 例外:
SmbException
-
setLength
Expand/truncate file length- パラメータ:
newLength
- new file length- 例外:
SmbException
-