|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.bt747.j2se.system.J2SEFile
public final class J2SEFile
Implement the system interface of BT747File.
Constructor Summary | |
---|---|
J2SEFile(java.lang.String path)
Initializer called by the Interface. |
|
J2SEFile(java.lang.String path,
int mode)
Initializer called by the Interface. |
Method Summary | |
---|---|
boolean |
close()
Close the file. |
boolean |
createDir()
Creates a directory. |
boolean |
delete()
Deletes the file |
boolean |
exists()
Determine if the file exists. |
static java.lang.String |
getCardVolumePath()
|
int |
getLastError()
Error number of the last error that occurred. |
int |
getModificationTime()
Get modification time (UTC) |
java.lang.String |
getPath()
Get the file's path. |
int |
getSize()
Get the current file size. |
boolean |
isOpen()
Determine if the file handle is open. |
int |
readBytes(byte[] b,
int off,
int len)
Read bytes from file to buffer. |
int |
writeBytes(byte[] b,
int off,
int len)
Write bytes from byte buffer to file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public J2SEFile(java.lang.String path)
path
- The path to the file to operate on.public J2SEFile(java.lang.String path, int mode)
path
- The path to the file to operate on.mode
- The way the file should be opened.Method Detail |
---|
public int getSize()
BT747File
getSize
in interface BT747File
public boolean exists()
BT747File
exists
in interface BT747File
public boolean delete()
BT747File
delete
in interface BT747File
public boolean createDir()
BT747File
createDir
in interface BT747File
public boolean close()
BT747File
close
in interface BT747File
public int getLastError()
BT747File
getLastError
in interface BT747File
public boolean isOpen()
BT747File
isOpen
in interface BT747File
public int writeBytes(byte[] b, int off, int len)
BT747OutputStream
writeBytes
in interface BT747OutputStream
b
- Byte buffer.off
- Start offset in buffer to start writing to file.len
- Number of bytes to write to file.
public int readBytes(byte[] b, int off, int len)
BT747InputStream
readBytes
in interface BT747InputStream
b
- Byte buffer.off
- Start offset in buffer to start reading from file.len
- Number of bytes to read from file.
public static java.lang.String getCardVolumePath()
public java.lang.String getPath()
BT747File
getPath
in interface BT747File
public int getModificationTime()
BT747File
getModificationTime
in interface BT747File
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |