Code example for DefaultHandler

  private static DefaultHandler getHandler(
      DefaultHandler handler,
      DefaultHandler errorHandler,
      EntityResolver entityResolver)
    DefaultHandler hdlr = handler != null ? handler : new DefaultHandler();
    return new AggregateHandler(hdlr, errorHandler, entityResolver);
   * Aggregate DefaultHandler which delegates to other handlers. 
  private static class AggregateHandler 
    extends DefaultHandler
    private DefaultHandler handler;
    private DefaultHandler errorHandler;
    private org.xml.sax.EntityResolver entityResolver;
Connect your IDE to all the code out there  Get Codota for Java