public class AsicManifest extends Object
Constructor and Description |
---|
AsicManifest()
Creates an instance of ASiC manifest without specifying container type
(the root file entry mimetype defaults to
MimeType.ASICE ). |
AsicManifest(String containerType)
Creates an instance of ASiC manifest with the specified container type.
|
Modifier and Type | Method and Description |
---|---|
void |
addFileEntries(Collection<DataFile> dataFiles)
Adds a list of file entries, representing the specified data files, into this manifest file.
|
void |
addFileEntry(Collection<DataFile> dataFiles)
Deprecated.
Use
addFileEntries(Collection) instead. |
void |
addFileEntry(DataFile dataFile)
Adds a new file entry, representing the specified data file, into this manifest file.
|
byte[] |
getBytes()
Returns the bytes of the current state of this manifest file.
|
void |
writeTo(OutputStream outputStream)
Writes the bytes of the current state of this manifest file into the specified output stream.
|
public static final String XML_PATH
public AsicManifest()
MimeType.ASICE
).public AsicManifest(String containerType)
Constant.ASICS_CONTAINER_TYPE
sets the root file entry mimetype as
MimeType.ASICS
, any other value makes the root file entry mimetype to default to
MimeType.ASICE
.containerType
- the container type@Deprecated public void addFileEntry(Collection<DataFile> dataFiles)
addFileEntries(Collection)
instead.dataFiles
- the list of data files to add file entries forpublic void addFileEntries(Collection<DataFile> dataFiles)
dataFiles
- the list of data files to add file entries forpublic void addFileEntry(DataFile dataFile)
dataFile
- the data file to add a new file entry forpublic byte[] getBytes()
public void writeTo(OutputStream outputStream)
outputStream
- the output stream to write the bytes of this manifest files intoCopyright © 2023. All rights reserved.