org.amberarcher.xml.tool.highlight
Class HighlightEngine
java.lang.Object
|
+--org.amberarcher.xml.tool.highlight.HighlightEngine
- All Implemented Interfaces:
- HighlightContext
- public class HighlightEngine
- extends java.lang.Object
- implements HighlightContext
Class that encapsulates the transformation from marked-up XHTML to plain XHTML
with mark-up representing highlighted source.
- Version:
- Revision$
- Author:
- Kyle F. Downey (Amber Archer)
Method Summary |
void |
addHighlighter(java.lang.String nsUri,
java.lang.String nodeName,
org.amberarcher.xml.tool.highlight.Highlighter h)
|
void |
highlight(org.xml.sax.InputSource src,
javax.xml.transform.Result res)
|
java.net.URL |
resolveRelativeUri(java.lang.String uri)
Takes a URL (usually an include URL) relative to the host document
and resolves it to a fully-qualified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HighlightEngine
public HighlightEngine()
highlight
public void highlight(org.xml.sax.InputSource src,
javax.xml.transform.Result res)
throws HighlightException
HighlightException
addHighlighter
public void addHighlighter(java.lang.String nsUri,
java.lang.String nodeName,
org.amberarcher.xml.tool.highlight.Highlighter h)
resolveRelativeUri
public java.net.URL resolveRelativeUri(java.lang.String uri)
throws java.net.MalformedURLException
- Description copied from interface:
HighlightContext
- Takes a URL (usually an include URL) relative to the host document
and resolves it to a fully-qualified URL.
- Specified by:
resolveRelativeUri
in interface HighlightContext
java.net.MalformedURLException
Copyright © 2003 Amber Archer Consulting, Inc.. All Rights Reserved.