Android Open Source - EvokeFramework Part Object






From Project

Back to project page EvokeFramework.

License

The source code is released under:

Apache License

If you think the Android project EvokeFramework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.fs.net.evoke.data;
//from   w ww. j a v a  2 s  . co m
import java.io.File;

/**
 * Created by Fatih on 29/01/15.
 * as org.fs.net.evoke.data.PartObject
 */
public class PartObject {
    
    private final File  file;
    private final String urlString;
    private final String range;
    
    private PartObject(final File file, final String range, final String urlString) {
        this.urlString = urlString;
        this.range = range;
        this.file = file;
    }

    @Override
    public String toString() {
        return "r: " + getRange();
    }

    public String getRange() {
        return range;
    }

    public File getFile() {
        return file;
    }

    public String getUrlString() {
        return urlString;
    }

    public static class Builder {
        File file;
        String urlString;
        String range;
        
        public Builder() { }
        
        public Builder file(File file) {
            this.file = file;
            return this;
        }
        
        public Builder urlString(String urlString) {
            this.urlString = urlString;
            return this;
        }
        
        public Builder range(String range) {
            this.range = range;
            return this;
        }
        
        public PartObject build() {
            return new PartObject(file, range, urlString);
        }
    }
}




Java Source Code List

org.fs.net.ApplicationTest.java
org.fs.net.MainActivity.java
org.fs.net.evoke.ApplicationTest.java
org.fs.net.evoke.DownloadManager.java
org.fs.net.evoke.core.AbstractObject.java
org.fs.net.evoke.data.Download.java
org.fs.net.evoke.data.Error.java
org.fs.net.evoke.data.HeadObject.java
org.fs.net.evoke.data.PartObject.java
org.fs.net.evoke.data.RequestObject.java
org.fs.net.evoke.database.DatabaseHelper.java
org.fs.net.evoke.listener.HeadCallback.java
org.fs.net.evoke.listener.PartCallback.java
org.fs.net.evoke.request.HeadRequest.java
org.fs.net.evoke.request.PartRequest.java
org.fs.net.evoke.th.AbstractRunnable.java
org.fs.net.evoke.util.JsonUtility.java
org.fs.net.evoke.util.LogUtil.java
org.fs.net.evoke.util.RequestUtility.java
org.fs.net.evoke.util.StringUtility.java
org.fs.net.evoke.util.Util.java