| Constructor and Description |
|---|
EmptyResource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Indicates whether the resource exists or not
|
File |
getFile()
Get the
File associated with the resource |
InputStream |
getInputStream()
Get the
InputStream associated with the resource |
OutputStream |
getOutputStream()
Get the
OutputStream associated with the resource |
String |
getResourceName()
Get the resource name
|
URL |
getURL()
get the
URL associated with the resource |
public boolean exists()
Resourcepublic InputStream getInputStream() throws IOException
ResourceInputStream associated with the resourcegetInputStream in interface ResourceInputStreamIOException - if an IOException occurspublic OutputStream getOutputStream() throws IOException
ResourceOutputStream associated with the resourcegetOutputStream in interface ResourceOutputStreamIOException - if an IOException occurspublic URL getURL()
ResourceURL associated with the resourcepublic File getFile() throws Exception
ResourceFile associated with the resourcepublic String getResourceName()
ResourcegetResourceName in interface ResourceCopyright © 2014. All rights reserved.