JarHolder (Velocity 1.7 API)
Keywords: org.apache.velocity.runtime.resource.loader.JarHolder class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.runtime.resource.loader
Class JarHolder

    java.lang.Object
      org.apache.velocity.runtime.resource.loader.JarHolder

public class JarHolder
extends Object

A small wrapper around a Jar

Version:
  $Id: JarHolder.java 687177 2008-08-19 22:00:32Z nbubna $
Author:
  Dave Bryson

Constructor Summary
`JarHolder(RuntimeServices rs, String urlpath)`

Method Summary
`void` | `close()`
`Hashtable` | `getEntries()`
`InputStream` | `getResource(String theentry)`
`String` | `getUrlPath()`
`void` | `init()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JarHolder

    public JarHolder(RuntimeServices rs,
                     String urlpath)

Parameters:
  `rs` -
  `urlpath` -

Method Detail

### init

    public void init()

### close

    public void close()

### getResource

    public InputStream getResource(String theentry)
                            throws ResourceNotFoundException

  Parameters:
    `theentry` -
  Returns:
    The requested resource.
  Throws:
    `ResourceNotFoundException`

### getEntries

    public Hashtable getEntries()

  Returns:
    The entries of the jar as a hashtable.

### getUrlPath

    public String getUrlPath()

  Returns:
    The URL path of this jar holder.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.