org.apache.activeio.adapter
Class PacketToInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.activeio.adapter.PacketToInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
PacketInputStream

public class PacketToInputStream
extends InputStream

Provides an InputStream for a given Packet.

Version:
$Revision$

Constructor Summary
PacketToInputStream(Packet packet)
           
 
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

PacketToInputStream

public PacketToInputStream(Packet packet)
Parameters:
packet -
Method Detail

read

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

read

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


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.