@Override
    public String toString() {
        return "RASegmentOutputStream" +
                "\ndata = " +
                dataOutputStream +
//                if (indexOutputStream != null) {
//                    "\nindex = " +
//                            indexOutputStream +
//                }
                "\nposition = " +
                position +
                "\nlastBoundary = " +
                lastBoundary;
    }
Writes the specified byte to the data output stream.

@param b the <code>byte</code>.
@throws IOException if an I/O error occurs. In particular, an
                    <code>IOException</code> may be thrown if the output
                    stream has been closed.
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/RASegmentOutputStream.java