Interface AppleSingleReader.ReadAtReporter

  • Enclosing class:
    AppleSingleReader

    public static interface AppleSingleReader.ReadAtReporter
    A reporter for the AppleSingleReader#readAt(int, int, String) method, heavily modeled on the Consumer interface.
    • Method Detail

      • accept

        void accept​(int start,
                    byte[] data,
                    java.lang.String description)
        Performs this operation on the given arguments.
        Parameters:
        start - the offset into the file
        data - the specific data being processed
        description - descriptive text regarding the data
      • andThen

        default AppleSingleReader.ReadAtReporter andThen​(AppleSingleReader.ReadAtReporter after)
        Returns a composed ReadAtReporter that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
        Parameters:
        after - the operation to perform after this operation
        Returns:
        a composed ReadAtReporter that performs in sequence this operation followed by the after operation
        Throws:
        java.lang.NullPointerException - if after is null