private abstract static class BenchmarkCounters.CallbackOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
protected PrintStream |
delegate |
private byte[][] |
patterns |
private int[] |
positions |
Constructor and Description |
---|
CallbackOutputStream(PrintStream delegate,
String... patterns) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
patternFound(int index) |
void |
write(int b) |
close, flush, write, write
protected final PrintStream delegate
private final byte[][] patterns
private final int[] positions
public CallbackOutputStream(PrintStream delegate, String... patterns)
protected abstract void patternFound(int index)
public void write(int b) throws IOException
write
in class OutputStream
IOException