oracle.jdeveloper.compiler
Class JarStorage
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()
|
oracle.ojc.interfaces.Storage |
create(java.lang.String name)
|
oracle.ojc.interfaces.Storage |
createDir(java.lang.String name)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getCanonicalPath()
|
java.lang.String |
getName()
|
java.lang.String |
getParent()
|
java.lang.String |
getPath()
|
java.lang.Object |
getProperty(java.lang.String property)
|
java.net.URL |
getURL()
|
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isInJar()
is this store contained in a zip/jar file? |
java.lang.String[] |
list()
|
long |
modDate()
|
oracle.ojc.interfaces.Storage |
open(java.lang.String name)
|
oracle.ojc.interfaces.Storage |
openDir(java.lang.String name)
|
byte[] |
read()
|
int |
read(byte[] buf)
|
oracle.ojc.interfaces.Storage |
setContext(oracle.ojc.interfaces.Storage newContext)
|
void |
setPackage(java.lang.String packageName)
|
void |
setProperty(java.lang.String property,
java.lang.Object value)
|
java.lang.String |
toString()
|
void |
write(byte[] xs,
int start,
int len)
|
JarStorage
public JarStorage(java.net.URL jarURL)
- The implementation assumes that the jar URL uses the "file"
protocol for the jar file. This code will need to be updated
if other protocols need to be supported.
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
toString
public java.lang.String toString()
modDate
public long modDate()
getURL
public java.net.URL getURL()
getName
public java.lang.String getName()
getPath
public java.lang.String getPath()
getCanonicalPath
public java.lang.String getCanonicalPath()
getParent
public java.lang.String getParent()
getProperty
public java.lang.Object getProperty(java.lang.String property)
setProperty
public void setProperty(java.lang.String property,
java.lang.Object value)
isDirectory
public boolean isDirectory()
isInJar
public boolean isInJar()
- is this store contained in a zip/jar file?
close
public void close()
list
public java.lang.String[] list()
throws java.io.IOException
open
public oracle.ojc.interfaces.Storage open(java.lang.String name)
openDir
public oracle.ojc.interfaces.Storage openDir(java.lang.String name)
read
public byte[] read()
throws java.io.IOException
read
public int read(byte[] buf)
throws java.io.IOException
setContext
public oracle.ojc.interfaces.Storage setContext(oracle.ojc.interfaces.Storage newContext)
setPackage
public void setPackage(java.lang.String packageName)
write
public void write(byte[] xs,
int start,
int len)
throws java.io.IOException
create
public oracle.ojc.interfaces.Storage create(java.lang.String name)
throws java.io.IOException
createDir
public oracle.ojc.interfaces.Storage createDir(java.lang.String name)
throws java.io.IOException