Package com.l2fprod.util
Class ZipResourceLoader.ZipResource
java.lang.Object
com.l2fprod.util.ZipResourceLoader.ZipResource
- Enclosing class:
ZipResourceLoader
A class that represents a file contained in a zip archive.
- Author:
- fred
-
Constructor Summary
ConstructorsConstructorDescriptionZipResource
(String p_Name) Constructs a ZipResource object representing the file whose name is passed in. -
Method Summary
Modifier and TypeMethodDescriptionOpens an input stream from the file represented by this object.getURL()
Gets the URL of the file represented by this object.byte[]
Returns the raw data contained in the file represented by this object.
-
Constructor Details
-
ZipResource
Constructs a ZipResource object representing the file whose name is passed in.- Parameters:
p_Name
- Name of the file.
-
-
Method Details
-
getURL
Gets the URL of the file represented by this object.- Returns:
- The URL.
- Throws:
MalformedURLException
- If the URL if malformed.
-
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.
-