Class ZipPictureContentStore
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.pictures.zip.ZipPictureContentStore
-
public class ZipPictureContentStore extends Object
Store for read and write zip based pictures.
-
-
Field Summary
Fields Modifier and Type Field Description static ZipPictureContentStore
INSTANCE
Instance of store for read and write zip based pictures
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IZipPictureContent
read(InputStream stream)
Read zip based picture stream toZipPictureContent
org.eclipse.core.runtime.IStatus
validate(InputStream stream)
Validate zip based picture stream.void
write(OutputStream stream, IZipPictureContent pictureContent)
Write zip based picture to stream
-
-
-
Field Detail
-
INSTANCE
public static final ZipPictureContentStore INSTANCE
Instance of store for read and write zip based pictures
-
-
Method Detail
-
validate
public org.eclipse.core.runtime.IStatus validate(InputStream stream)
Validate zip based picture stream.Check that the picture names in manifest is equals as names of zip entries
Issues warning if pair of template, picture direction, and interface variants of manifest entries not unique.
- Parameters:
stream
- the source zippedInputStream
, cannot benull
- Returns:
- instance of validation
IStatus
, nevernull
-
read
public IZipPictureContent read(InputStream stream) throws IOException
Read zip based picture stream toZipPictureContent
- Parameters:
stream
- the source zippedInputStream
, cannot benull
- Returns:
- the instance of
ZipPictureContent
, nevernull
- Throws:
IOException
- if there is a problem to read the picture contentPictureManifestException
- if there is a problem to obtain the picture content or manifest
-
write
public void write(OutputStream stream, IZipPictureContent pictureContent) throws IOException, XMLStreamException
Write zip based picture to stream- Parameters:
stream
- the targetOutputStream
, cannot benull
pictureContent
- the picture content provider, cannot benull
- Throws:
IOException
- if there is a problem to read the picture contentXMLStreamException
PictureManifestException
- if there is a problem to obtain the picture content or manifest
-
-