Examples of NullOutputStream


Examples of gnu.java.io.NullOutputStream

    static class BSHOutputAdapter extends PrintStream {
        JTextArea target;

        public BSHOutputAdapter(JTextArea target) {
            this(target, new NullOutputStream());
        }
View Full Code Here

Examples of net.sourceforge.plantuml.servlet.utility.NullOutputStream

        if (StringUtils.isDiagramCacheable(uml)) {
            addHeaderForCache();
        }
        response.setContentType(getContentType());
        SourceStringReader reader = new SourceStringReader(uml);
        String map = reader.generateImage(new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false));
        String[] mapLines = map.split("[\\r\\n]");
        PrintWriter httpOut = response.getWriter();
        for (int i = 2; (i + 1) < mapLines.length; i++) {
            httpOut.print(mapLines[i]);
        }
View Full Code Here

Examples of org.apache.cocoon.util.NullOutputStream

   
    this.enableLogging(logger);
   
    this.manager = new WrapperComponentManager(manager);
   
    this.outputStream = new NullOutputStream();   
    
    // TODO Would special Background*-objects have advantages?
    Request request = new CommandLineRequest(
            this,                  // environment
            "",                    // context path
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

        props.put("root", "file:./");
        props.put("cachableDuration", "1500");
        reg.init(props);
       
        OMNode node = reg.lookup(FILE2);
        node.serialize(new NullOutputStream());
    }
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

                            } else {
                                target = new TeeOutputStream(output,baos);
                            }
                        }
                        if (target == null){
                            target=new NullOutputStream();
                        }
                        input = ftp.retrieveFileStream(remote);
                        if (input == null){// Could not access file or other error
                            res.setResponseCode(Integer.toString(ftp.getReplyCode()));
                            res.setResponseMessage(ftp.getReplyString());
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

        OMOutputFormat mtomOutputFormat = new OMOutputFormat();
        mtomOutputFormat.setDoOptimize(true);
        OMOutputFormat baseOutputFormat = new OMOutputFormat();
        baseOutputFormat.setDoOptimize(false);

        envelope.serializeAndConsume(new NullOutputStream(), baseOutputFormat);
        envelope.serializeAndConsume(new NullOutputStream(), mtomOutputFormat);
    }
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

    Display display = Display.getDefault();
    errorLineColor = new Color(display, new RGB(255,220,220));
    container = RubyStepFactory.createScriptingContainer(false, version);

    // do not litter the console with potential parse errors
    container.setError(new PrintStream(new NullOutputStream()));
    container.setOutput(new PrintStream(new NullOutputStream()));

   
  }
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

        private static final long serialVersionUID = 1L;

        @Override
        public PrintStream getLogger() {
            return new PrintStream(new NullOutputStream());
        }
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

                                    return false;
                                }

                                @Override
                                public OutputStream getOutputStream() {
                                    return new NullOutputStream();
                                }
                            });
                        }
                    } else {
                        consoleString += "<br>No files detected...";
View Full Code Here

Examples of org.apache.commons.io.output.NullOutputStream

                        StreamVariable streamVariable = new StreamVariable() {

                            @Override
                            public OutputStream getOutputStream() {
                                return new NullOutputStream();
                            }

                            @Override
                            public boolean listenProgress() {
                                return true;
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.