/*
 * @(#)$Id: IgnoreController.java,v 1.8 2003/06/09 20:37:33 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.reader.util;

import org.xml.sax.InputSource;
import org.xml.sax.Locator;

import com.sun.msv.reader.GrammarReaderController;

/**
 * Default implementation of GrammarReaderController.
 * 
 * This class ignores every errors and warnings.
 * 
 * @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
 */
public class IgnoreController implements GrammarReaderController
{
    public void warning( Locator[] locs, String errorMessage ) {}
    public void error( Locator[] locs, String errorMessage, Exception nestedException ) {}
    public InputSource resolveEntity( String p, String s ) { return null; }
}
