Package com.puppetlabs.graph.utils

Examples of com.puppetlabs.graph.utils.ByteArrayOutputStream2


    Catalog oldCatalog = CatalogJsonSerializer.load(oldCatalogStream);
    Catalog newCatalog = CatalogJsonSerializer.load(newCatalogStream);

    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);

    ByteArrayOutputStream2 out = new ByteArrayOutputStream2();

    graphProducer.produceGraph(cancel, catalogName, oldCatalog, oldRoot, newCatalog, newRoot, out);
    graphProducer.getSVGProducer().produceSVG(out.toInputStream(false), svgStream, false, //
    ticker.newChild(IProgressMonitor.UNKNOWN));
  }
View Full Code Here


    final SubMonitor ticker = SubMonitor.convert(monitor, 2000);
    CatalogGraphProducer graphProducer = injector.getInstance(CatalogGraphProducer.class);
    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);
    Catalog catalog = CatalogJsonSerializer.load(catalogStream);

    ByteArrayOutputStream2 out = new ByteArrayOutputStream2();
    graphProducer.produceGraph(cancel, catalog, catalogName, out, root);
    graphProducer.getSVGProducer().produceSVG(out.toInputStream(false), svgStream, false, //
    ticker.newChild(IProgressMonitor.UNKNOWN));
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.graph.utils.ByteArrayOutputStream2

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.