|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.starla.smb.SMBFile | +--com.starla.smb.SMBCIFSFile
SMB CIFS file class
An SMB file provides read and/or write access to a remote file.
An SMBFile is created via an SMBDiskSession object, using the SMBDiskSession.OpenFile () method.
A remote file may also be opened as an InputStream or OutputStream using the SMBDiskSession.OpenInputStream () and SMBDiskSession.OpenOutputStream () methods.
Fields inherited from class com.starla.smb.SMBFile |
Closed,
EndOfFile |
Method Summary | |
void |
Close()
Close the remote file. |
void |
Flush()
Flush data to the remote file. |
int |
Read(byte[] buf,
int siz,
int offset)
Read a block of data from the file. |
int |
Write(byte[] buf,
int siz,
int offset)
Write a block of data to the file. |
Methods inherited from class com.starla.smb.SMBFile |
atEndOfFile,
Available,
getFileName,
getFilePath,
getFileSize,
isClosed,
isDirectory,
isHidden,
isReadOnly,
isSystem,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public final void Close() throws java.io.IOException
public final void Flush() throws java.io.IOException
public final int Read(byte[] buf, int siz, int offset) throws java.io.IOException
buf
- Byte buffer to receive the data.siz
- Maximum length of data to receive.offset
- Offset within buffer to place received data.public final int Write(byte[] buf, int siz, int offset) throws java.io.IOException
buf
- Byte buffer containing data to be written.siz
- Length of data to be written.offset
- Offset within buffer to start writing data from.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |