FileDocCategorySizeDatePackage
Example2.javaAPI DocExample791Fri Feb 01 12:49:14 GMT 2002None

Example2

public class Example2 extends DefaultHandler
Printing only Character Content (better)

Fields Summary
private boolean
ignore
Constructors Summary
Methods Summary
public voidcharacters(char[] buf, int offset, int length)

	if (ignore)
	    return;
	System.out.print (new String (buf, offset, length));
    
public voidendElement(java.lang.String uri, java.lang.String local, java.lang.String qName)

	if ("line".equals (qName)) {
	    System.out.println ();
	    ignore = true;
	}
    
public voidstartElement(java.lang.String uri, java.lang.String local, java.lang.String qName, org.xml.sax.Attributes atts)


       
	 
	 
	 
	 
      
    
	if ("line".equals (qName))
	    ignore = false;