public class StreamPortItem
extends java.lang.Object
Constructor and Description |
---|
StreamPortItem(java.lang.String address,
int newPort,
java.io.ByteArrayInputStream in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHostAddress()
Returns the host addres where the message came from.
|
int |
getHostPort()
Returns the remote port where the message came from.
|
java.io.ByteArrayInputStream |
getStream()
Returns incoming message (or a copy of it).
|
java.lang.String |
toString()
Returns the string representation.
|
public StreamPortItem(java.lang.String address, int newPort, java.io.ByteArrayInputStream in)
address
- The host addressnewPort
- The remote port numberin
- The incoming messagepublic java.lang.String getHostAddress()
public int getHostPort()
public java.io.ByteArrayInputStream getStream()
public java.lang.String toString()
toString
in class java.lang.Object