|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jdeveloper.compiler.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()
Return the canonical path name of this storage. |
java.lang.String |
getName()
Return the name of this storage (without leading directories). |
java.lang.String |
getParent()
|
java.lang.String |
getPath()
Return 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()
Return 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()
Return 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)
public int hashCode()
public java.lang.String toString()
public long modDate()
Storage
modDate in interface Storagepublic java.net.URL getURL()
public java.lang.String getName()
Storage
getName in interface Storagepublic java.lang.String getPath()
Storage
getPath in interface Storagepublic java.lang.String getCanonicalPath()
Storage
getCanonicalPath in interface Storagepublic java.lang.String getParent()
public java.lang.Object getProperty(java.lang.String property)
Storage
getProperty in interface Storageproperty - property key
public void setProperty(java.lang.String property,
java.lang.Object value)
Storage
setProperty in interface Storageproperty - property keyvalue - property valuepublic boolean isDirectory()
Storage
isDirectory in interface Storagepublic boolean isInJar()
isInJar in interface Storagepublic void close()
Storage
close in interface Storage
public int size()
throws java.io.IOException
Storage
size in interface Storagejava.io.IOExceptionpublic java.util.ArrayList listStorage()
Storage
listStorage in interface Storagepublic java.lang.String[] list()
Storage
list in interface Storage
public void open()
throws java.io.IOException
Storage
open in interface Storagejava.io.IOExceptionpublic Storage open(java.lang.String name)
Storage
open in interface Storagename - of storage to be accessed
public Storage openDir(java.lang.String name)
public byte[] read()
throws java.io.IOException
Storage
read in interface Storagejava.io.IOException
public int read(byte[] buf)
throws java.io.IOException
Storage
read in interface Storagebuf - buffer to be filled
java.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
Storage
write in interface Storagexs - buffer to be writtenstart - offset within buffer where data startslen - amount of data from buffer to be written
java.io.IOException
public Storage create(java.lang.String name)
throws java.io.IOException
Storage
create in interface Storagename - of storage to be created
java.io.IOException
public Storage createDir(java.lang.String name)
throws java.io.IOException
Storage
createDir in interface Storagename - of storage to be created
java.io.IOException
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.