Class CreateZipBagExample

java.lang.Object
nl.knaw.dans.bagit.TempFolderTest
nl.knaw.dans.bagit.examples.serialization.CreateZipBagExample

public class CreateZipBagExample extends TempFolderTest
Example(s) for creating a zipped bag.
  • Field Details

    • bagRoot

      private Path bagRoot
    • zippedBagPath

      private Path zippedBagPath
    • outputStream

      private OutputStream outputStream
  • Constructor Details

    • CreateZipBagExample

      public CreateZipBagExample()
  • Method Details

    • setup

      @BeforeEach public void setup() throws IOException
      Throws:
      IOException
    • createZipBagWithJavaStandardLibrary

      @Test public void createZipBagWithJavaStandardLibrary()
      THIS IS JUST AN EXAMPLE. DO NOT USE IN PRODUCTION!