org.activeio.adapter
Class PacketToInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.activeio.adapter.PacketToInputStream
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
Throws:
IOException
See Also:
InputStream.read()

read

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


Copyright © -2007 The ActiveIO Project. All Rights Reserved.