|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.compiler.IdeStorage
public class IdeStorage
The IdeStorage
implements compiler Storage interface and manages input/output for files stored in the IDE process memory.
Storage
Field Summary | |
---|---|
Node |
node |
Constructor Summary | |
---|---|
IdeStorage(Node node) |
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 other) |
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. |
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 |
Field Detail |
---|
public Node node
Constructor Detail |
---|
public IdeStorage(Node node)
Method Detail |
---|
public Storage setContext(Storage newContext)
public void setPackage(java.lang.String packageName)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public long modDate()
Storage
modDate
in interface Storage
public java.lang.String getName()
Storage
getName
in interface Storage
public java.lang.String getPath()
Storage
getPath
in interface Storage
public java.lang.String getCanonicalPath()
Storage
getCanonicalPath
in interface Storage
public java.lang.String getParent()
public java.lang.Object getProperty(java.lang.String property)
Storage
getProperty
in interface Storage
property
- property keypublic void setProperty(java.lang.String property, java.lang.Object value)
Storage
setProperty
in interface Storage
property
- property keyvalue
- property valuepublic boolean isDirectory()
Storage
isDirectory
in interface Storage
public boolean isInJar()
isInJar
in interface Storage
public byte[] read() throws java.io.IOException
Storage
read
in interface Storage
java.io.IOException
public int read(byte[] buf) throws java.io.IOException
Storage
read
in interface Storage
buf
- buffer to be filledjava.io.IOException
public void write(byte[] xs, int start, int len) throws java.io.IOException
Storage
write
in interface Storage
xs
- buffer to be writtenstart
- offset within buffer where data startslen
- amount of data from buffer to be writtenjava.io.IOException
public java.lang.String[] list()
Storage
list
in interface Storage
public int size() throws java.io.IOException
Storage
size
in interface Storage
java.io.IOException
public java.util.ArrayList listStorage()
Storage
listStorage
in interface Storage
public void open() throws java.io.IOException
Storage
open
in interface Storage
java.io.IOException
public Storage open(java.lang.String name)
Storage
open
in interface Storage
name
- of Storage to be accessedpublic Storage openDir(java.lang.String name)
public Storage create(java.lang.String name) throws java.io.IOException
Storage
create
in interface Storage
name
- of Storage to be createdjava.io.IOException
public Storage createDir(java.lang.String name) throws java.io.IOException
Storage
createDir
in interface Storage
name
- of Storage to be createdjava.io.IOException
public void close()
Storage
close
in interface Storage
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |