public void process ( InputStream input ) throws IOException , ConverterException { while ( 0 != input . available ( ) ) { Tag tag = ParserUtils . parseTag ( input ) ; TagHandler handler = getHandler ( tag ) ; if ( null == handler ) { skipHandler . handle ( tag , input ) ; } else { handler . handle ( tag , input ) ; } } }
Method to process the input stream given will stop as soon as input stream will be empty