Apache JMeter

org.apache.jmeter.visualizers.backend.graphite
Class SocketOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.jmeter.visualizers.backend.graphite.SocketOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class SocketOutputStream
extends FilterOutputStream

Convenience class for writing bytes to a Socket.

Since:
2.13

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
SocketOutputStream(InetSocketAddress inetSocketAddress)
           
SocketOutputStream(Socket socket)
           
 
Method Summary
 Socket getSocket()
          Return the underlying Socket
 String toString()
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketOutputStream

public SocketOutputStream(InetSocketAddress inetSocketAddress)
                   throws IOException
Throws:
IOException

SocketOutputStream

public SocketOutputStream(Socket socket)
                   throws IOException
Throws:
IOException
Method Detail

getSocket

public Socket getSocket()
Return the underlying Socket

Returns:
the underlying Socket

toString

public String toString()
Overrides:
toString in class Object

Apache JMeter

Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.