org.knopflerfish.framework
Class ContentHandlerWrapper
java.lang.Object
java.net.ContentHandler
org.knopflerfish.framework.ContentHandlerWrapper
public class ContentHandlerWrapper
- extends java.net.ContentHandler
Wrapper which delegates an Mime ContentHandlers
OSGi registered ContentHandlers
Each instance of ContentHandlerWrapper tracks ContentHandlers
for a named mime type and selects the best from all available services.
Method Summary |
java.lang.Object |
getContent(java.net.URLConnection urlc)
|
java.lang.Object |
getContent(java.net.URLConnection urlc,
java.lang.Class[] classes)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getContent
public java.lang.Object getContent(java.net.URLConnection urlc)
throws java.io.IOException
- Specified by:
getContent
in class java.net.ContentHandler
- Throws:
java.io.IOException
getContent
public java.lang.Object getContent(java.net.URLConnection urlc,
java.lang.Class[] classes)
throws java.io.IOException
- Overrides:
getContent
in class java.net.ContentHandler
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object