com.sun.tlddoc
Class TagLibrary

java.lang.Object
  extended by com.sun.tlddoc.TagLibrary
Direct Known Subclasses:
JARTLDFileTagLibrary, TagDirImplicitTagLibrary, TLDFileTagLibrary, WARJARTLDFileTagLibrary, WARTagDirImplicitTagLibrary

public abstract class TagLibrary
extends Object

Base class for a tag library source. Different tag libraries will locate resources, such as tag files, in different ways.

Author:
mroth

Constructor Summary
TagLibrary()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagLibrary

public TagLibrary()
Method Detail

getPathDescription

public abstract String getPathDescription()
Returns a String that the user would recognize as a location for this tag library.


getTLDDocument

public abstract Document getTLDDocument(DocumentBuilder documentBuilder)
                                 throws IOException,
                                        SAXException,
                                        ParserConfigurationException,
                                        TransformerConfigurationException,
                                        TransformerException,
                                        GeneratorException
Returns a Document of the effective tag library descriptor for this tag library. This might come from a file or be implicitly generated.

Throws:
IOException
SAXException
ParserConfigurationException
TransformerConfigurationException
TransformerException
GeneratorException

getResource

public abstract InputStream getResource(String path)
                                 throws IOException
Returns an input stream for the given resource, or null if the resource could not be found.

Throws:
IOException


Copyright © 2003-2012 sun. All Rights Reserved.