Class ZipPictureContent
java.lang.Object
com._1c.g5.v8.dt.internal.platform.pictures.zip.ZipPictureContent
- All Implemented Interfaces:
IZipPictureContent
Structured content of zip based picture
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.platform.pictures.zip.IZipPictureContent
IZipPictureContent.Builder
-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.platform.pictures.zip.IZipPictureContent
MANIFEST_ENTRY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntry
(ZipPictureManifestEntry zipPictureContentEntry) getBufferedImageByName
(String name) Get zip entryBufferedImage
by given zip entry nameGetIZipPictureManifestEntry
by specifedIPictureManifestQuery
getInputStreamByName
(String name) Get zip entryInputStream
by given zip entry nameGet zip entryInputStream
by specifedIPictureManifestQuery
Get manifest entries from Picture XML manifestvoid
setZipEntries
(Map<String, byte[]> entries) Set map of zip name entries to zip entry streams
-
Constructor Details
-
ZipPictureContent
public ZipPictureContent()
-
-
Method Details
-
getInputStreamByName
Description copied from interface:IZipPictureContent
Get zip entryInputStream
by given zip entry name- Specified by:
getInputStreamByName
in interfaceIZipPictureContent
- Parameters:
name
- of zip entry, cannot benull
- Returns:
InputStream
of named zip entry from this picture content, optional, nevernull
-
getBufferedImageByName
Description copied from interface:IZipPictureContent
Get zip entryBufferedImage
by given zip entry name- Specified by:
getBufferedImageByName
in interfaceIZipPictureContent
- Parameters:
name
- of zip entry, cannot benull
- Returns:
BufferedImage
of named zip entry from this picture content, can benull
if there is no entry with this name
-
getEntryByQuery
Description copied from interface:IZipPictureContent
GetIZipPictureManifestEntry
by specifedIPictureManifestQuery
- Specified by:
getEntryByQuery
in interfaceIZipPictureContent
- Parameters:
query
- theIPictureManifestQuery
, cannot benull
- Returns:
IZipPictureManifestEntry
from this picture content, can benull
if not found for this query
-
getInputStreamByQuery
Description copied from interface:IZipPictureContent
Get zip entryInputStream
by specifedIPictureManifestQuery
- Specified by:
getInputStreamByQuery
in interfaceIZipPictureContent
- Parameters:
query
- theIPictureManifestQuery
, cannot benull
- Returns:
InputStream
of named zip entry from this picture content, optional, nevernull
-
getPictureEntries
Description copied from interface:IZipPictureContent
Get manifest entries from Picture XML manifest- Specified by:
getPictureEntries
in interfaceIZipPictureContent
- Returns:
- collection of
IZipPictureManifestEntry
, may be empty, cannot benull
-
addEntry
- Parameters:
zipPictureContentEntry
- theZipPictureManifestEntry
to add in, cannot benull
-
setZipEntries
Set map of zip name entries to zip entry streams- Parameters:
entries
- theHashMap
, cannot benull
-