Interface IZipPictureContent
-
public interface IZipPictureContent
Structured content of zip based picture
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IZipPictureContent.Builder
Builder of structured content of zip based picture
-
Field Summary
Fields Modifier and Type Field Description static String
MANIFEST_ENTRY_NAME
Zip entry name of Picture manifest
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferedImage
getBufferedImageByName(String name)
Get zip entryBufferedImage
by given zip entry nameIZipPictureManifestEntry
getEntryByQuery(IPictureManifestQuery query)
GetIZipPictureManifestEntry
by specifedIPictureManifestQuery
Optional<InputStream>
getInputStreamByName(String name)
Get zip entryInputStream
by given zip entry nameOptional<InputStream>
getInputStreamByQuery(IPictureManifestQuery query)
Get zip entryInputStream
by specifedIPictureManifestQuery
Collection<IZipPictureManifestEntry>
getPictureEntries()
Get manifest entries from Picture XML manifest
-
-
-
Field Detail
-
MANIFEST_ENTRY_NAME
static final String MANIFEST_ENTRY_NAME
Zip entry name of Picture manifest- See Also:
- Constant Field Values
-
-
Method Detail
-
getPictureEntries
Collection<IZipPictureManifestEntry> getPictureEntries()
Get manifest entries from Picture XML manifest- Returns:
- collection of
IZipPictureManifestEntry
, may be empty, cannot benull
-
getInputStreamByName
Optional<InputStream> getInputStreamByName(String name)
Get zip entryInputStream
by given zip entry name- Parameters:
name
- of zip entry, cannot benull
- Returns:
InputStream
of named zip entry from this picture content, optional, nevernull
-
getBufferedImageByName
BufferedImage getBufferedImageByName(String name)
Get zip entryBufferedImage
by given zip entry name- 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
IZipPictureManifestEntry getEntryByQuery(IPictureManifestQuery query)
GetIZipPictureManifestEntry
by specifedIPictureManifestQuery
- Parameters:
query
- theIPictureManifestQuery
, cannot benull
- Returns:
IZipPictureManifestEntry
from this picture content, can benull
if not found for this query
-
getInputStreamByQuery
Optional<InputStream> getInputStreamByQuery(IPictureManifestQuery query)
Get zip entryInputStream
by specifedIPictureManifestQuery
- Parameters:
query
- theIPictureManifestQuery
, cannot benull
- Returns:
InputStream
of named zip entry from this picture content, optional, nevernull
-
-