Package com.l2fprod.util
Class ZipResourceLoader.ZipResource
- java.lang.Object
-
- com.l2fprod.util.ZipResourceLoader.ZipResource
-
- Enclosing class:
- ZipResourceLoader
public class ZipResourceLoader.ZipResource extends java.lang.ObjectA class that represents a file contained in a zip archive.- Author:
- fred
-
-
Constructor Summary
Constructors Constructor Description ZipResource(java.lang.String p_Name)Constructs a ZipResource object representing the file whose name is passed in.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()Opens an input stream from the file represented by this object.java.net.URLgetURL()Gets the URL of the file represented by this object.byte[]getURLContent()Returns the raw data contained in the file represented by this object.
-
-
-
Method Detail
-
getURL
public java.net.URL getURL() throws java.net.MalformedURLExceptionGets 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.
-
-