public class CircularInputStream extends InputStream
InputStreamthat repeats provided bytes for given target byte count.
Closing this input stream has no effect. The methods in this class can be called after the stream has been closed
without generating an
|Constructor and Description|
Creates an instance from the specified array of bytes.
|Modifier and Type||Method and Description|
available, close, mark, markSupported, read, read, reset, skip
public CircularInputStream(byte repeatContent, long targetByteCount)
repeatContent- Input buffer to be repeated this buffer is not copied.
targetByteCount- How many bytes the read. A negative number means an infinite target count.
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.