java.io.InputStream



API Populatity

402 Client projects

Project: java

Package: java.io

Project Netflix/exhibitor in file ...m.netflix.exhibitor.core.backup.s3.Compressor.java (2012-02-16)
@@ -1,8 +1,11 @@
 package com.netflix.exhibitor.core.backup.s3;
 
 import java.io.File;
+import java.io.InputStream;
 
 public interface Compressor
 {
     public CompressorIterator     compress(File f) throws Exception;
+    
+    public CompressorIterator     decompress(InputStream in) throws Exception;
 }
Project bumptech/glide in file ...ech.glide.samples.flickr.FlickrSearchActivity.java (2014-04-26)
@@ -20,6 +20,7 @@ import com.bumptech.glide.Glide;
 import com.bumptech.glide.samples.flickr.api.Api;
 import com.bumptech.glide.samples.flickr.api.Photo;
 
+import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -74,6 +75,8 @@ public class FlickrSearchActivity extends SherlockFragmentActivity {
                 .penaltyLog()
                 .build());
 
+        Glide.get(this).register(Photo.class, InputStream.class, new FlickrModelLoader.Factory());
+
         searching = findViewById(R.id.searching);
         searchLoading = findViewById(R.id.search_loading);
         searchTerm = (TextView) findViewById(R.id.search_term);
Project bumptech/glide in file ...ech.glide.samples.flickr.FlickrSearchActivity.java (2015-01-21)
@@ -33,7 +33,6 @@ import com.bumptech.glide.samples.flickr.api.Api;
 import com.bumptech.glide.samples.flickr.api.Photo;
 
 import java.io.File;
-import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -90,7 +89,6 @@ public class FlickrSearchActivity extends ActionBarActivity {
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
-        Glide.get(this).register(Photo.class, InputStream.class, new FlickrModelLoader.Factory());
         backgroundThread = new HandlerThread("BackgroundThumbnailHandlerThread");
         backgroundThread.start();
         backgroundHandler = new Handler(backgroundThread.getLooper());