/*
 * @(#)$Id: IgnoreController.java 1566 2003-06-09 20:37:49Z kk122374 $
 *
 * 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; }
}
