public class ZipResourcesStorage.ZipFileResource extends AbstractDataResource implements ResourcesStorage.Resource
Constructor and Description |
---|
ZipFileResource(java.io.File zipFile,
java.lang.String tableName,
java.lang.String resourceName) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
asInputStream() |
java.io.OutputStream |
asOutputStream() |
void |
close() |
boolean |
exists() |
java.lang.String |
getName()
Return the name of the resource.
|
java.net.URL |
getURL() |
boolean |
isReadOnly()
El recurso es de solo lectura, normalmente por que el tipo de recurso
no permite escribir sobre el.
|
public ZipFileResource(java.io.File zipFile, java.lang.String tableName, java.lang.String resourceName)
public java.lang.String getName()
ResourcesStorage.Resource
getName
in interface ResourcesStorage.Resource
public boolean isReadOnly()
ResourcesStorage.Resource
isReadOnly
in interface ResourcesStorage.Resource
public final java.net.URL getURL()
getURL
in interface ResourcesStorage.Resource
getURL
in class AbstractDataResource
public boolean exists()
exists
in interface ResourcesStorage.Resource
exists
in class AbstractDataResource
public java.io.InputStream asInputStream() throws java.io.IOException
asInputStream
in interface ResourcesStorage.Resource
asInputStream
in class AbstractDataResource
java.io.IOException
public java.io.OutputStream asOutputStream() throws java.io.IOException
asOutputStream
in interface ResourcesStorage.Resource
asOutputStream
in class AbstractDataResource
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface ResourcesStorage.Resource
close
in class AbstractDataResource