bt747.sys.interfaces
Interface BT747File

All Superinterfaces:
BT747InputStream, BT747OutputStream
All Known Subinterfaces:
BT747RAFile
All Known Implementing Classes:
J2SEFile, J2SERAFile, RAFile, WabaFile

public interface BT747File
extends BT747InputStream, BT747OutputStream

Defines the interface needed for the system translation functions.

Author:
Mario De Weerd

Method Summary
 boolean close()
          Close the file.
 boolean createDir()
          Creates a directory.
 boolean delete()
          Deletes the file
 boolean exists()
          Determine if the file exists.
 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.
 
Methods inherited from interface bt747.sys.interfaces.BT747InputStream
readBytes
 
Methods inherited from interface bt747.sys.interfaces.BT747OutputStream
writeBytes
 

Method Detail

getSize

int getSize()
Get the current file size.

Returns:
File size.

exists

boolean exists()
Determine if the file exists.

Returns:
true when the file exists.

delete

boolean delete()
Deletes the file

Returns:
true if success.

createDir

boolean createDir()
Creates a directory.

Returns:
true if success.

close

boolean close()
Close the file.

Returns:
true if success.

isOpen

boolean isOpen()
Determine if the file handle is open.

Returns:
true when open.

getPath

java.lang.String getPath()
Get the file's path.

Returns:
File path as a string.

getLastError

int getLastError()
Error number of the last error that occurred.

Returns:
The last error type.

getModificationTime

int getModificationTime()
Get modification time (UTC)