Package com.blackbear.flatworm

Examples of com.blackbear.flatworm.MatchedRecord


        final ConfigurationReader parser = new ConfigurationReader();
        try {
            final FileFormat fileFormat = parser.loadConfigurationFile( ARQUIVO_XML );
            final InputStream inputStream = new FileInputStream( ARQUIVO_TXT );
            final BufferedReader bufIn = new BufferedReader( new InputStreamReader( inputStream ) );
            MatchedRecord results;
            while ( ( results = fileFormat.getNextRecord( bufIn ) ) != null ) {
                if ( results.getRecordName().equals( "emprheader" ) ) {
                    //System.out.println( results.getBean( "beanheader" ) );
                } else if ( results.getRecordName().equals( "emprdetail" ) ) {
                    //System.out.println( results.getBean( "empregado" ) );
                    //System.out.println( results.getBean( "pessoa" ) );
                } else if ( results.getRecordName().equals( "emprtrailler" ) ) {
                    //System.out.println( results.getBean( "beantrailler" ) );
                }
            }
           
        } catch ( FileNotFoundException e1 ) {
View Full Code Here

TOP

Related Classes of com.blackbear.flatworm.MatchedRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.