org.neo.swarm.util.io
Class ByteBufferOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.neo.swarm.util.io.ByteBufferOutputStream

public class ByteBufferOutputStream
extends java.io.OutputStream

Provides a ByteBufferOutputStream interface for writing to a socket

Author:
navery

Constructor Summary
ByteBufferOutputStream(java.nio.ByteBuffer buffer, StreamCallback callback)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] data)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferOutputStream

public ByteBufferOutputStream(java.nio.ByteBuffer buffer,
                              StreamCallback callback)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] data)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.