|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.Socket | +--springs.util.SocketCountingBytes
A socket with a count of the transmitted bytes.
Field Summary | |
private java.io.FilterInputStream |
_is
|
private java.io.FilterOutputStream |
_os
|
static int |
numReadBytes
|
static int |
numWrittenBytes
|
Fields inherited from class java.net.Socket |
|
Constructor Summary | |
SocketCountingBytes()
Constructor. |
|
SocketCountingBytes(java.lang.String host,
int port)
Constructor. |
Method Summary | |
java.io.InputStream |
getInputStream()
Returns a stream of the right type. |
java.io.OutputStream |
getOutputStream()
Returns a stream of the right type. |
static void |
increaseReadBytes(int increase)
Increases safely the number of read bytes. |
static void |
increaseWrittenBytes(int increase)
Increases safely the number of written bytes. |
Methods inherited from class java.net.Socket |
bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int numReadBytes
public static int numWrittenBytes
private java.io.FilterOutputStream _os
private java.io.FilterInputStream _is
Constructor Detail |
public SocketCountingBytes(java.lang.String host, int port) throws java.io.IOException
host
- the host name.port
- the port number.
java.io.IOException
- if errorString
,
IOException
public SocketCountingBytes() throws java.io.IOException
java.io.IOException
- if errorIOException
Method Detail |
public static void increaseReadBytes(int increase)
increase
- the increase.public static void increaseWrittenBytes(int increase)
increase
- the increase.public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
InputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
OutputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |