|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jdeveloper.compiler.JarStorage
public class JarStorage
Implementation of Storage interface for jar entries. This is basically a wrapper for URLFileSystem.
| Constructor Summary | |
|---|---|
JarStorage(java.net.URL jarURL)The implementation assumes that the jar URL uses the "file" protocol for the jar file. |
|
| Method Summary | |
|---|---|
void |
close()Closes a Storage that previously opened for data access. |
Storage |
create(java.lang.String name)Creates a new Storage for data access if doesn't exists yet. |
Storage |
createDir(java.lang.String name)Creates a new directory Storage if doesn't exists yet. |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCanonicalPath()Returns the canonical path name of this Storage. |
java.lang.String |
getName()Returns the name of this Storage (without leading directories). |
java.lang.String |
getParent() |
java.lang.String |
getPath()Returns the path name of this Storage. |
java.lang.Object |
getProperty(java.lang.String property)Queries custom property associated with this Storage. |
java.net.URL |
getURL() |
int |
hashCode() |
boolean |
isDirectory()Indicates whether this is a directory Storage. |
boolean |
isInJar()is this store contained in a zip/jar file? |
java.lang.String[] |
list()Lists all names of Storages within this directory Storage. |
java.util.ArrayList |
listStorage()Lists all Storages within this directory Storage. |
long |
modDate()Returns date of last modification of this Storage. |
void |
open()Opens a Storage for access. |
Storage |
open(java.lang.String name)Opens a Storage for access. |
Storage |
openDir(java.lang.String name) |
byte[] |
read()Reads the entire contents of this data Storage. |
int |
read(byte[] buf)Tries to fill a buffer with data from contents of this Storage. |
Storage |
setContext(Storage newContext) |
void |
setPackage(java.lang.String packageName) |
void |
setProperty(java.lang.String property, java.lang.Object value)Allows association of custom properties with this Storage. |
int |
size()Returns the size of contents of this data Storage. |
java.lang.String |
toString() |
void |
write(byte[] xs, int start, int len)Write the contents of a byte array into this Storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JarStorage(java.net.URL jarURL)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic long modDate()
StoragemodDate in interface Storagepublic java.net.URL getURL()
public java.lang.String getName()
StoragegetName in interface Storagepublic java.lang.String getPath()
StoragegetPath in interface Storagepublic java.lang.String getCanonicalPath()
StoragegetCanonicalPath in interface Storagepublic java.lang.String getParent()
public java.lang.Object getProperty(java.lang.String property)
StoragegetProperty in interface Storageproperty - property key
public void setProperty(java.lang.String property,
java.lang.Object value)
StoragesetProperty in interface Storageproperty - property keyvalue - property valuepublic boolean isDirectory()
StorageisDirectory in interface Storagepublic boolean isInJar()
isInJar in interface Storagepublic void close()
Storageclose in interface Storage
public int size()
throws java.io.IOException
Storagesize in interface Storagejava.io.IOExceptionpublic java.util.ArrayList listStorage()
StoragelistStorage in interface Storagepublic java.lang.String[] list()
Storagelist in interface Storage
public void open()
throws java.io.IOException
Storageopen in interface Storagejava.io.IOExceptionpublic Storage open(java.lang.String name)
Storageopen in interface Storagename - of Storage to be accessedpublic Storage openDir(java.lang.String name)
public byte[] read()
throws java.io.IOException
Storageread in interface Storagejava.io.IOException
public int read(byte[] buf)
throws java.io.IOException
Storageread in interface Storagebuf - buffer to be filledjava.io.IOExceptionpublic Storage setContext(Storage newContext)
public void setPackage(java.lang.String packageName)
public void write(byte[] xs,
int start,
int len)
throws java.io.IOException
Storagewrite in interface Storagexs - buffer to be writtenstart - offset within buffer where data startslen - amount of data from buffer to be writtenjava.io.IOException
public Storage create(java.lang.String name)
throws java.io.IOException
Storagecreate in interface Storagename - of Storage to be createdjava.io.IOException
public Storage createDir(java.lang.String name)
throws java.io.IOException
StoragecreateDir in interface Storagename - of Storage to be createdjava.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||