barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt.nio
Class NioOutputStreamUDT

java.lang.Object
  extended by java.io.OutputStream
      extended by com.barchart.udt.nio.NioOutputStreamUDT
All Implemented Interfaces:
Closeable, Flushable

public class NioOutputStreamUDT
extends OutputStream

OutputStream for UDT sockets.


Field Summary
protected  SocketChannelUDT channel
           
 
Constructor Summary
protected NioOutputStreamUDT(SocketChannelUDT channel)
          Creates a new UDT output stream.
 
Method Summary
 void close()
           
 void write(byte[] bytes)
           
 void write(byte[] bytes, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

protected final SocketChannelUDT channel
Constructor Detail

NioOutputStreamUDT

protected NioOutputStreamUDT(SocketChannelUDT channel)
Creates a new UDT output stream.

Parameters:
channel - The UDT socket channel.
Method Detail

write

public void write(byte[] bytes,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] bytes)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.