class XmpWriter {

    public void close() throws IOException {
        if (outputStream == null)
            return;
        try {
            XMPMetaFactory.serialize(xmpMeta, outputStream, serializeOptions);
            outputStream = null;
        } catch (XMPException xmpExc) {
            throw new IOException(xmpExc.getMessage());
        }
    }

    public  XmpWriter(OutputStream os, String utfEncoding, int extraSpace);
    public  XmpWriter(OutputStream os);
    public  XmpWriter(OutputStream os, PdfDictionary info);
    public  XmpWriter(OutputStream os, Map<String, String> info);

}