com.starla.smb
Class SMBCoreFile

java.lang.Object
  |
  +--com.starla.smb.SMBFile
        |
        +--com.starla.smb.SMBCoreFile

public class SMBCoreFile
extends SMBFile

SMB core file class


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

Close

public void Close()
           throws java.io.IOException
Close the remote file.
Throws:
java.io.IOException - If an I/O error occurs
Overrides:
Close in class SMBFile

Flush

public void Flush()
           throws java.io.IOException
Flush data to the remote file.
Throws:
java.io.IOException - If an I/O error occurs
Overrides:
Flush in class SMBFile

Read

public int Read(byte[] buf,
                int siz,
                int offset)
         throws java.io.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:
java.io.IOException - If an I/O error occurs
Overrides:
Read in class SMBFile

Write

public int Write(byte[] buf,
                 int siz,
                 int offset)
          throws java.io.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:
java.io.IOException - If an I/O error occurs
Overrides:
Write in class SMBFile