|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.xml.zip.XMLZipFileStreamPolicy
This implementation of the XMLStreamPolicy
interface provides streams to XML documents stored in ZIP file archives. It also controls the access to these ZIP files: adding, deleting, and updating the entries in the ZIP files.
XMLZipFileAccessor
, Serialized FormConstructor Summary | |
XMLZipFileStreamPolicy(java.io.File file, java.util.Enumeration zipEntryNames) Construct a policy for the specified ZIP file and entry. |
|
XMLZipFileStreamPolicy(java.io.File file, java.lang.String zipEntryName) Construct a policy for the specified ZIP file and entry. |
|
XMLZipFileStreamPolicy(java.lang.String fileName, java.util.Enumeration zipEntryNames) Construct a policy for the specified ZIP file and entries. |
|
XMLZipFileStreamPolicy(java.lang.String fileName, java.lang.String zipEntryName) Construct a policy for the specified ZIP file and entry. |
Method Summary | |
java.lang.Integer |
deleteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) This implementation loops through the ZIP file, copying its entries into a new ZIP file, skipping the entry to be deleted. |
java.io.Reader |
getExistenceCheckStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return the ZIP file entry wrapped in a stream. |
java.io.Writer |
getExistingWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) This implementation removes and adds an entry to the ZIP file and positions the stream at the end of the ZIP file. |
java.io.Writer |
getNewWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) This implementation adds an entry to the ZIP file and positions the stream at the end of the ZIP file. |
java.io.Reader |
getReadStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return the ZIP file entry wrapped in a stream. |
java.util.Enumeration |
getReadStreams(java.lang.String rootElementName, oracle.toplink.internal.databaseaccess.Accessor accessor) Return the ZIP file entries wrapped in streams. |
java.util.Enumeration |
getReadStreams(java.lang.String rootElementName, java.util.Vector foreignKeys, java.util.Vector orderedForeignKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return the ZIP file entries wrapped in streams. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLZipFileStreamPolicy(java.io.File file, java.lang.String zipEntryName)
public XMLZipFileStreamPolicy(java.lang.String fileName, java.lang.String zipEntryName)
public XMLZipFileStreamPolicy(java.io.File file, java.util.Enumeration zipEntryNames)
public XMLZipFileStreamPolicy(java.lang.String fileName, java.util.Enumeration zipEntryNames)
Method Detail |
public java.lang.Integer deleteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
deleteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Reader getExistenceCheckStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getExistenceCheckStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Writer getExistingWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getExistingWriteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Writer getNewWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getNewWriteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Reader getReadStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName, java.util.Vector foreignKeys, java.util.Vector orderedForeignKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStreams
in interface XMLStreamPolicy
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStreams
in interface XMLStreamPolicy
XMLDataStoreException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |