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.openqa.selenium.server
Class ClassPathResource

    java.lang.Object
      org.mortbay.util.Resource
          org.openqa.selenium.server.ClassPathResource

All Implemented Interfaces:
  java.io.Serializable

public class ClassPathResource
extends org.mortbay.util.Resource

Represents resource file off of the classpath.

Author:
  Patrick Lightbody (plightbo at gmail dot com)
See Also:
  Serialized Form

Constructor Summary
`ClassPathResource(java.lang.String path)` Specifies the classpath path containing the resource

Method Summary
`org.mortbay.util.Resource` | `addPath(java.lang.String pathParm)`
`boolean` | `delete()`
`boolean` | `exists()`
`java.lang.Object` | `getAssociate()`
`java.io.File` | `getFile()`
`java.io.InputStream` | `getInputStream()`
`java.lang.String` | `getName()`
`java.io.OutputStream` | `getOutputStream()`
`java.net.URL` | `getURL()`
`boolean` | `isDirectory()`
`long` | `lastModified()` Returns the lastModified time, which is always in the distant future to prevent caching.
`long` | `length()`
`java.lang.String[]` | `list()`
`void` | `release()`
`boolean` | `renameTo(org.mortbay.util.Resource dest)`

Methods inherited from class org.mortbay.util.Resource
`cache, encode, finalize, getAlias, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo`

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

Constructor Detail

### ClassPathResource

    public ClassPathResource(java.lang.String path)

  Specifies the classpath path containing the resource

Method Detail

### getAssociate

    public java.lang.Object getAssociate()

### release

    public void release()

### exists

    public boolean exists()

### isDirectory

    public boolean isDirectory()

### lastModified

    public long lastModified()

  Returns the lastModified time, which is always in the distant future to prevent caching.

### length

    public long length()

### getURL

    public java.net.URL getURL()

### getFile

    public java.io.File getFile()
                         throws java.io.IOException

  Throws:
    `java.io.IOException`

### getName

    public java.lang.String getName()

### getInputStream

    public java.io.InputStream getInputStream()
                                       throws java.io.IOException

  Throws:
    `java.io.IOException`

### getOutputStream

    public java.io.OutputStream getOutputStream()
                                         throws java.io.IOException,
                                                java.lang.SecurityException

  Throws:
    `java.io.IOException`
    `java.lang.SecurityException`

### delete

    public boolean delete()
                   throws java.lang.SecurityException

  Throws:
    `java.lang.SecurityException`

### renameTo

    public boolean renameTo(org.mortbay.util.Resource dest)
                     throws java.lang.SecurityException

  Throws:
    `java.lang.SecurityException`

### list

    public java.lang.String[] list()

### addPath

    public org.mortbay.util.Resource addPath(java.lang.String pathParm)
                                      throws java.io.IOException,
                                             java.net.MalformedURLException

  Throws:
    `java.io.IOException`
    `java.net.MalformedURLException`

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 © 2006 null. All Rights Reserved.