Package de.intarsys.tools.reader
Class FillReader
- java.lang.Object
-
- java.io.Reader
-
- de.intarsys.tools.reader.FillReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public class FillReader extends java.io.ReaderA Helper reader that repeatedly returns the characters in a predefined pattern until it is closed.
-
-
Constructor Summary
Constructors Constructor Description FillReader(java.lang.String pattern)Create a FillReader on string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Reader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
readin classjava.io.Reader- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.Reader- Throws:
java.io.IOException
-
-