Examples of NullOutputStream


Examples of org.apache.harmony.logging.tests.java.util.logging.HandlerTest.NullOutputStream

  }

  public void testGlobalPropertyConfig() throws Exception {
        PrintStream err = System.err;
        try {
            System.setErr(new PrintStream(new NullOutputStream()));
            // before add config property, root has two handler
            manager.readConfiguration(EnvironmentHelper
                    .PropertiesToInputStream(props));
            assertEquals(2, manager.getLogger("").getHandlers().length);
View Full Code Here

Examples of org.apache.harmony.logging.tests.java.util.logging.HandlerTest.NullOutputStream

        file.mkdir();
        manager.readConfiguration(EnvironmentHelper
                .PropertiesToInputStream(props));
        handler = new FileHandler();
        r = new LogRecord(Level.CONFIG, "msg");
        errSubstituteStream = new NullOutputStream();
        System.setErr(new PrintStream(errSubstituteStream));
    }
View Full Code Here

Examples of org.apache.harmony.logging.tests.java.util.logging.HandlerTest.NullOutputStream

  }

  public void testGlobalPropertyConfig() throws Exception {
        PrintStream err = System.err;
        try {
            System.setErr(new PrintStream(new NullOutputStream()));
            // before add config property, root has two handler
            manager.readConfiguration(EnvironmentHelper
                    .PropertiesToInputStream(props));
            assertEquals(2, manager.getLogger("").getHandlers().length);
View Full Code Here

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

    return new ByteArrayInputStream(baos.toByteArray());
  }

  public long sizeOf(Object obj) {
    try {
      CountingOutputStream c = new CountingOutputStream(new NullOutputStream());
      ObjectOutputStream stream = new ObjectOutputStream(c);
      stream.writeObject(obj);
      stream.close();
      return c.getBytesWritten();
    } catch (IOException ex) {
View Full Code Here

Examples of org.apache.tika.io.NullOutputStream

    private void ignoreError(final Process process) {
        new Thread() {
            public void run() {
                InputStream error = process.getErrorStream();
                try {
                    IOUtils.copy(error, new NullOutputStream());
                } catch (IOException e) {
                } finally {
                    IOUtils.closeQuietly(error);
                }
            }
View Full Code Here

Examples of org.glassfish.jersey.message.internal.NullOutputStream

     *
     * @param requestContext request data.
     * @return response future.
     */
    public Future<ContainerResponse> apply(final ContainerRequest requestContext) {
        return apply(requestContext, new NullOutputStream());
    }
View Full Code Here

Examples of org.jasig.portal.utils.NullOutputStream

            cd.setNewPortletMode(null);

            // Process action if this is the targeted channel and the URL is an action URL
            if (rd.isTargeted() && psm.isAction()) {
                //Create a sink to throw out and output (portlets can't output content during an action)
                PrintWriter pw = new PrintWriter(new NullOutputStream());
                HttpServletResponse wrappedResponse = ServletObjectAccess.getStoredServletResponse(pcs.getHttpServletResponse(), pw);

                try {
                    //See if a WindowState change was requested for an ActionURL
                    final String newWindowStateName = wrappedRequest.getParameter(PortletStateManager.UP_WINDOW_STATE);
View Full Code Here

Examples of org.jboss.forge.maven.projects.util.NullOutputStream

      return executeMaven(parameters.toArray(new String[] {}));
   }

   public boolean executeMaven(final String[] selected)
   {
      return executeMaven(new NullOutputStream(), selected);
   }
View Full Code Here

Examples of org.jfree.layouting.util.NullOutputStream

  public static void main (final String[] args)
          throws IOException, NormalizationException
  {
    LibLayoutBoot.getInstance().start();

    final OutputStream out = new NullOutputStream();

    final URL url = new URL ("file:///home/src/jfreereport/head/liblayout/styletest/simple.html");
    final XhtmlResourceFactoryModule module = new XhtmlResourceFactoryModule();
   // XhtmlDocument doc = module.createDocument(url.openStream(), url, url.toExternalForm(), "text/html");
View Full Code Here

Examples of org.jnode.shell.io.NullOutputStream

    private static PrintStream nullStream;

    private boolean error_occurred = false;

    public AbstractProxyPrintStream() {
        super(new NullOutputStream());
    }
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.