org.jruby.runtime.load
Class LoadServiceResource
java.lang.Object
org.jruby.runtime.load.LoadServiceResource
public class LoadServiceResource
- extends java.lang.Object
Simple struct to capture name seperate from URL. URL and File have internal
logic which does unexpected things when presenting the resource as a string.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadServiceResource
public LoadServiceResource(java.net.URL resource,
java.lang.String name)
LoadServiceResource
public LoadServiceResource(java.net.URL resource,
java.lang.String name,
boolean absolute)
LoadServiceResource
public LoadServiceResource(java.io.File path,
java.lang.String name)
LoadServiceResource
public LoadServiceResource(java.io.File path,
java.lang.String name,
boolean absolute)
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
getPath
public java.io.File getPath()
getURL
public java.net.URL getURL()
throws java.io.IOException
- Throws:
java.io.IOException
isAbsolute
public boolean isAbsolute()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.