public abstract class TagLibrary extends Object implements AutoCloseable
Constructor and Description |
---|
TagLibrary() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
abstract String |
getPathDescription()
Returns a String that the user would recognize as a location for this
tag library.
|
abstract InputStream |
getResource(String path)
Returns an input stream for the given resource, or
null if the
resource could not be found. |
abstract Document |
getTLDDocument(DocumentBuilder documentBuilder)
Returns a Document of the effective tag library descriptor for this
tag library.
|
public abstract String getPathDescription()
public abstract Document getTLDDocument(DocumentBuilder documentBuilder) throws IOException, SAXException, TransformerException
documentBuilder
- DocumentBuilder
to obtain DOM Document for
creating an XML-document.IOException
- if an I/O error has occurredSAXException
- If any parse errors occurTransformerException
- If an unrecoverable error occurs
during the course of the transformationpublic abstract InputStream getResource(String path) throws IOException
null
if the
resource could not be found.path
- the path to the resourcenull
if the
resource could not be foundIOException
- if an I/O error has occurredpublic abstract void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2003–2022 Web-Legacy. All rights reserved.