Package com.gengoai.io
Class ZipWriter
- java.lang.Object
-
- com.gengoai.io.ZipWriter
-
- All Implemented Interfaces:
AutoCloseable
public class ZipWriter extends Object implements AutoCloseable
- Author:
- David B. Bracewell
-
-
Constructor Summary
Constructors Constructor Description ZipWriter(@NonNull OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipWriter
addDirectory(@NonNull String directoryPath)
void
addEntry(@NonNull String path, @NonNull Resource entry)
void
addEntry(@NonNull String path, @NonNull Object entry)
void
addEntry(@NonNull String path, @NonNull String string)
void
close()
-
-
-
Constructor Detail
-
ZipWriter
public ZipWriter(@NonNull @NonNull OutputStream outputStream)
-
-
Method Detail
-
addDirectory
public ZipWriter addDirectory(@NonNull @NonNull String directoryPath) throws IOException
- Throws:
IOException
-
addEntry
public void addEntry(@NonNull @NonNull String path, @NonNull @NonNull Resource entry) throws IOException
- Throws:
IOException
-
addEntry
public void addEntry(@NonNull @NonNull String path, @NonNull @NonNull String string) throws IOException
- Throws:
IOException
-
addEntry
public void addEntry(@NonNull @NonNull String path, @NonNull @NonNull Object entry) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-