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.Reader
A 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 void
close()
int
read()
int
read(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
-