# Uses of Class
com.orchestranetworks.service.Archive

Packages that use Archive
Package
Description
com.orchestranetworks.service
Provides classes and interfaces for implementing specific services and access rules on EBX®.

- ## Uses of Archive in com.orchestranetworks.service

  Methods in com.orchestranetworks.service that return Archive
  Modifier and Type
  Method
  Description
  `static Archive`
  Archive.`forFile(File archiveFile)`
  Returns a reference to an archive ZIP file.
  `static Archive`
  Archive.`forFileInDefaultDirectory(String aLocalFileName)`
  Returns a reference to an archive ZIP file located under the default archive directory.
  `static Archive`
  Archive.`forOutputStream(OutputStream aStream)`
  Returns a reference to an archive output stream.
  `static Archive`
  Archive.`forStream(String locationInfoOrNull, InputStream aStream)`
  Returns a reference to an archive ZIP stream.
  `Archive`
  ArchiveExportSpec.`getArchive()`
  Returns the target container for the export.
  `Archive`
  ArchiveImportSpec.`getArchive()`
  Returns the archive to import.
  Methods in com.orchestranetworks.service with parameters of type Archive
  Modifier and Type
  Method
  Description
  `void`
  ProcedureContext.`doExportArchive(Archive anArchive)`
  Exports the current dataspace or snapshot to the specified EBX® archive.
  `void`
  ProcedureContext.`doImportArchive(Archive anArchive)`
  Imports the EBX® archive into the current dataspace.
  `void`
  ArchiveExportSpec.`setArchive(Archive archive)`
  Specifies the target container for the export.
  `void`
  ArchiveImportSpec.`setArchive(Archive archive)`
  Specifies the archive to import.