com.sun.tlddoc
Class WARJARTLDFileTagLibrary

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

public class WARJARTLDFileTagLibrary
extends TagLibrary

Tag library that gets its information from a TLD file in a JAR that's packaged inside a WAR.

Author:
mroth

Constructor Summary
WARJARTLDFileTagLibrary(java.io.File war, java.lang.String warEntryName, java.lang.String tldPath)
          Creates a new instance of JARTLDFileTagLibrary
 
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

WARJARTLDFileTagLibrary

public WARJARTLDFileTagLibrary(java.io.File war,
                               java.lang.String warEntryName,
                               java.lang.String tldPath)
Creates a new instance of JARTLDFileTagLibrary

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