String getPredictorString(final TiffDirectory directory) throws ImagingException {
        int predictor = -1;

        final TiffField predictorField = directory.findField(TiffTagConstants.TIFF_TAG_PREDICTOR);
        if (null != predictorField) {
            predictor = predictorField.getIntValueOrArraySum();
        }

        switch (predictor) {
        case TiffTagConstants.PREDICTOR_VALUE_HORIZONTAL_DIFFERENCING:
            return "Diff";
        case TiffTagConstants.PREDICTOR_VALUE_FLOATING_POINT_DIFFERENCING:
            return "FP Diff";
        default:
            return "None";

        }
    }
Formats a header allowing space for the maximum length of the file paths in the list. If the comma-separated-value option is set, spaces will be
suppressed and commas introduced as separators.

@param maxPathLen the maximum length of a file path (used if csv option is not set)
@param csv        true if formatting is configured for comma-separated-value files.
@return a valid string.
src/test/java/org/apache/commons/imaging/examples/tiff/SurveyTiffFile.java