|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.directj.jlogger.NetworkOutput
Nested Class Summary | |
private class |
NetworkOutput.ShutdownHook
This class is used to stop the client at the end of the JVM. |
Field Summary | |
private java.net.InetAddress |
address
The distant server's inet address. |
private Client |
client
The client that connect to the distant server. |
private int |
port
The distant server's port. |
Constructor Summary | |
NetworkOutput(int _port,
java.net.InetAddress _address)
Creates a new NetworkOutput. |
Method Summary | |
void |
clientEvent(ClientEvent _evt)
Any class implementing this will receive messages that are received by the client. |
boolean |
equals(java.lang.Object _obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
void |
print(java.lang.String _str)
Prints the info, using the output. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int port
private java.net.InetAddress address
private Client client
Constructor Detail |
public NetworkOutput(int _port, java.net.InetAddress _address)
_port
- The distant server's port._address
- The distant server's address.Method Detail |
public void clientEvent(ClientEvent _evt)
clientEvent
in interface ClientListener
_evt
- A client eventpublic void print(java.lang.String _str)
print
in interface Output
_str
- The debugging info to print on the output.Formatter
public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
_obj
- The reference object with which to compare.
boolean
- True if this object is the same as the obj argument; false otherwise.public int hashCode()
hashCode
in class java.lang.Object
int
- A hash code value for this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |