本文整理了Java中org.apache.xml.utils.XMLReaderManager.releaseXMLReader()
方法的一些代码示例,展示了XMLReaderManager.releaseXMLReader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLReaderManager.releaseXMLReader()
方法的具体详情如下:
包路径:org.apache.xml.utils.XMLReaderManager
类名称:XMLReaderManager
方法名:releaseXMLReader
[英]Mark the cached XMLReader as available. If the reader was not actually in the cache, do nothing.
[中]将缓存的XMLReader标记为可用。如果读卡器实际上不在缓存中,则什么也不做。
代码示例来源:origin: robovm/robovm
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: xalan/xalan
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: xalan/xalan
public void parse (InputSource input) throws SAXException, IOException
{
XMLReader managedReader = null;
try {
if (getParent() == null) {
try {
managedReader = XMLReaderManager.getInstance()
.getXMLReader();
setParent(managedReader);
} catch (SAXException e) {
throw new SAXException(e.toString());
}
}
// call parse on the parent
getParent().parse(input);
} finally {
if (managedReader != null) {
XMLReaderManager.getInstance().releaseXMLReader(managedReader);
}
}
}
代码示例来源:origin: xalan/xalan
_readerManager.releaseXMLReader(reader);
} finally {
if (!userReader) {
_readerManager.releaseXMLReader(reader);
代码示例来源:origin: robovm/robovm
} finally {
if (managedReader) {
XMLReaderManager.getInstance().releaseXMLReader(reader);
代码示例来源:origin: plutext/docx4j
} finally {
if (managedReader) {
XMLReaderManager.getInstance().releaseXMLReader(reader);
代码示例来源:origin: xalan/xalan
} finally {
if (managedReader) {
XMLReaderManager.getInstance().releaseXMLReader(reader);
代码示例来源:origin: MobiVM/robovm
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: ibinti/bugvm
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Indicates that the XMLReader object is no longer in use for the transform.
*
* Note that the getXMLReader method may return an XMLReader that was
* specified on the SAXSource object by the application code. Such a
* reader should still be passed to releaseXMLReader, but the reader manager
* will only re-use XMLReaders that it created.
*
* @param reader The XMLReader to be released.
*/
synchronized public void releaseXMLReader(XMLReader reader) {
if (m_readerManager != null) {
m_readerManager.releaseXMLReader(reader);
}
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
public void parse (InputSource input) throws SAXException, IOException
{
XMLReader managedReader = null;
try {
if (getParent() == null) {
try {
managedReader = XMLReaderManager.getInstance()
.getXMLReader();
setParent(managedReader);
} catch (SAXException e) {
throw new SAXException(e.toString());
}
}
// call parse on the parent
getParent().parse(input);
} finally {
if (managedReader != null) {
XMLReaderManager.getInstance().releaseXMLReader(managedReader);
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
public void parse (InputSource input) throws SAXException, IOException
{
XMLReader managedReader = null;
try {
if (getParent() == null) {
try {
managedReader = XMLReaderManager.getInstance()
.getXMLReader();
setParent(managedReader);
} catch (SAXException e) {
throw new SAXException(e.toString());
}
}
// call parse on the parent
getParent().parse(input);
} finally {
if (managedReader != null) {
XMLReaderManager.getInstance().releaseXMLReader(managedReader);
}
}
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
public void parse (InputSource input) throws SAXException, IOException
{
XMLReader managedReader = null;
try {
if (getParent() == null) {
try {
managedReader = XMLReaderManager.getInstance()
.getXMLReader();
setParent(managedReader);
} catch (SAXException e) {
throw new SAXException(e.toString());
}
}
// call parse on the parent
getParent().parse(input);
} finally {
if (managedReader != null) {
XMLReaderManager.getInstance().releaseXMLReader(managedReader);
}
}
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
_readerManager.releaseXMLReader(reader);
} finally {
if (!userReader) {
_readerManager.releaseXMLReader(reader);
内容来源于网络,如有侵权,请联系作者删除!