java.io.OutputStream



Project square/okio in file ...kio.src.test.java.okio.RealBufferedSourceTest.java (2014-03-08)
@@ -18,7 +18,6 @@ package okio;
 import java.io.EOFException;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.OutputStream;
 import java.util.Arrays;
 import org.junit.Test;
 
@@ -163,7 +162,7 @@ public final class RealBufferedSourceTest {
 
     // Test a sample set of methods.
     try {
-      bufferedSource.seek((byte) 1);
+      bufferedSource.indexOf((byte) 1);
       fail();
     } catch (IllegalStateException expected) {
     }
Project yangfuhai/afinal in file ...src.net.tsz.afinal.bitmap.download.Downloader.java (2013-07-21)
@@ -15,7 +15,6 @@
  */
 package net.tsz.afinal.bitmap.download;
 
-import java.io.OutputStream;
 
 public interface Downloader  {
 	
@@ -25,5 +24,5 @@ public interface Downloader  {
 	 * @param outputStream
 	 * @return
 	 */
-	public boolean downloadToLocalStreamByUrl(String urlString, OutputStream outputStream);
+	public byte[] download(String urlString);
 }
Project WhisperSystems/TextSecure in file ...rc.org.thoughtcrime.securesms.jobs.MmsSendJob.java (2015-01-11)
@@ -31,7 +31,6 @@ import org.whispersystems.libaxolotl.NoSessionException;
 
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
-import java.io.OutputStream;
 import java.util.Arrays;
 
 import ws.com.google.android.mms.MmsException;
@@ -43,7 +42,7 @@ import ws.com.google.android.mms.pdu.PduPart;
 import ws.com.google.android.mms.pdu.SendConf;
 import ws.com.google.android.mms.pdu.SendReq;
 
-public class MmsSendJob extends MasterSecretJob {
+public class MmsSendJob extends SendJob {
 
   private static final String TAG = MmsSendJob.class.getSimpleName();
 
@@ -66,7 +65,7 @@ public class MmsSendJob extends MasterSecretJob {
   }
 
   @Override
-  public void onRun(MasterSecret masterSecret) throws MmsException, NoSuchMessageException, IOException {
+  public void onSend(MasterSecret masterSecret) throws MmsException, NoSuchMessageException, IOException {
     MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
     SendReq     message  = database.getOutgoingMessage(masterSecret, messageId);
 
Project apache/cassandra in file ...src.java.org.apache.cassandra.tools.NodeProbe.java (2010-08-16)
@@ -19,7 +19,6 @@
 package org.apache.cassandra.tools;
 
 import java.io.IOException;
-import java.io.OutputStream;
 import java.io.PrintStream;
 import java.lang.management.ManagementFactory;
 import java.lang.management.MemoryMXBean;
@@ -412,9 +411,9 @@ public class NodeProbe
         ssProxy.loadSchemaFromYAML();
     }
     
-    public void exportSchemaToYAML(String filename) throws IOException
+    public String exportSchemaToYAML() throws IOException
     {
-        ssProxy.exportSchema(filename);
+        return ssProxy.exportSchema();
     }
 }
 
Project bumptech/glide in file ....java.com.bumptech.glide.load.ResourceEncoder.java (2014-06-25)
@@ -2,10 +2,6 @@ package com.bumptech.glide.load;
 
 import com.bumptech.glide.load.engine.Resource;
 
-import java.io.OutputStream;
+public interface ResourceEncoder<T> extends Encoder<Resource<T>>{
 
-public interface ResourceEncoder<T> {
-    public boolean encode(Resource<T> resource, OutputStream os);
-
-    public String getId();
 }