Package com.orchestranetworks.service
Class Archive
java.lang.Object
com.orchestranetworks.service.Archive
An instance of this class references an archive used to
export data from / import data to EBX® repositories.
For example, it can be used as a backup or to
propagate datasets from a repository to another.
The implementations of this class are light-weight references to their underlying resources. For example, they do not open a file stream if a file is provided.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the ZIP entry for header differences.static final String
Name of the ZIP entry for rights differences.static final String
Name of the ZIP entry for value differences.static final String
Default name of run header XML document.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract InputStream
static Archive
Returns a reference to an archive ZIP file.static Archive
forFileInDefaultDirectory
(String aLocalFileName) Returns a reference to an archive ZIP file located under the default archive directory.static Archive
forOutputStream
(OutputStream aStream) Returns a reference to an archive output stream.static Archive
forStream
(String locationInfoOrNull, InputStream aStream) Returns a reference to an archive ZIP stream.abstract String
Returns user-readable information on the location of the archive.toString()
-
Field Details
-
HEADER_DOCUMENT_NAME
Default name of run header XML document.- See Also:
-
DIFF_HEADERS_ZIP_ENTRY
Name of the ZIP entry for header differences.- See Also:
-
DIFF_RIGHTS_ZIP_ENTRY
Name of the ZIP entry for rights differences.- See Also:
-
DIFF_VALUES_ZIP_ENTRY
Name of the ZIP entry for value differences.- See Also:
-
TABLE_VALUES_ZIP_ENTRY
- See Also:
-
-
Constructor Details
-
Archive
public Archive()
-
-
Method Details
-
forFile
Returns a reference to an archive ZIP file. -
forFileInDefaultDirectory
Returns a reference to an archive ZIP file located under the default archive directory.The path of this directory is:
${ebx.repository.directory}/archives/
.- Since:
- 5.6.0
- See Also:
-
forStream
Returns a reference to an archive ZIP stream. Only to be used for import purposes. -
forOutputStream
Returns a reference to an archive output stream. Only to be used for export purposes. -
toString
-
computeInputStream
- Throws:
FileNotFoundException
-
getLocationInfo
Returns user-readable information on the location of the archive.
-