com.sun.tlddoc
Class TLDFileTagLibrary

java.lang.Object
  extended by com.sun.tlddoc.TagLibrary
      extended by com.sun.tlddoc.TLDFileTagLibrary

public class TLDFileTagLibrary
extends TagLibrary

Tag library represented by a single standalone TLD file

Author:
mroth

Constructor Summary
TLDFileTagLibrary(java.io.File tldFile)
          Creates a new instance of TLDFileTagLibrary
 
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

TLDFileTagLibrary

public TLDFileTagLibrary(java.io.File tldFile)
Creates a new instance of TLDFileTagLibrary

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

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

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