org.apache.velocity.runtime.resource.loader

Class JarHolder


public class JarHolder
extends java.lang.Object

A small wrapper around a Jar
Version:
$Id: JarHolder.java,v 1.8.4.1 2004/03/03 23:23:02 geirm Exp $
Author:
Dave Bryson

Field Summary

private JarURLConnection
conn
private RuntimeServices
rsvc
private JarFile
theJar
private String
urlpath

Constructor Summary

JarHolder(RuntimeServices rs, String urlpath)

Method Summary

void
close()
Hashtable
getEntries()
InputStream
getResource(String theentry)
String
getUrlPath()
void
init()

Field Details

conn

private JarURLConnection conn

rsvc

private RuntimeServices rsvc

theJar

private JarFile theJar

urlpath

private String urlpath

Constructor Details

JarHolder

public JarHolder(RuntimeServices rs,
                 String urlpath)

Method Details

close

public void close()

getEntries

public Hashtable getEntries()

getResource

public InputStream getResource(String theentry)
            throws ResourceNotFoundException

getUrlPath

public String getUrlPath()

init

public void init()

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.