Interface DelayableLittleEndianOutput

  • All Superinterfaces:
    LittleEndianOutput
    All Known Implementing Classes:
    LittleEndianByteArrayOutputStream

    public interface DelayableLittleEndianOutput
    extends LittleEndianOutput
    Implementors of this interface allow client code to 'delay' writing to a certain section of a data output stream.
    A typical application is for writing BIFF records when the size is not known until well after the header has been written. The client code can call createDelayedOutput(int) to reserve two bytes of the output for the 'ushort size' header field. The delayed output can be written at any stage.
    • Method Detail

      • createDelayedOutput

        LittleEndianOutput createDelayedOutput​(int size)
        Creates an output stream intended for outputting a sequence of size bytes.