Package com.adobe.xmp.options

Examples of com.adobe.xmp.options.SerializeOptions


     */
    @Override
    public String toString() {
        String result = null;
        try {
            result = XMPMetaFactory.serializeToString( xmpData, new SerializeOptions()
                    .setOmitPacketWrapper( true ).setUseCompactFormat( true ) );
        }
        catch (XMPException e) {
            // ignore
        }
View Full Code Here


     */
    @Override
    public String toString() {
        String result = null;
        try {
            result = XMPMetaFactory.serializeToString( xmpData, new SerializeOptions()
                    .setOmitPacketWrapper( true ).setUseCompactFormat( true ) );
        }
        catch (XMPException e) {
            // ignore
        }
View Full Code Here

   */
  public static void serialize(XMPMetaImpl xmp, OutputStream out,
    SerializeOptions options)
    throws XMPException
  {
    options = options != null ? options : new SerializeOptions();   
   
    // sort the internal data model on demand
    if (options.getSort())
    {
      xmp.sort();
View Full Code Here

   */
  public static String serializeToString(XMPMetaImpl xmp, SerializeOptions options)
    throws XMPException
  {
    // forces the encoding to be UTF-16 to get the correct string length
    options = options != null ? options : new SerializeOptions();   
    options.setEncodeUTF16BE(true);

    ByteArrayOutputStream out = new ByteArrayOutputStream(2048);
    serialize(xmp, out, options);

View Full Code Here

TOP

Related Classes of com.adobe.xmp.options.SerializeOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.