Class PlatformZipPictureManifest
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.pictures.zip.AbstractZipPictureManifest<PlatformPicture>
-
- com._1c.g5.v8.dt.platform.picture.PlatformZipPictureManifest
-
- All Implemented Interfaces:
IPictureManifest
,IZipPictureManifest
public class PlatformZipPictureManifest extends AbstractZipPictureManifest<PlatformPicture>
IPictureManifest
implementation for zip basedPlatformPicture
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.platform.pictures.IPictureManifest
UNRESOLVED_PICTURE_MANIFEST
-
-
Constructor Summary
Constructors Constructor Description PlatformZipPictureManifest(PlatformPicture picture, org.eclipse.emf.common.util.URI pictureUri)
Create instance ofPlatformZipPictureManifest
PlatformZipPictureManifest(PlatformPicture picture, org.eclipse.emf.common.util.URI pictureUri, IZipPictureContent content)
Create instance ofPlatformZipPictureManifest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeId
getCompositeId()
The pictureCompositeId
Optional<InputStream>
readPictureContent()
ReadInputStream
from current zip based picture.-
Methods inherited from class com._1c.g5.v8.dt.platform.pictures.zip.AbstractZipPictureManifest
getDirection, getInputStream, getPicture, getZipPictureContent, isTemplate, setZipPictureContent
-
-
-
-
Constructor Detail
-
PlatformZipPictureManifest
public PlatformZipPictureManifest(PlatformPicture picture, org.eclipse.emf.common.util.URI pictureUri)
Create instance ofPlatformZipPictureManifest
- Parameters:
picture
- the source picture, cannot benull
pictureUri
- the uri of source picture, cannot benull
-
PlatformZipPictureManifest
public PlatformZipPictureManifest(PlatformPicture picture, org.eclipse.emf.common.util.URI pictureUri, IZipPictureContent content)
Create instance ofPlatformZipPictureManifest
- Parameters:
picture
- the source picture, cannot benull
pictureUri
- the uri of source picture, cannot benull
content
- theIZipPictureContent
for creatingPlatformZipPictureManifest
, cannot benull
-
-
Method Detail
-
getCompositeId
public CompositeId getCompositeId()
Description copied from interface:IPictureManifest
The pictureCompositeId
- Specified by:
getCompositeId
in interfaceIPictureManifest
- Overrides:
getCompositeId
in classAbstractZipPictureManifest<PlatformPicture>
- Returns:
- the
CompositeId
ornull
if picture without id.
-
readPictureContent
public Optional<InputStream> readPictureContent() throws IOException
Description copied from interface:IZipPictureManifest
ReadInputStream
from current zip based picture.- Returns:
InputStream
of zip, optional, nevernull
- Throws:
IOException
- if there is a problem to read the picture content
-
-