FileDocCategorySizeDatePackage
Metafile.javaAPI DocApache Poi 3.0.14699Sun Mar 11 12:59:30 GMT 2007org.apache.poi.hslf.blip

Metafile

public abstract class Metafile extends PictureData
Represents a metafile picture which can be one of the following types: EMF, WMF, or PICT. A metafile is stored compressed using the ZIP deflate/inflate algorithm.
author
Yegor Kozlov

Fields Summary
Constructors Summary
Methods Summary
protected byte[]compress(byte[] bytes, int offset, int length)

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        DeflaterOutputStream  deflater = new DeflaterOutputStream( out );
        deflater.write(bytes, offset, length);
        deflater.close();
        return out.toByteArray();