|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.starla.smb.SMBFile
SMB file class.
This is an abstract class that defines the standard SMB file methods.
Field Summary | |
static int |
Closed
|
static int |
EndOfFile
Various file state flags. |
Method Summary | |
boolean |
atEndOfFile()
Check if the end of file has been reached. |
int |
Available()
Return the number of bytes that are available for reading without blocking the input stream. |
abstract void |
Close()
Close the remote file. |
abstract void |
Flush()
Flush any buffered data for this file. |
java.lang.String |
getFileName()
Get the file name string. |
java.lang.String |
getFilePath()
Get the file path string. |
int |
getFileSize()
Get the file size, in bytes. |
boolean |
isClosed()
Check if the file has been closed. |
boolean |
isDirectory()
|
boolean |
isHidden()
|
boolean |
isReadOnly()
Return the file attribute bit states. |
boolean |
isSystem()
|
abstract int |
Read(byte[] buf,
int siz,
int offset)
Read a block of data from the file. |
java.lang.String |
toString()
Return the SMB file as a string |
abstract int |
Write(byte[] buf,
int siz,
int offset)
Write a block of data to the file. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int EndOfFile
public static final int Closed
Method Detail |
public final boolean atEndOfFile()
public final int Available()
public abstract void Close() throws java.io.IOException
public abstract void Flush() throws java.io.IOException
public final java.lang.String getFileName()
public final java.lang.String getFilePath()
public final int getFileSize()
public final boolean isClosed()
public final boolean isDirectory()
public final boolean isHidden()
public final boolean isReadOnly()
public final boolean isSystem()
public abstract 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 java.lang.String toString()
public abstract 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 |