private void transferToSpecificBuilderAndReset ( ) { // version if ( currentTag == Tag . VERSION ) { dataBuilder . setVersion ( buffer . toString ( ) ) ; } // robot browser addToRobotBuilder ( ) ; // build browser addToBrowserBuilder ( ) ; // build operating system addToOperatingSystemBuilder ( ) ; // build browser pattern addToBrowserPatternBuilder ( ) ; // build browser type addToBrowserTypeBuilder ( ) ; // build browser to operating system mapping addToBrowserOsMappingBuilder ( ) ; // build operating system pattern addToOperatingSystemPatternBuilder ( ) ; // build browser addToDeviceBuilder ( ) ; // build browser pattern addToDevicePatternBuilder ( ) ; buffer = new StringBuilder ( ) ; }
Transfers all characters of a specific tag to the corresponding builder and resets the string buffer .