| java.lang.Object java.io.Reader org.apache.derbyTesting.functionTests.util.streams.LoopingAlphabetReader
LoopingAlphabetReader | public class LoopingAlphabetReader extends Reader (Code) | | A stream returning characters by looping over an alphabet.
|
Constructor Summary | |
public | LoopingAlphabetReader(long length) Create a looping modern latin alphabet reader of the specified length. | public | LoopingAlphabetReader(long length, int trailingBlanks) Create a looping modern latin alphabet of the specified length, with
the specified number of trailing blanks. | public | LoopingAlphabetReader(long length, CharAlphabet alphabet) Create a looping alphabet of the specified type and length. | public | LoopingAlphabetReader(long length, CharAlphabet alphabet, int trailingBlanks) Create a looping alphabet of the specified type and length, with
the specified number of trailing blanks. |
Method Summary | |
public int | available() Return remaining characters in the stream. | public void | close() Close the reader. | public int | read() | public int | read(char[] buf, int off, int length) | public void | reset() Reset the stream. |
LoopingAlphabetReader | public LoopingAlphabetReader(long length)(Code) | | Create a looping modern latin alphabet reader of the specified length.
Parameters: length - the number of characters |
LoopingAlphabetReader | public LoopingAlphabetReader(long length, int trailingBlanks)(Code) | | Create a looping modern latin alphabet of the specified length, with
the specified number of trailing blanks.
The number of non-blank characters is
length - trailingBlanks .
Parameters: length - total number of characters Parameters: trailingBlanks - number of blank characters at the end |
LoopingAlphabetReader | public LoopingAlphabetReader(long length, CharAlphabet alphabet)(Code) | | Create a looping alphabet of the specified type and length.
Parameters: length - the number of chars in the reader Parameters: alphabet - the alphabet to loop over |
LoopingAlphabetReader | public LoopingAlphabetReader(long length, CharAlphabet alphabet, int trailingBlanks)(Code) | | Create a looping alphabet of the specified type and length, with
the specified number of trailing blanks.
The number of non-blank characters is
length - trailingBlanks .
Parameters: length - total number of characters Parameters: alphabet - the alphabet to draw characters from Parameters: trailingBlanks - number of blank characters at the end |
available | public int available()(Code) | | Return remaining characters in the stream.
|
close | public void close()(Code) | | Close the reader.
|
|
|