Class FileObject
java.lang.Object
|
+----FileObject
- public class FileObject
- extends Object
Contains save and open methods for FileObject.
Format of the elements in the file
packet timestamp -- 8 bytes
Address of sender -- 4 bytes
packet length -- 4 bytes (integer)
packet data -- length = packet length (bytes)
- Version:
- Version 2 (linked list)
- Author:
- Millie Ives
-
FileObject()
-
-
getnum(byte)
- Takes in a byte and returns an integer.
-
Open()
- Opens the file and places the objects in the linked list.
-
Save()
- Saves linked list objects into a file.
FileObject
public FileObject()
Save
public void Save()
- Saves linked list objects into a file.
- Returns:
- None
- Throws: IOException
- - at the end of the file (does nothing)
Open
public void Open()
- Opens the file and places the objects in the linked list.
- Returns:
- None
getnum
public int getnum(byte b)
- Takes in a byte and returns an integer.
- Returns:
- integer