Extension SDK 10.1.2

oracle.jdeveloper.compiler
Class JarStorage

java.lang.Object
  extended byoracle.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.
 
Method Summary
 void close()
           
 Storage create(java.lang.String name)
           
 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()
           
 Storage open(java.lang.String name)
           
 Storage openDir(java.lang.String name)
           
 byte[] read()
           
 int read(byte[] buf)
           
 Storage setContext(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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.