de.intarsys.tools.reader
Class FillReader
java.lang.Object
java.io.Reader
de.intarsys.tools.reader.FillReader
- All Implemented Interfaces:
- Closeable, Readable
public class FillReader
- extends Reader
A Helper reader that repeatedly returns the characters in a predefined
pattern until it is closed.
Method Summary |
void |
close()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
FillReader
public FillReader(String pattern)
- Create a FillReader on string.
- Parameters:
pattern
- The string that is read all over again.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.