com.l2fprod.util
Class ZipResourceLoader

java.lang.Object
  |
  +--com.l2fprod.util.ZipResourceLoader

public class ZipResourceLoader
extends java.lang.Object

Description of the Class


Inner Class Summary
 class ZipResourceLoader.ZipResource
          Description of the Class
 
Constructor Summary
ZipResourceLoader(java.net.URL p_JarUrl)
          Constructor for the ZipResourceLoader object
 
Method Summary
 void dump()
          Description of the Method
 java.util.Enumeration entries()
          Description of the Method
 java.net.URL getResource(java.lang.String name)
          Gets the Resource attribute of the ZipResourceLoader object
 java.io.InputStream getResourceAsStream(java.lang.String name)
          Gets the ResourceAsStream attribute of the ZipResourceLoader object
 ZipResourceLoader.ZipResource getZipResource(java.lang.String name)
          Gets the ZipResource attribute of the ZipResourceLoader object
 ZipResourceLoader.ZipResource getZipResource(java.net.URL name)
          Gets the ZipResource attribute of the ZipResourceLoader object
static void main(java.lang.String[] args)
          The main program for the ZipResourceLoader class
 void release()
          Description of the Method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipResourceLoader

public ZipResourceLoader(java.net.URL p_JarUrl)
                  throws java.lang.Exception
Constructor for the ZipResourceLoader object
Parameters:
p_JarUrl - Description of Parameter
Throws:
java.lang.Exception - Description of Exception
Method Detail

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)
                                        throws java.net.MalformedURLException,
                                               java.io.IOException
Gets the ResourceAsStream attribute of the ZipResourceLoader object
Parameters:
name - Description of Parameter
Returns:
The ResourceAsStream value
Throws:
java.net.MalformedURLException - Description of Exception
java.io.IOException - Description of Exception

getResource

public java.net.URL getResource(java.lang.String name)
                         throws java.net.MalformedURLException
Gets the Resource attribute of the ZipResourceLoader object
Parameters:
name - Description of Parameter
Returns:
The Resource value
Throws:
java.net.MalformedURLException - Description of Exception

getZipResource

public ZipResourceLoader.ZipResource getZipResource(java.lang.String name)
Gets the ZipResource attribute of the ZipResourceLoader object
Parameters:
name - Description of Parameter
Returns:
The ZipResource value

getZipResource

public ZipResourceLoader.ZipResource getZipResource(java.net.URL name)
Gets the ZipResource attribute of the ZipResourceLoader object
Parameters:
name - Description of Parameter
Returns:
The ZipResource value

entries

public java.util.Enumeration entries()
Description of the Method
Returns:
Description of the Returned Value

dump

public void dump()
Description of the Method

release

public void release()
Description of the Method

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main program for the ZipResourceLoader class
Parameters:
args - The command line arguments
Throws:
java.lang.Exception - Description of Exception


Copyright © 2000-2002 L2FProd.com. All Rights Reserved.