bt747.sys
Class File

java.lang.Object
  extended by bt747.sys.File
Direct Known Subclasses:
RAFile

public class File
extends java.lang.Object

Author:
Mario De Weerd

Field Summary
static int CREATE
          Create the file and open as write.
static int DONT_OPEN
          Mode: Do not open the file.
static int READ_ONLY
          Mode: Opens the file as read only.
static int READ_WRITE
          Mode: Open the file as read+write - avoid.
static char separatorChar
           
static java.lang.String separatorStr
           
static int WRITE_ONLY
          Mode: Opent the file as write only, append.
 
Constructor Summary
File(BT747Path path)
           
File(BT747Path path, int mode)
           
 
Method Summary
 boolean close()
           
 boolean createDir()
           
 boolean delete()
           
 boolean exists()
           
 int getLastError()
           
 int getModificationTime()
           
 java.lang.String getPath()
           
 int getSize()
           
static boolean isAvailable()
           
 boolean isOpen()
           
 int readBytes(byte[] b, int off, int len)
           
 int writeBytes(byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DONT_OPEN

public static final int DONT_OPEN
Mode: Do not open the file.

See Also:
Constant Field Values

READ_ONLY

public static final int READ_ONLY
Mode: Opens the file as read only.

See Also:
Constant Field Values

WRITE_ONLY

public static final int WRITE_ONLY
Mode: Opent the file as write only, append.

See Also:
Constant Field Values

READ_WRITE

public static final int READ_WRITE
Mode: Open the file as read+write - avoid.

See Also:
Constant Field Values

CREATE

public static final int CREATE
Create the file and open as write.

See Also:
Constant Field Values

separatorChar

public static final char separatorChar
See Also:
Constant Field Values

separatorStr

public static final java.lang.String separatorStr
See Also:
Constant Field Values
Constructor Detail

File

public File(BT747Path path)

File

public File(BT747Path path,
            int mode)
Method Detail

getSize

public final int getSize()

exists

public final boolean exists()

delete

public final boolean delete()

createDir

public final boolean createDir()

isAvailable

public static final boolean isAvailable()

close

public final boolean close()

isOpen

public final boolean isOpen()

writeBytes

public final int writeBytes(byte[] b,
                            int off,
                            int len)

readBytes

public final int readBytes(byte[] b,
                           int off,
                           int len)

getPath

public final java.lang.String getPath()

getLastError

public final int getLastError()
Returns:
the lastError

getModificationTime

public final int getModificationTime()