org.apache.activeio.adapter
Class PacketToInputStream
java.lang.Object
java.io.InputStream
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$
Method Summary |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PacketToInputStream
public PacketToInputStream(Packet packet)
- Parameters:
packet
-
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-2014 The Apache Software Foundation. All Rights Reserved.