Class ZipResourceLoader.ZipResource

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

public class ZipResourceLoader.ZipResource extends Object
A class that represents a file contained in a zip archive.
Author:
fred
  • Constructor Details

    • ZipResource

      public ZipResource(String p_Name)
      Constructs a ZipResource object representing the file whose name is passed in.
      Parameters:
      p_Name - Name of the file.
  • Method Details

    • getURL

      public URL getURL() throws MalformedURLException
      Gets the URL of the file represented by this object.
      Returns:
      The URL.
      Throws:
      MalformedURLException - If the URL if malformed.
    • getInputStream

      public 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.