Package i2p.susi.util

Class EOFOnMatchInputStream

All Implemented Interfaces:
ReadCounter, Closeable, AutoCloseable

public class EOFOnMatchInputStream
extends PushbackInputStream
implements ReadCounter
A stream that returns EOF when the input matches the bytes provided. The reader will never see any bytes from a full match. We extend PushbackInputStream for convenience, but we use its buffer as a fifo, not a stack. Do not call the unread() methods externally.
Since:
0.9.34