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.7 2001/08/07 21:58:18 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 © 2003 Apache Software Foundation. All Rights Reserved.