<commit_before>// $Id: MarcXmlFilter.java,v 1.15 2003/03/23 11:56:46 bpeters Exp $
/**
 * Copyright (C) 2002 <NAME>
 *
 * This file is part of MARC4J
 *
 * MARC4J is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public 
 * License as published by the Free Software Foundation; either 
 * version 2.1 of the License, or (at your option) any later version.
 *
 * MARC4J is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public 
 * License along with MARC4J; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package org.marc4j.marcxml;

import java.io.*;
import java.net.URL;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.helpers.XMLFilterImpl;
import org.xml.sax.helpers.AttributesImpl;
import org.marc4j.MarcHandler;
import org.marc4j.ErrorHandler;
import org.marc4j.MarcReader;
import org.marc4j.marc.MarcConstants;
import org.marc4j.marc.Leader;
import org.marc4j.marc.Tag;
import org.marc4j.util.CharacterConverter;
import org.marc4j.util.CharacterConverterLoader;
import org.marc4j.util.CharacterConverterLoaderException;
import org.marc4j.util.AnselToUnicode;

/**
 * <p><code>MarcXmlFilter</code> is an <code>XMLFilter</code> that 
 * consumes <code>MarcHandler</code> events and reports events to 
 * a SAX2 <code>ContentHandler</code>.  </p>
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a> 
 * @version $Revision: 1.15 $
 *
 * @see ExtendedFilter
 * @see MarcHandler
 * @see ContentHandler<commit_msg>Added deprecation comment<commit_after>// $Id: MarcXmlFilter.java,v 1.16 2003/04/11 20:40:55 bpeters Exp $
/**
 * Copyright (C) 2002 <NAME>
 *
 * This file is part of MARC4J
 *
 * MARC4J is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public 
 * License as published by the Free Software Foundation; either 
 * version 2.1 of the License, or (at your option) any later version.
 *
 * MARC4J is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public 
 * License along with MARC4J; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package org.marc4j.marcxml;

import java.io.*;
import java.net.URL;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.helpers.XMLFilterImpl;
import org.xml.sax.helpers.AttributesImpl;
import org.marc4j.MarcHandler;
import org.marc4j.ErrorHandler;
import org.marc4j.MarcReader;
import org.marc4j.marc.MarcConstants;
import org.marc4j.marc.Leader;
import org.marc4j.marc.Tag;
import org.marc4j.util.CharacterConverter;
import org.marc4j.util.CharacterConverterLoader;
import org.marc4j.util.CharacterConverterLoaderException;
import org.marc4j.util.AnselToUnicode;

/**
 * <p><code>MarcXmlFilter</code> is an <code>XMLFilter</code> that 
 * consumes <code>MarcHandler</code> events and reports events to 
 * a SAX2 <code>ContentHandler</code>.  </p>
 *
 * @deprecated This class has been replaced by 
 * {@link org.marc4j.marcxml.MarcXmlReader}
 * 
 * @author <a href="mailto:<EMAIL>"><NAME></a> 
 * @version $Revision: 1.16 $
 *
 * @see ExtendedFilter
 * @see MarcHandler
 * @see ContentHandler
{'fraction_non_alphanumeric': 0.10290497291974397, 'fraction_numerical': 0.027818808468734614, 'mean_word_length': 4.558139534883721, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 19}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2389266', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1305, 'n_words': 412}