public class URLResource extends AbstractResourcesStorage.AbstractResource implements ResourcesStorage.Resource
name
Constructor and Description |
---|
URLResource(java.lang.String name,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
asInputStream() |
java.io.OutputStream |
asOutputStream() |
void |
close() |
boolean |
exists() |
java.net.URL |
getURL() |
boolean |
isReadOnly()
El recurso es de solo lectura, normalmente por que el tipo de recurso
no permite escribir sobre el.
|
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public boolean isReadOnly()
ResourcesStorage.Resource
isReadOnly
in interface ResourcesStorage.Resource
public java.net.URL getURL()
getURL
in interface ResourcesStorage.Resource
public boolean exists()
exists
in interface ResourcesStorage.Resource
public java.io.InputStream asInputStream() throws java.io.IOException
asInputStream
in interface ResourcesStorage.Resource
java.io.IOException
public java.io.OutputStream asOutputStream() throws java.io.IOException
asOutputStream
in interface ResourcesStorage.Resource
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface ResourcesStorage.Resource