oogp2p.file.nettables
Class FileDataNettable

java.lang.Object
  extended byoogp2p.Nettable
      extended byoogp2p.file.nettables.FileNettable
          extended byoogp2p.file.nettables.FileDataNettable
All Implemented Interfaces:
java.io.Serializable

public class FileDataNettable
extends FileNettable

FileDataNettable.java Nettables containing a file that is sent over the network. Created: Tue Apr 1 21:33:19 2003

Version:
Author:
OOGs
See Also:
Serialized Form

Field Summary
static int FILE_PACKET_SIZE
           
private  java.io.File myFile
           
private  java.util.Vector myFilePackets
           
 
Fields inherited from class oogp2p.Nettable
myApplication, myReceiver, mySender
 
Constructor Summary
FileDataNettable(java.net.InetAddress sender, java.net.InetAddress receiver, java.io.File f)
           
 
Method Summary
 java.lang.Object getContents()
           
 java.io.File getFile()
           
private  void loadInFile()
           
 
Methods inherited from class oogp2p.Nettable
getApplicationName, getReceiver, getSender, setReceiver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFilePackets

private java.util.Vector myFilePackets

myFile

private java.io.File myFile

FILE_PACKET_SIZE

public static int FILE_PACKET_SIZE
Constructor Detail

FileDataNettable

public FileDataNettable(java.net.InetAddress sender,
                        java.net.InetAddress receiver,
                        java.io.File f)
Method Detail

loadInFile

private void loadInFile()

getContents

public java.lang.Object getContents()
Specified by:
getContents in class FileNettable

getFile

public java.io.File getFile()