Class InfiniteCircularInputStream

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class InfiniteCircularInputStream
    extends CircularInputStream
    An InputStream that infinitely repeats the provided bytes.

    Closing this input stream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    • Constructor Summary

      Constructor Description
      InfiniteCircularInputStream​(byte[] repeatContent)
      Creates an instance from the specified array of bytes.
    • Method Summary

      • Methods inherited from class

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InfiniteCircularInputStream

        public InfiniteCircularInputStream​(byte[] repeatContent)
        Creates an instance from the specified array of bytes.
        repeatContent - Input buffer to be repeated this buffer is not copied.