|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.URLResource
public class URLResource
This class opens a connection to a resource pointed to by an URI. Note that JAR
resources should not be accessed this way because the default handler caches
JarFile instances and thus locks the file. This resource provider caches the
content of returned resources and closes the underlying stream handle in
open().
| Constructor Summary | |
|---|---|
URLResource(URL url)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
URL |
getUrl()
|
int |
hashCode()
|
InputStream |
open()
Open an input stream to the resource. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URLResource(URL url)
| Method Detail |
|---|
public InputStream open()
throws IOException
IResource
open in interface IResourceIOExceptionpublic String toString()
toString in class Objectpublic final boolean equals(Object obj)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic URL getUrl()
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||