Package com.tccc.kos.commons.kab
Class ZipToKabCopier
java.lang.Object
com.tccc.kos.commons.kab.ZipToKabCopier
- Version:
- Jun-22-22
-
Constructor Summary
ConstructorsConstructorDescriptionZipToKabCopier
(File zipFile, File kabFile) Creates a reader for the zip file and a writer for the KAB file.ZipToKabCopier
(InputStream zipInput, OutputStream kabOutput) Creates a writer to copy the specified ZIP file to the destination KAB stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy()
Performs the copy operation.getName()
getTag()
getType()
setIdentifier
(String identifier) setVersion
(String version)
-
Constructor Details
-
ZipToKabCopier
Creates a reader for the zip file and a writer for the KAB file.- Parameters:
zipFile
- the ZIP file to read fromkabFile
- the KAB file to write to- Throws:
FileNotFoundException
-
ZipToKabCopier
Creates a writer to copy the specified ZIP file to the destination KAB stream.- Parameters:
zipInput
- the ZIP input stream to read fromkabOutput
- the KAB output stream to write to
-
-
Method Details
-
copy
Performs the copy operation.- Throws:
IOException
-
getIdentifier
-
getType
-
getTag
-
getName
-
getKeySet
-
getVersion
-
setIdentifier
- Returns:
this
.
-
setType
- Returns:
this
.
-
setTag
- Returns:
this
.
-
setName
- Returns:
this
.
-
setKeySet
- Returns:
this
.
-
setVersion
- Returns:
this
.
-