net.tomp2p.utils
Class MultiByteBufferInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.tomp2p.utils.MultiByteBufferInputStream
All Implemented Interfaces:
Closeable

public class MultiByteBufferInputStream
extends InputStream


Constructor Summary
MultiByteBufferInputStream(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiByteBufferInputStream

public MultiByteBufferInputStream(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException


Copyright © 2013. All Rights Reserved.