org.openqa.jetty.http.nio
Class SocketChannelOutputStream
java.lang.Object
   java.io.OutputStream
java.io.OutputStream
       org.openqa.jetty.http.nio.SocketChannelOutputStream
org.openqa.jetty.http.nio.SocketChannelOutputStream
- All Implemented Interfaces: 
- java.io.Closeable, java.io.Flushable
- public class SocketChannelOutputStream 
- extends java.io.OutputStream
Blocking output stream on non-blocking SocketChannel.  Makes the 
 assumption that writes will rarely need to block.
 All writes flush to the channel, and no additional buffering is done.
- Version:
- $Revision: 1.4 $
- Author:
- gregw
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SocketChannelOutputStream
public SocketChannelOutputStream(java.nio.channels.SocketChannel channel,
                                 int bufferSize)
- Constructor.
 
write
public void write(int b)
           throws java.io.IOException
- 
- Specified by:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
close
public void close()
           throws java.io.IOException
- 
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
flush
public void flush()
           throws java.io.IOException
- 
- Specified by:
- flushin interface- java.io.Flushable
- Overrides:
- flushin class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
write
public void write(byte[] buf,
                  int offset,
                  int length)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
write
public void write(byte[] buf)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
destroy
public void destroy()
- 
 
Copyright © 2011. All Rights Reserved.