oogp2p
Class StringNettable

java.lang.Object
  extended byoogp2p.Nettable
      extended byoogp2p.StringNettable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommandNettable

public class StringNettable
extends Nettable

StringNettable.java Nettable that holds a String

See Also:
Serialized Form

Field Summary
protected  java.lang.String myString
           
 
Fields inherited from class oogp2p.Nettable
myApplication, myReceiver, mySender
 
Constructor Summary
StringNettable()
           
StringNettable(java.net.InetAddress myIP, java.net.InetAddress myConnectedToIP)
           
StringNettable(java.lang.String s)
           
 
Method Summary
 java.lang.Object getContents()
           
 void setString(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class oogp2p.Nettable
getApplicationName, getReceiver, getSender, setReceiver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myString

protected java.lang.String myString
Constructor Detail

StringNettable

public StringNettable(java.net.InetAddress myIP,
                      java.net.InetAddress myConnectedToIP)
Parameters:
myIP -
myConnectedToIP -

StringNettable

public StringNettable()

StringNettable

public StringNettable(java.lang.String s)
Method Detail

setString

public void setString(java.lang.String s)

toString

public java.lang.String toString()

getContents

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