org.apache.commons.collections.primitives.adapters.io
Class CharIteratorReader
java.lang.Object
java.io.Reader
org.apache.commons.collections.primitives.adapters.io.CharIteratorReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
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
Fields inherited from class java.io.Reader |
lock |
Methods inherited from class java.io.Reader |
mark, markSupported, read, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterator
private CharIterator iterator
CharIteratorReader
public CharIteratorReader(CharIterator in)
read
public int read(char[] buf,
int off,
int len)
- Specified by:
read
in class java.io.Reader
close
public void close()
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader
adapt
public static java.io.Reader adapt(CharIterator in)
Copyright (c) 2002-2003 - Apache Software Foundation