com.sun.tlddoc
Class WARTagDirImplicitTagLibrary

java.lang.Object
  extended bycom.sun.tlddoc.TagLibrary
      extended bycom.sun.tlddoc.WARTagDirImplicitTagLibrary

public class WARTagDirImplicitTagLibrary
extends TagLibrary

Implicit Tag Library for a directory of tag files that is encapsulated in a WAR file.

Author:
mroth

Constructor Summary
WARTagDirImplicitTagLibrary(java.io.File war, java.lang.String dir)
          Creates a new instance of TagDirImplicitTagLibrary
 
Method Summary
 java.lang.String getPathDescription()
          Returns a String that the user would recognize as a location for this tag library.
 java.io.InputStream getResource(java.lang.String path)
          Returns an input stream for the given resource, or null if the resource could not be found.
 org.w3c.dom.Document getTLDDocument(javax.xml.parsers.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

WARTagDirImplicitTagLibrary

public WARTagDirImplicitTagLibrary(java.io.File war,
                                   java.lang.String dir)
Creates a new instance of TagDirImplicitTagLibrary

Method Detail

getPathDescription

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

Specified by:
getPathDescription in class TagLibrary

getResource

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

Specified by:
getResource in class TagLibrary
Throws:
java.io.IOException

getTLDDocument

public org.w3c.dom.Document getTLDDocument(javax.xml.parsers.DocumentBuilder documentBuilder)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException,
                                           javax.xml.parsers.ParserConfigurationException,
                                           javax.xml.transform.TransformerConfigurationException,
                                           javax.xml.transform.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.

Specified by:
getTLDDocument in class TagLibrary
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
GeneratorException