Examples of Streamer


Examples of com.laamella.javamodel.io.OutputStreamFactory.Streamer

        final XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
        outputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
        final Prefixer prefixer = new Prefixer();

        for (final Node topElement : schema.topElements) {
            outputStreamFactory.stream("", sanitize(schema.name + "_" + topElement.name.localPart) + ".xml", new Streamer() {
                public void stream(OutputStream outputStream) throws XMLStreamException {
                    XMLStreamWriter xmlStreamWriter = outputFactory.createXMLStreamWriter(outputStream);
                    tweakStreamWriter(xmlStreamWriter);
                    xmlStreamWriter.writeStartDocument();
                    writeChildren(xmlStreamWriter, topElement, 0, prefixer);
View Full Code Here

Examples of com.laamella.javamodel.io.OutputStreamFactory.Streamer

    }

    public void write(final OutputStreamFactory outputDir) throws Exception {
        checkIndentationMatches();
        final String packageDir = packageName.replace('.', File.separatorChar);
        outputDir.stream(packageDir, name + ".java", new Streamer() {
            public void stream(OutputStream outputStream) throws Exception {
                outputStream.write(JavaFile.this.toString().getBytes("utf-8"));
            }
        });
    }
View Full Code Here

Examples of org.codehaus.wadi.Streamer

        Dispatcher underlyingDisp = dispatcherHolder.getDispatcher();

        serviceSpace = new BasicServiceSpace(new ServiceSpaceName(configInfo.getServiceSpaceURI()), underlyingDisp);

        boolean strictOrdering = true;
        Streamer streamer = new SimpleStreamer();
        Collapser collapser = new HashingCollapser(1024, 10000);
        Map mmap = Collections.synchronizedMap(new HashMap());
        WebSessionPool sessionPool = new SimpleSessionPool(new AtomicallyReplicableSessionFactory());

        // end of contextualiser stack
View Full Code Here

Examples of org.jbpm.ui.util.Streamer

            InfoPathSupport infoPathSupport = new InfoPathSupport(formNode, formFile, filePath);
            if (infoPathSupport.init()) {
                Process process = Runtime.getRuntime().exec(infopathEditor + " /design \"" + filePath + "\"");
                infoPathSupport.setProcess(process);
                infoPathSupport.start();
                new Streamer(process.getErrorStream()).start();
                new Streamer(process.getInputStream()).start();
            } else {
                MessageDialog.openInformation(DesignerPlugin.getDefault().getWorkbench().getDisplay().getActiveShell(), "Form is opened already",
                        "This form already opened with InfoPath");
            }
        } catch (Throwable e) {
View Full Code Here

Examples of org.jbpm.ui.util.Streamer

        String filePath = file.getLocation().toOSString();
        try {
            String[] commands = { htmlEditorPath, filePath };
            Process process = Runtime.getRuntime().exec(commands);
            new ProcessListener(process, file).start();
            new Streamer(process.getErrorStream()).start();
            new Streamer(process.getInputStream()).start();
        } catch (Throwable e) {
            DesignerLogger.logError("Failed to start program \n" + htmlEditorPath, e);
        }
    }
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.