com.l2fprod.util
Class ZipResourceLoader.ZipResource

java.lang.Object
  extended by com.l2fprod.util.ZipResourceLoader.ZipResource
Enclosing class:
ZipResourceLoader

public class ZipResourceLoader.ZipResource
extends java.lang.Object

A class that represents a file contained in a zip archive.

Author:
fred

Constructor Summary
ZipResourceLoader.ZipResource(java.lang.String p_Name)
          Constructs a ZipResource object representing the file whose name is passed in.
 
Method Summary
 java.io.InputStream getInputStream()
          Opens an input stream from the file represented by this object.
 java.net.URL getURL()
          Gets the URL of the file represented by this object.
 byte[] getURLContent()
          Returns the raw data contained in the file represented by this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipResourceLoader.ZipResource

public ZipResourceLoader.ZipResource(java.lang.String p_Name)
Constructs a ZipResource object representing the file whose name is passed in.

Parameters:
p_Name - Name of the file.
Method Detail

getURL

public java.net.URL getURL()
                    throws java.net.MalformedURLException
Gets the URL of the file represented by this object.

Returns:
The URL.
Throws:
java.net.MalformedURLException - If the URL if malformed.

getInputStream

public java.io.InputStream getInputStream()
Opens an input stream from the file represented by this object.

Returns:
The InputStream.

getURLContent

public byte[] getURLContent()
Returns the raw data contained in the file represented by this object.

Returns:
The data contained in the file.