org.ow2.petals.transport.platform.nio.util.stream.queue
Class QueueInputStream
java.lang.Object
java.io.InputStream
org.ow2.petals.transport.platform.nio.util.stream.queue.QueueInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class QueueInputStream
- extends java.io.InputStream
This class implements an input stream in which the data are read from a byte
array queue.
Closing a QueueInputStream has no effect. For performance
reasons, the methods in this class can be called after the stream has been
closed without generating an IOException.
QueueInputStream does not support mark and
reset methods.
- Author:
- Christophe DENEUX - Capgemini Sud
| Methods inherited from class java.io.InputStream |
close, mark, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueInputStream
public QueueInputStream(QueueOutputStream llos)
available
public int available()
throws java.io.IOException
- Overrides:
available in class java.io.InputStream
- Throws:
java.io.IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class java.io.InputStream
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] cbuf)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(long n)
throws java.io.IOException,
java.lang.IllegalArgumentException
- Overrides:
skip in class java.io.InputStream
- Throws:
java.io.IOException
java.lang.IllegalArgumentException
localRead
protected int localRead(byte[] cbuf,
int off,
int len,
boolean skip)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.