org.jruby.runtime.load
Class LoadServiceResource

java.lang.Object
  extended by 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.


Constructor Summary
LoadServiceResource(java.io.File path, java.lang.String name)
           
LoadServiceResource(java.io.File path, java.lang.String name, boolean absolute)
           
LoadServiceResource(java.net.URL resource, java.lang.String name)
           
LoadServiceResource(java.net.URL resource, java.lang.String name, boolean absolute)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.File getPath()
           
 java.net.URL getURL()
           
 boolean isAbsolute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.