Java XML SAX Parser releaseSAXParser(SAXParser parser)

Here you can find the source of releaseSAXParser(SAXParser parser)

Description

release SAX Parser

License

Open Source License

Declaration

public static synchronized void releaseSAXParser(SAXParser parser) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2011 UCLA Medical Imaging Informatics Group
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 ******************************************************************************/

import java.util.Stack;
import javax.xml.parsers.SAXParser;

public class Main {
    private static Stack stack = null;

    public static synchronized void releaseSAXParser(SAXParser parser) {
        stack.push(parser);/*from   w w  w .  j  av  a 2 s. c  o m*/
    }
}

Related

  1. load(InputStream is, DefaultHandler handler)
  2. newInstance()
  3. newXMLReader()
  4. read(InputStream is, DefaultHandler h)
  5. readSchemaFromFile(File schemaFile)
  6. urlToSchema(final URL url)
  7. xmlReader()