Class DebugOutputBitStream

java.lang.Object
it.unimi.dsi.io.OutputBitStream
it.unimi.dsi.io.DebugOutputBitStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class DebugOutputBitStream
extends OutputBitStream
A debugging wrapper for output bit streams.

This class can be used to wrap an output bit stream. The semantics of the resulting write operations is unchanged, but each operation will be logged.

To simplify the output, some operations have a simplified representation. In particular:

|
flush();
->
position();
[
creation;
]
close();
{x}
explicit bits;
{x:b}
minimal binary coding of x with bound b;
{M:x}
write x with coding M; the latter can be U (unary), g (γ), z (ζ), d (δ), G (Golomb), GS (skewed Golomb); when appropriate, x is followed by an extra integer (modulus, etc.).
Since:
0.7.1
Author:
Paolo Boldi, Sebastiano Vigna