Examples/src/main/java/org/openestate/io/examples/IdxReadingExample.java
protected static void printToConsole(IdxParser parser) {
        // process records
        while (parser.hasNext()) {
            IdxRecord record = parser.next();

            // get object nr
            String objectNr = record.getRefObject();
            if (objectNr == null) objectNr = "???";

            // get object title
            String objectTitle = record.getObjectTitle();
            if (objectTitle == null) objectTitle = "???";

            // print object information to console
            System.out.println("> found object '" + objectNr + "' "
                    + "with title '" + objectTitle + "'");
        }
    }
protected static void printToConsole(IdxParser parser) {
        // process records
        while (parser.hasNext()) {
            IdxRecord record = parser.next();

            // get object nr
            String objectNr = record.getRefObject();
            if (objectNr == null) objectNr = "???";

            // get object title
            String objectTitle = record.getObjectTitle();
            if (objectTitle == null) objectTitle = "???";

            // print object information to console
            System.out.println("> found object '" + objectNr + "' "
                    + "with title '" + objectTitle + "'");
        }
    }
protected static void printToConsole ( IdxParser parser ) { // process records while ( parser . hasNext ( ) ) { IdxRecord record = parser . next ( ) ; // get object nr String objectNr = record . getRefObject ( ) ; if ( objectNr == null ) objectNr = "???" ; // get object title String objectTitle = record . getObjectTitle ( ) ; if ( objectTitle == null ) objectTitle = "???" ; // print object information to console System . out . println ( "> found object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; } }
Print some content of an {@link IdxParser} to console.

@param parser parser instance
Print some content of an { @link IdxParser } to console .