NOS.io
Class NOSConnectionStats

java.lang.Object
  extended by NOS.io.NOSConnectionStats

public class NOSConnectionStats
extends java.lang.Object


Field Summary
static long BYTES_RECIEVED
           
static long BYTES_SENT
           
 
Constructor Summary
NOSConnectionStats(java.net.URLConnection con)
          Creates a new NOSConnectionStats object.
 
Method Summary
static long getBytesRecieved()
          Returns the number of bytes recieved via this connecion stats object.
static long getBytesSent()
          Returns the number of bytes sent via this connecion stats object.
 java.io.InputStream getInputStream()
          Returns the InputStream.
 java.io.OutputStream getOutputStream()
          Returns the OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTES_SENT

public static long BYTES_SENT

BYTES_RECIEVED

public static long BYTES_RECIEVED
Constructor Detail

NOSConnectionStats

public NOSConnectionStats(java.net.URLConnection con)
Creates a new NOSConnectionStats object.

Parameters:
con - The URLConnection object which we will wrap
Method Detail

getBytesSent

public static long getBytesSent()
Returns the number of bytes sent via this connecion stats object.

Returns:
the number of bytes sent via this connecion stats object.

getBytesRecieved

public static long getBytesRecieved()
Returns the number of bytes recieved via this connecion stats object.

Returns:
the number of bytes recieved via this connecion stats object.

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns the OutputStream.

Returns:
the OutputStream.
Throws:
java.io.IOException - If an error occurs.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns the InputStream.

Returns:
the InputStream
Throws:
java.io.IOException - If an error occurs.