com.alibaba.dubbo.remoting.buffer
Class ChannelBufferOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.alibaba.dubbo.remoting.buffer.ChannelBufferOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ChannelBufferOutputStream
extends OutputStream

Author:
kimi

Constructor Summary
ChannelBufferOutputStream(ChannelBuffer buffer)
           
 
Method Summary
 ChannelBuffer buffer()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 int writtenBytes()
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelBufferOutputStream

public ChannelBufferOutputStream(ChannelBuffer buffer)
Method Detail

writtenBytes

public int writtenBytes()

write

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

write

public void write(byte[] b)
           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

buffer

public ChannelBuffer buffer()


Copyright © 2012–2017 Alibaba. All rights reserved.