String getPlanarConfigurationString(final TiffDirectory directory) throws ImagingException {

        // Obtain the planar configuration
        final TiffField pcField = directory.findField(TiffTagConstants.TIFF_TAG_PLANAR_CONFIGURATION);
        final TiffPlanarConfiguration planarConfiguration = pcField == null ? TiffPlanarConfiguration.CHUNKY
                : TiffPlanarConfiguration.lenientValueOf(pcField.getIntValue());

        if (planarConfiguration == TiffPlanarConfiguration.CHUNKY) {
            return "Chunky";
        }
        return "Planar";
    }
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