org.gmetrics.util.io
Class UrlResource
java.lang.Object
org.gmetrics.util.io.UrlResource
- All Implemented Interfaces:
- groovy.lang.GroovyObject, Resource
public class UrlResource
- extends java.lang.Object
- implements groovy.lang.GroovyObject, Resource
A Resource implementation based on java.net.URL.
This is an internal class and its API is subject to change.
- Version:
- $Revision: 24 $ - $Date: 2009-12-10 21:17:05 -0500 (Thu, 10 Dec 2009) $
- Author:
- Chris Mair
|
Constructor Summary |
UrlResource(java.lang.String path)
Construct a new FileResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlResource
public UrlResource(java.lang.String path)
- Construct a new FileResource
getPath
public final java.lang.String getPath()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Open a FileInputStream on the file
- Specified by:
getInputStream in interface Resource
- Throws:
java.io.IOException - - if an error occurs opening the InputStream
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
Copyright © 2010. All Rights Reserved.