public abstract class Archive extends Object
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.
| Modifier and Type | Field and Description | 
|---|---|
| static String | DIFF_HEADERS_ZIP_ENTRYName of the ZIP entry for header differences. | 
| static String | DIFF_RIGHTS_ZIP_ENTRYName of the ZIP entry for rights differences. | 
| static String | DIFF_VALUES_ZIP_ENTRYName of the ZIP entry for value differences. | 
| static String | HEADER_DOCUMENT_NAMEDefault name of run header XML document. | 
| static String | TABLE_VALUES_ZIP_ENTRY | 
| Constructor and Description | 
|---|
| Archive() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract InputStream | computeInputStream() | 
| static Archive | forFile(File archiveFile)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 | getLocationInfo()Returns user-readable information on the location of the archive. | 
| String | toString() | 
public static final String HEADER_DOCUMENT_NAME
public static final String DIFF_HEADERS_ZIP_ENTRY
public static final String DIFF_RIGHTS_ZIP_ENTRY
public static final String DIFF_VALUES_ZIP_ENTRY
public static final String TABLE_VALUES_ZIP_ENTRY
public static Archive forFileInDefaultDirectory(String aLocalFileName)
 The path of this directory is: ${ebx.repository.directory}/archives/.
 
public static Archive forStream(String locationInfoOrNull, InputStream aStream)
public static Archive forOutputStream(OutputStream aStream)
public abstract InputStream computeInputStream() throws FileNotFoundException
FileNotFoundExceptionpublic abstract String getLocationInfo()