org.apache.commons.collections.primitives.adapters.io
Class ByteIteratorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.commons.collections.primitives.adapters.io.ByteIteratorInputStream
All Implemented Interfaces:
Closeable

public class ByteIteratorInputStream
extends InputStream

Adapts an ByteIterator to the InputStream interface.

Version:
$Revision: 480462 $ $Date: 2006-11-29 09:15:00 +0100(mer, 29 nov 2006) $
Author:
Rodney Waldhoff

Constructor Summary
ByteIteratorInputStream(ByteIterator in)
           
 
Method Summary
static InputStream adapt(ByteIterator in)
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteIteratorInputStream

public ByteIteratorInputStream(ByteIterator in)
Method Detail

read

public int read()
Specified by:
read in class InputStream

adapt

public static InputStream adapt(ByteIterator in)


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