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

Constructor Index

 o FileObject()

Method Index

 o getnum(byte)
Takes in a byte and returns an integer.
 o Open()
Opens the file and places the objects in the linked list.
 o Save()
Saves linked list objects into a file.

Constructors

 o FileObject
 public FileObject()

Methods

 o Save
 public void Save()
Saves linked list objects into a file.

Returns:
None
Throws: IOException
- at the end of the file (does nothing)
 o Open
 public void Open()
Opens the file and places the objects in the linked list.

Returns:
None
 o getnum
 public int getnum(byte b)
Takes in a byte and returns an integer.

Returns:
integer