|
Carrot2 v3.3.0
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.FileResource
public final class FileResource
A local filesystem resource.
| Constructor Summary | |
|---|---|
FileResource(File file)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
File |
getFile()
|
int |
hashCode()
|
InputStream |
open()
Open an input stream to the resource. |
String |
toString()
|
static FileResource |
valueOf(String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileResource(File file)
| Method Detail |
|---|
public InputStream open()
throws IOException
IResource
open in interface IResourceIOExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic File getFile()
public static FileResource valueOf(String path)
|
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 | ||||||||