intarsys runtime library

de.intarsys.tools.reader
Class FillReader

java.lang.Object
  extended by java.io.Reader
      extended by 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.


Constructor Summary
FillReader(String pattern)
          Create a FillReader on string.
 
Method Summary
 void close()
           
 int read()
           
 int read(char[] cbuf, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillReader

public FillReader(String pattern)
Create a FillReader on string.

Parameters:
pattern - The string that is read all over again.
Method Detail

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

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.