All Packages Class Hierarchy This Package Previous Next Index
Class com.starla.lite.SMBCoreFile
java.lang.Object
|
+----com.starla.lite.SMBFile
|
+----com.starla.lite.SMBCoreFile
- public class SMBCoreFile
- extends SMBFile
SMB core file class
-
Close()
- Close the remote file.
-
Flush()
- Flush data to the remote file.
-
Read(byte[], int, int)
- Read a block of data from the file.
-
Write(byte[], int, int)
- Write a block of data to the file.
Close
public void Close() throws IOException
- Close the remote file.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- Close in class SMBFile
Flush
public void Flush() throws IOException
- Flush data to the remote file.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- Flush in class SMBFile
Read
public int Read(byte buf[],
int siz,
int offset) throws IOException
- Read a block of data from the file.
- Parameters:
- buf - Byte buffer to receive the data.
- siz - Maximum length of data to receive.
- offset - Offset within buffer to place received data.
- Returns:
- Actual length of data received.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- Read in class SMBFile
Write
public int Write(byte buf[],
int siz,
int offset) throws IOException
- Write a block of data to the file.
- Parameters:
- buf - Byte buffer containing data to be written.
- siz - Length of data to be written.
- offset - Offset within buffer to start writing data from.
- Returns:
- Actual length of data written.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- Write in class SMBFile
All Packages Class Hierarchy This Package Previous Next Index