Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion;
 
 import  com.koushikdutta.async.DataEmitter;
 import  com.koushikdutta.async.future.Future;
 import  com.koushikdutta.async.future.FutureCallback;
 import  com.koushikdutta.async.http.AsyncHttpRequest;

Created by koush on 5/22/13.
public interface Loader {
    public static class LoaderEmitter {
        public LoaderEmitter(DataEmitter emitterint length) {
            this. = length;
            this. = emitter;
        }
        DataEmitter emitter;
        int length;
        public DataEmitter getDataEmitter() {
            return ;
        }
        public int length() {
            return ;
        }
    }
    // returns a Future if this loader can handle a request
    // otherwise it returns null, and Ion continues to the next loader.
    public Future<DataEmitter> load(Ion ion, AsyncHttpRequest request, FutureCallback<LoaderEmittercallback);
New to GrepCode? Check out our FAQ X