org.allcolor.yahp.converter
Class CMemoryURLHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.allcolor.yahp.converter.CMemoryURLHandler

public class CMemoryURLHandler
extends java.net.URLStreamHandler


Field Summary
private static CMemoryURLHandler handler
           
private static java.util.Map mapMem
           
 
Constructor Summary
CMemoryURLHandler()
           
 
Method Summary
protected static java.net.URL createMemoryURL(java.lang.String entryName, byte[] entry)
           
static CMemoryURLHandler getInstance()
           
protected  java.net.URLConnection openConnection(java.net.URL u)
           
protected static void releaseMemoryURL(java.net.URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

private static CMemoryURLHandler handler

mapMem

private static java.util.Map mapMem
Constructor Detail

CMemoryURLHandler

public CMemoryURLHandler()
Method Detail

getInstance

public static CMemoryURLHandler getInstance()

createMemoryURL

protected static java.net.URL createMemoryURL(java.lang.String entryName,
                                              byte[] entry)
                                       throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

releaseMemoryURL

protected static void releaseMemoryURL(java.net.URL u)

openConnection

protected java.net.URLConnection openConnection(java.net.URL u)
                                         throws java.io.IOException
Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException