public final class ZipFormat extends FormatBase
Represents ZIP format. See more: https://en.wikipedia.org/wiki/Zip_(file_format).
GroupDocs.Metadata.Formats.FormatBase
filePath, stream
Constructor and Description |
---|
ZipFormat(InputStream input)
Initializes a new instance of the
FormatBase class. |
ZipFormat(String fileName)
Initializes a new instance of the
FormatBase class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Metadata cleaning is not supported in this version.
|
ZipFileInfo[] |
getFiles()
Gets the array of files inside ZIP archive.
|
int |
getType()
Gets document type.
|
String |
getZipFileComment()
Gets the zip file comment.
|
ZipMetadata |
getZipInfo()
Gets the zip information.
|
void |
removeFileComment()
Removes the file comment.
|
dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public ZipFormat(String fileName)
Initializes a new instance of the FormatBase
class.
fileName
- Absolute path to the file.public ZipFormat(InputStream input)
Initializes a new instance of the FormatBase
class.
input
- File stream.public int getType()
Gets document type.
Value: Document type.getType
in class FormatBase
public final ZipMetadata getZipInfo()
Gets the zip information.
Value: The zip information.public final String getZipFileComment()
Gets the zip file comment.
Value: The zip file comment.public final ZipFileInfo[] getFiles()
Gets the array of files inside ZIP archive.
Value: The files.public void cleanMetadata()
Metadata cleaning is not supported in this version.
cleanMetadata
in class FormatBase
public final void removeFileComment()
Removes the file comment.
Copyright © 2017. All rights reserved.