public class FileResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
static String |
NAME |
lock, multiResourcelock| Constructor and Description |
|---|
FileResource(FileResourceParameters params) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Returns the real resource represented by this object.
|
File |
getFile() |
FileInputStream |
getFileInputStream() |
String |
getFileName() |
String |
getName()
Returns the name of the
Resource. |
boolean |
isThis(ResourceParameters parameters) |
addConsumer, addObserver, addObservers, closeRequest, deleteObserver, deleteObservers, execute, executeBegins, executeEnds, getConsumerAt, getConsumersCount, getData, getLastTimeOpen, getLastTimeUsed, getParameters, inUse, isOpen, notifyChanges, notifyClose, notifyDispose, notifyObserver, notifyOpen, openCount, performExecution, prepare, prepare, removeConsumer, setData, updateLastTimeOpen, updateLastTimeUsedpublic static final String NAME
public static final String DESCRIPTION
public FileResource(FileResourceParameters params) throws InitializeException
InitializeExceptionpublic Object get() throws AccessResourceException
AbstractResourceget in interface Resourceget in class AbstractResourceAccessResourceException - if there is an error while accessing the resourcepublic String getFileName() throws AccessResourceException
AccessResourceExceptionpublic File getFile() throws AccessResourceException
AccessResourceExceptionpublic FileInputStream getFileInputStream() throws AccessResourceException, FileNotFoundException
public String getName() throws AccessResourceException
AbstractResourceResource.getName in interface ResourcegetName in class AbstractResourceAccessResourceException - if there is an error while accessing the resourcepublic boolean isThis(ResourceParameters parameters) throws ResourceException
ResourceException