ch.aplu.nxt
Class FileInfo

java.lang.Object
  extended by ch.aplu.nxt.FileInfo

public class FileInfo
extends java.lang.Object

Structure that gives information about a leJOS NXJ file. Taken from the leJOS library (lejos.sourceforge.net), with thanks to the author.


Field Summary
 byte fileHandle
          The handle for accessing the file.
 java.lang.String fileName
          The name of the file - up to 20 characters.
 int fileSize
          The size of the file in bytes.
 int startPage
          The start page of the file in flash memory.
 byte status
          The status of the file - not used.
 
Constructor Summary
FileInfo(java.lang.String fileName)
          Constructs a FileInfo instance with given file name.
 
Method Summary
 void show()
          Show all file information in the debug console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public java.lang.String fileName
The name of the file - up to 20 characters.


fileHandle

public byte fileHandle
The handle for accessing the file.


fileSize

public int fileSize
The size of the file in bytes.


status

public byte status
The status of the file - not used.


startPage

public int startPage
The start page of the file in flash memory.

Constructor Detail

FileInfo

public FileInfo(java.lang.String fileName)
Constructs a FileInfo instance with given file name.

Parameters:
fileName - the file name stored in the instance variable fileName
Method Detail

show

public void show()
Show all file information in the debug console.