Examples/src/main/java/org/openestate/io/examples/FilemakerWritingExample.java
@SuppressWarnings("Duplicates")
    protected static void writeToConsole(FilemakerResultDocument doc) {
        LOGGER.info("writing document");
        try {
            String xml = doc.toXmlString(PRETTY_PRINT);
            LOGGER.info(StringUtils.repeat("-", 50)
                    + System.lineSeparator() + xml);
        } catch (Exception ex) {
            LOGGER.error("Can't write document into a string!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }
    }
@SuppressWarnings("Duplicates")
    protected static void writeToConsole(FilemakerResultDocument doc) {
        LOGGER.info("writing document");
        try {
            String xml = doc.toXmlString(PRETTY_PRINT);
            LOGGER.info(StringUtils.repeat("-", 50)
                    + System.lineSeparator() + xml);
        } catch (Exception ex) {
            LOGGER.error("Can't write document into a string!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }
    }
@ SuppressWarnings ( "Duplicates" ) protected static void writeToConsole ( FilemakerResultDocument doc ) { LOGGER . info ( "writing document" ) ; try { String xml = doc . toXmlString ( PRETTY_PRINT ) ; LOGGER . info ( StringUtils . repeat ( "-" , 50 ) + System . lineSeparator ( ) + xml ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into a string!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } }
Write a {@link FilemakerResultDocument} into a {@link String} and print the
results to the console.

@param doc the document to write
Write a { @link FilemakerResultDocument } into a { @link String } and print the results to the console .