|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.vdb.api.VDBArchive
public class VDBArchive
Latest incarnation of the VDBContext, specifically for weeding out dependencies on the vdb.edit; So do put in Modeler dependencies here.
Constructor Summary | |
---|---|
VDBArchive(java.io.File vdbFile)
Build the VDBArchive from a supplied file. |
|
VDBArchive(java.io.InputStream vdbStream)
Build VDB archive from given stream. |
Method Summary | |
---|---|
void |
close()
Close the VDBArchive and do the cleanup. |
BasicVDBDefn |
getConfigurationDef()
Get the parsed object for the Configuration.def file. |
char[] |
getDataRoles()
Get the Data roles file if one is defined |
java.util.Set<java.lang.String> |
getEntries()
|
java.io.InputStream |
getInputStream()
Get the stream object for the VDB. |
java.lang.String |
getName()
|
short |
getStatus()
|
java.lang.String[] |
getVDBValidityErrors()
Returns errors, otherwise null for no validity errors. |
java.lang.String |
getVersion()
|
boolean |
isVisible(java.lang.String pathInVdb)
|
static BasicVDBDefn |
readFromDef(java.io.InputStream defStream)
Load the VDB from DEF file. |
void |
setName(java.lang.String name)
|
void |
setStatus(short status)
|
java.lang.String |
toString()
|
void |
updateConfigurationDef(BasicVDBDefn vdbDef)
Update the Configuration.def file, with supplied DEF object. |
void |
updateRoles(char[] roles)
Update/Add the data roles file in the archive. |
void |
write(java.io.OutputStream out)
Write the VDBArchive to the given output stream |
static byte[] |
writeToByteArray(VDBArchive vdb)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VDBArchive(java.io.File vdbFile) throws java.io.IOException
vdbFile
-
java.io.IOException
public VDBArchive(java.io.InputStream vdbStream) throws java.io.IOException
vdbStream
-
java.io.IOException
Method Detail |
---|
public static BasicVDBDefn readFromDef(java.io.InputStream defStream) throws java.io.IOException
defStream
- - DEF file Stream;
java.io.IOException
public void updateConfigurationDef(BasicVDBDefn vdbDef) throws java.io.IOException
vdbDef
-
java.io.IOException
public void updateRoles(char[] roles) throws java.io.IOException
roles
- - contents of the roles file
java.io.IOException
public void close()
public BasicVDBDefn getConfigurationDef()
public char[] getDataRoles()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String[] getVDBValidityErrors()
public void write(java.io.OutputStream out) throws java.io.IOException
out
-
java.io.IOException
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getVersion()
public short getStatus()
public void setStatus(short status)
public java.util.Set<java.lang.String> getEntries()
public boolean isVisible(java.lang.String pathInVdb)
public static byte[] writeToByteArray(VDBArchive vdb) throws MetaMatrixComponentException
MetaMatrixComponentException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |