oracle.jdeveloper.compiler
Class JarStorage
java.lang.Object
oracle.jdeveloper.compiler.JarStorage
- public class JarStorage
- extends java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
-
- Throws:
java.io.IOException
open
public Storage open(java.lang.String name)
openDir
public Storage openDir(java.lang.String name)
read
public byte[] read()
throws java.io.IOException
-
- Throws:
java.io.IOException
read
public int read(byte[] buf)
throws java.io.IOException
-
- Throws:
java.io.IOException
setContext
public Storage setContext(Storage newContext)
setPackage
public void setPackage(java.lang.String packageName)
write
public void write(byte[] xs,
int start,
int len)
throws java.io.IOException
-
- Throws:
java.io.IOException
create
public Storage create(java.lang.String name)
throws java.io.IOException
-
- Throws:
java.io.IOException
createDir
public Storage createDir(java.lang.String name)
throws java.io.IOException
-
- Throws:
java.io.IOException
Copyright © 1997, 2004, Oracle. All rights reserved.