oogp2p.file.nettables
Class FileDataNettable
java.lang.Object
oogp2p.Nettable
oogp2p.file.nettables.FileNettable
oogp2p.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
|
Constructor Summary |
FileDataNettable(java.net.InetAddress sender,
java.net.InetAddress receiver,
java.io.File f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myFilePackets
private java.util.Vector myFilePackets
myFile
private java.io.File myFile
FILE_PACKET_SIZE
public static int FILE_PACKET_SIZE
FileDataNettable
public FileDataNettable(java.net.InetAddress sender,
java.net.InetAddress receiver,
java.io.File f)
loadInFile
private void loadInFile()
getContents
public java.lang.Object getContents()
- Specified by:
getContents in class FileNettable
getFile
public java.io.File getFile()