Package oracle.sql
Class ConverterArchive
- java.lang.Object
-
- oracle.sql.ConverterArchive
-
public class ConverterArchive extends Object
This class allows a program to serialize an object and put it into a regular file or archive it into a zip file. It also allows a program to extract the object from the file for usage. It is used by the GSS package to create dynamically loadable data files. It is made public so programs from other packages can utilize this to created dynamically loable data files.
-
-
Constructor Summary
Constructors Constructor Description ConverterArchive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeArchiveforInsert()
void
closeArchiveforRead()
void
insertObj(Object obj, String entryName)
entryName is the name of the obj inside the zip file, include directoryvoid
insertObjtoFile(String directory, String filename, Object obj)
void
insertSingleObj(String zipName, Object obj, String entryName)
entryName is the name of the obj inside the zip file, include directory zipName is the name of the zip file.void
openArchiveforInsert(String zipName)
void
openArchiveforRead()
Object
readObj(String entryName)
Object
readObj(String zipName, String entryName)
entryName is the name of the obj inside the zip file, include directory zipName is the name of the zip file.
-
-
-
Method Detail
-
openArchiveforInsert
public void openArchiveforInsert(String zipName)
- Parameters:
zipName
- is the name of the zip file. May include directory
-
closeArchiveforInsert
public void closeArchiveforInsert()
-
insertObj
public void insertObj(Object obj, String entryName)
entryName is the name of the obj inside the zip file, include directory
-
insertSingleObj
public void insertSingleObj(String zipName, Object obj, String entryName) throws IOException
entryName is the name of the obj inside the zip file, include directory zipName is the name of the zip file. May include directory- Throws:
IOException
-
insertObjtoFile
public void insertObjtoFile(String directory, String filename, Object obj) throws IOException
- Throws:
IOException
-
openArchiveforRead
public void openArchiveforRead()
-
closeArchiveforRead
public void closeArchiveforRead()
-
-