|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.source.util.SourceUtil org.apache.cocoon.components.source.SourceUtil
This class contains some utility methods for the source resolving.
Field Summary |
Fields inherited from class org.apache.cocoon.components.source.util.SourceUtil |
uripattern |
Constructor Summary | |
SourceUtil()
|
Method Summary | |
static Document |
toDOM(Source source)
Generates a DOM from the given source |
static void |
toSAX(Source source,
ContentHandler handler)
Generates SAX events from the given source. |
static void |
toSAX(Source source,
ContentHandler handler,
Parameters typeParameters,
boolean filterDocumentEvent)
Generates SAX events from the given source with possible URL rewriting. |
static void |
toSAX(Source source,
String mimeTypeHint,
ContentHandler handler)
Generates SAX events from the given source by using XMLizer. |
Methods inherited from class org.apache.cocoon.components.source.util.SourceUtil |
getAuthority, getFragment, getInputSource, getPath, getPathWithoutAuthority, getQuery, getScheme, getSource, handle, handle, handleSAXException, parse, parse, toCharacters, toDOM, toDOM, toSAX, toSAX, toSAX, toSAX, toSAX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SourceUtil()
Method Detail |
public static void toSAX(Source source, ContentHandler handler) throws SAXException, IOException, org.apache.cocoon.ProcessingException
NOTE: If the implementation can produce lexical events,
care should be taken that handler
can actually
directly implement the LexicalHandler interface!
source
- the data
org.apache.cocoon.ProcessingException
- if no suitable converter is found
SAXException
IOException
public static void toSAX(Source source, String mimeTypeHint, ContentHandler handler) throws SAXException, IOException, org.apache.cocoon.ProcessingException
NOTE: If the implementation can produce lexical events,
care should be taken that handler
can actually
directly implement the LexicalHandler interface!
source
- the data
org.apache.cocoon.ProcessingException
- if no suitable converter is found
SAXException
IOException
public static void toSAX(Source source, ContentHandler handler, Parameters typeParameters, boolean filterDocumentEvent) throws SAXException, IOException, org.apache.cocoon.ProcessingException
NOTE: If the implementation can produce lexical events,
care should be taken that handler
can actually
directly implement the LexicalHandler interface!
source
- the data
org.apache.cocoon.ProcessingException
- if no suitable converter is found
SAXException
IOException
public static Document toDOM(Source source) throws SAXException, IOException, org.apache.cocoon.ProcessingException
source
- The data
IOException
- If a io exception occurs.
org.apache.cocoon.ProcessingException
- if no suitable converter is found
SAXException
- If a SAX exception occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |