パッケージ jcifs
インタフェース SmbRandomAccess
-
- すべてのスーパーインタフェース:
AutoCloseable,DataInput,DataOutput
- 既知の実装クラスのリスト:
SmbRandomAccessFile
public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable
File access that exposes random access semantics- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 voidclose()Close the filelonggetFilePointer()Current position in filelonglength()Get the current file lengthintread()Read a single byte from the current positionintread(byte[] b)Read into buffer from current positionintread(byte[] b, int off, int len)Read into buffer from current positionvoidseek(long pos)Seek to new positionvoidsetLength(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
void close() throws SmbExceptionClose the file- 定義:
closeインタフェース内AutoCloseable- 例外:
SmbException
-
read
int read() throws SmbException
Read a single byte from the current position- 戻り値:
- read byte, -1 if EOF
- 例外:
SmbException
-
read
int read(byte[] b) throws SmbException
Read into buffer from current position- パラメータ:
b- buffer- 戻り値:
- number of bytes read
- 例外:
SmbException
-
read
int read(byte[] b, int off, int len) throws SmbExceptionRead 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
long length() throws SmbExceptionGet the current file length- 戻り値:
- file length
- 例外:
SmbException
-
setLength
void setLength(long newLength) throws SmbExceptionExpand/truncate file length- パラメータ:
newLength- new file length- 例外:
SmbException
-
-