Examples of XmlOutputStream


Examples of com.sforce.ws.parser.XmlOutputStream

        packageManifest.setTypes((PackageTypeMembers[]) packageTypeMembersList.toArray(new PackageTypeMembers[0]));       
        // Serialise it (better way to do this?)
          TypeMapper typeMapper = new TypeMapper();
          ByteArrayOutputStream packageBaos = new ByteArrayOutputStream();
          QName packageQName = new QName("http://soap.sforce.com/2006/04/metadata", "Package");
          XmlOutputStream xmlOutputStream = new XmlOutputStream(packageBaos, true);
          xmlOutputStream.setPrefix("", "http://soap.sforce.com/2006/04/metadata");
          xmlOutputStream.setPrefix("xsi", "http://www.w3.org/2001/XMLSchema-instance");
          packageManifest.write(packageQName, xmlOutputStream, typeMapper);
          xmlOutputStream.close();
          packageManifestXml = new String(packageBaos.toByteArray())
        }
       
        // Download the Repository as an archive zip
      RepositoryId repoId = RepositoryId.create(repoOwner, repoName);
View Full Code Here

Examples of com.sforce.ws.parser.XmlOutputStream

            File f = new File(DEPLOY_DIR, obj.getFullName() + ".object");
            if (!f.exists()) {
                f.createNewFile();
            }
            FileOutputStream fos = new FileOutputStream(f);
            XmlOutputStream xout = new XmlOutputStream(fos, true);
            xout.setPrefix("", "http://soap.sforce.com/2006/04/metadata");
            try {
                xout.startDocument();
                obj.write(new QName("http://soap.sforce.com/2006/04/metadata", "CustomObject"), xout, typeMapper);
            } finally {
                xout.endDocument();
                xout.close();
                fos.close();
            }
           
            schemaFiles.add(f);
        }
View Full Code Here

Examples of javolution.xml.XmlOutputStream

     *
     * @see de.netseeker.ejoe.adapter.SerializeAdapter#write(java.lang.Object, java.io.OutputStream)
     */
    public void write( Object obj, OutputStream out ) throws Exception
    {
        XmlOutputStream writer = new XmlOutputStream();
        try
        {
            writer.setOutputStream( out );
            writer.writeObject( obj );
        }
        finally
        {
            writer.close();
        }
    }
View Full Code Here

Examples of org.netbeans.modules.dbschema.migration.archiver.XMLOutputStream

    {
      String className = mappingClass.getName();

      if (stream != null)
      {
        XMLOutputStream xmlOutput = new XMLOutputStream(stream);

        try
        {
          mappingClass.preArchive();    // call pre archive hook
          xmlOutput.writeObject(mappingClass);

          // update modified flags for the mapping and persistence
          // classes after save
          mappingClass.setModified(false);
          getPersistenceClass(mappingClass).setModified(false);
        }
        catch (ModelException e)
        {
          // MBO: print reason to logger
          LogHelperModel.getLogger().log(Logger.WARNING,
            e.getMessage());
        }
        finally
        {
          if (xmlOutput != null)
            xmlOutput.close();

          unlockFile(stream, className);
        }
        return;
      }
View Full Code Here

Examples of org.netbeans.modules.dbschema.migration.archiver.XMLOutputStream

    {
      String className = mappingClass.getName();

      if (stream != null)
      {
        XMLOutputStream xmlOutput = new XMLOutputStream(stream);

        try
        {
          mappingClass.preArchive();    // call pre archive hook
          xmlOutput.writeObject(mappingClass);

          // update modified flags for the mapping and persistence
          // classes after save
          mappingClass.setModified(false);
          getPersistenceClass(mappingClass).setModified(false);
        }
        catch (ModelException e)
        {
          // MBO: print reason to logger
          LogHelperModel.getLogger().log(Logger.WARNING,
            e.getMessage());
        }
        finally
        {
          if (xmlOutput != null)
            xmlOutput.close();

          unlockFile(stream, className);
        }
        return;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.