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:
java.io.Closeable

public class ByteIteratorInputStream
extends java.io.InputStream

Adapts an ByteIterator to the InputStream interface.

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

Constructor Summary
ByteIteratorInputStream(ByteIterator in)
           
 
Method Summary
static java.io.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 java.io.InputStream

adapt

public static java.io.InputStream adapt(ByteIterator in)


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