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

java.lang.Object
  extended byjava.io.Reader
      extended byorg.apache.commons.collections.primitives.adapters.io.CharIteratorReader

public class CharIteratorReader
extends java.io.Reader

Adapts a CharIterator to the Reader interface.

Version:
$Revision: 1.1 $ $Date: 2003/10/13 22:46:58 $
Author:
Rodney Waldhoff

Field Summary
private  CharIterator iterator
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CharIteratorReader(CharIterator in)
           
 
Method Summary
static java.io.Reader adapt(CharIterator in)
           
 void close()
           
 int read(char[] buf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private CharIterator iterator
Constructor Detail

CharIteratorReader

public CharIteratorReader(CharIterator in)
Method Detail

read

public int read(char[] buf,
                int off,
                int len)

close

public void close()

adapt

public static java.io.Reader adapt(CharIterator in)


Copyright (c) 2002-2003 - Apache Software Foundation