Class DsFileObject

java.lang.Object
   |
   +----DsFileObject

public class DsFileObject
extends Object
Contains save and open methods for DsFile0bject. 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 DsFileObject()

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 DsFileObject
 public DsFileObject()

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