public class InfiniteCircularInputStream
extends java.io.InputStream
InputStream that infinitely repeats provided bytes.
Closing a InfiniteCircularInputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.
| Modifier and Type | Field and Description |
|---|---|
private int |
position |
private byte[] |
repeatedContent |
| Constructor and Description |
|---|
InfiniteCircularInputStream(byte[] repeatedContent)
Creates a InfiniteCircularStream from the specified array of chars.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |