java.io.PrintStream



API Populatity

164 Client projects

Project: java

Package: java.io

Project ervandew/eclim in file ...eclim.java.org.eclim.eclipse.EclimApplication.java (2014-10-12)
@@ -16,6 +16,8 @@
  */
 package org.eclim.eclipse;
 
+import java.io.PrintStream;
+
 import java.util.Arrays;
 import java.util.HashSet;
 import java.util.Map;
@@ -56,6 +58,9 @@ public class EclimApplication
   private static EclimApplication instance;
   private static boolean stopping;
 
+  public static PrintStream stdout = System.out;
+  public static PrintStream stderr = System.err;
+
   @SuppressWarnings({"rawtypes", "unchecked"})
   @Override
   public Object start(IApplicationContext context)
Project facebook/buck in file ...vent.listener.AbstractConsoleEventBusListener.java (2015-02-16)
@@ -34,7 +34,6 @@ import com.google.common.eventbus.Subscribe;
 
 import java.io.Closeable;
 import java.io.IOException;
-import java.io.PrintStream;
 import java.text.DecimalFormat;
 import java.util.logging.Level;
 
@@ -50,7 +49,6 @@ public abstract class AbstractConsoleEventBusListener implements BuckEventListen
   protected final Console console;
   protected final Clock clock;
   protected final Ansi ansi;
-  protected final PrintStream stdErr;
 
   @Nullable
   protected volatile ProjectBuildFileParseEvents.Started projectBuildFileParseStarted;
@@ -98,8 +96,6 @@ public abstract class AbstractConsoleEventBusListener implements BuckEventListen
 
     this.installStarted = null;
     this.installFinished = null;
-
-    this.stdErr = console.getStdErr().getRawStream();
   }
 
   protected String formatElapsedTime(long elapsedTimeMs) {
Project facebook/buck in file ...ck.parser.RobolectricTestBuildRuleFactoryTest.java (2013-04-29)
@@ -33,6 +33,7 @@ import com.google.common.collect.ImmutableSortedSet;
 import org.easymock.EasyMock;
 import org.junit.Test;
 
+import java.io.PrintStream;
 import java.util.Map;
 
 public class RobolectricTestBuildRuleFactoryTest {
@@ -54,7 +55,7 @@ public class RobolectricTestBuildRuleFactoryTest {
     BuildTarget buildTarget = BuildTargetFactory.newInstance("//javatests/com/facebook/base:base");
     BuildRuleFactoryParams params = new BuildRuleFactoryParams(
         instance,
-        /* stdErr */ null,
+        /* stdErr */ EasyMock.createMock(PrintStream.class),
         projectFilesystem,
         /* buildFiles */ null,
         buildTargetParser,