text
stringlengths
3
1.18M
package org.dodgybits.shuffle.android.core.model.persistence; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.provider.BaseColumns; import org.dodgybits.shuffle.android.core.model.En...
package org.dodgybits.shuffle.android.core.model.protocol; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; ...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.dto.ShuffleProtos.Date; public final class ProtocolUtil { private ProtocolUtil() { // deny } public static Date toDate(long millis) { return Date.newBuilder() .setMillis(millis) ...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.dto.ShuffleProtos.Project.Builder; public class ProjectProtocolT...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; import java.util.HashMap; import java.util.Map; public class HashEntityDirectory<Entity> implements MutableEntityDirectory<Entity> { private Map<String,Entity> mItemsByName; private Map<Id, Entity> mItem...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.dto.ShuffleProtos.Context.Builder; public class ContextProtocolTranslator implements EntityProtocolTranslator<Context , ...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; public interface MutableEntityDirectory<Entity> extends EntityDirectory<Entity> { void addItem(Id id, String name, Entity item); }
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; /** * A lookup service for entities. Useful when matching up entities from different * sources that may have conflicting ids (e.g. backup or remote synching). */ public interface EntityDirectory<Entity> {...
package org.dodgybits.shuffle.android.core.model.protocol; import com.google.protobuf.MessageLite; public interface EntityProtocolTranslator<E,M extends MessageLite> { E fromMessage(M message); M toMessage(E entity); }
package org.dodgybits.shuffle.android.core.model; public interface EntityBuilder<E> { EntityBuilder<E> mergeFrom(E e); EntityBuilder<E> setLocalId(Id id); EntityBuilder<E> setModifiedDate(long ms); EntityBuilder<E> setActive(boolean value); EntityBuilder<E> setDeleted(boolean value); E build()...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Project.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static a...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Task; import org.dodgybits.shuffle.android.core.model.Task.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static android...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; public interface EntityEncoder<Entity> { void save(Bundle icicle, Entity e); Entity restore(Bundle icicle); }
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Context.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static a...
package org.dodgybits.shuffle.android.core.model; public interface Entity { /** * @return primary key for entity in local sqlite DB. */ Id getLocalId(); /** * @return primary key for entity in google app engine datastore. */ Id getGaeId(); /** * @return ms since epoch e...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.view; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import org.dodgybits.android.shuffle.R; import java.util.ArrayList; import java.util.Collections; import ja...
package org.dodgybits.shuffle.android.core.view; import org.dodgybits.android.shuffle.R; public class ListIcons { public static final int INBOX = R.drawable.format_justify_fill; public static final int DUE_TODAY = R.drawable.office_calendar; public static final int DUE_NEXT_WEEK = R.drawable.office_calen...
package org.dodgybits.shuffle.android.core.view; import android.content.res.Resources; import android.text.TextUtils; import org.dodgybits.android.shuffle.R; public class ContextIcon { private static final String TAG = "ContextIcon"; private static final String PACKAGE = "org.dodgybits.android.shuffle"; ...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.view; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.database.Cursor; import android.util.Log; import com.google.common.collect.Lists; import org.dodgybits.android.shuffle.R; impor...
package org.dodgybits.shuffle.android.core.view; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.util.FontUtils; pub...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.view; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; public class IconNameCountListAdaptor extends ArrayAdapter<IconNameCountListAdaptor.ListItem> { private ListItem[] mListItems; public ...
package org.dodgybits.shuffle.android.core.view; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.res.Configuration; import android.database.Cursor; import android.os.AsyncTask; import android.os.Bundle; ...
package org.dodgybits.shuffle.android.core.view; import org.dodgybits.android.shuffle.R; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class IconArrayAdapter extends ArrayAdapter<CharSequence> { pr...
package org.dodgybits.shuffle.android.core.fragment; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.Launc...
package org.dodgybits.shuffle.android.core.fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import org.dodgybits.android.shuffle.R; import roboguice.fragment.RoboFragment; public class HelpListFragment exte...
package org.dodgybits.shuffle.android.core.configuration; import com.google.inject.AbstractModule; import com.google.inject.TypeLiteral; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; import ...
package org.dodgybits.shuffle.android.core.util; import java.util.Collection; public class CollectionUtils { public static long[] toPrimitiveLongArray(Collection<Long> collection) { // Need to do this manually because we're converting to a primitive long array, not // a Long array. final ...
package org.dodgybits.shuffle.android.core.util; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; import java.util.List; public class TaskLifecycleState { public static enum Status { ye...
package org.dodgybits.shuffle.android.core.util; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; public class PackageUtils { /** * @return Application's version code from the {@code PackageManager}. */ public static int getAppVersion(...
package org.dodgybits.shuffle.android.core.util; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.net.Uri; import org.dodgybits.shuffle.android.core.activity.MainActivity; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle....
package org.dodgybits.shuffle.android.core.util; import android.app.Activity; import android.content.Context; import android.os.Handler; import android.view.View; import android.view.ViewParent; import android.widget.ListView; import org.dodgybits.android.shuffle.R; public class UiUtilities { private UiUtilities(...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.util; import android.content.res.AssetManager; import android.graphics.Typeface; import android.text.TextPaint; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.Objects; public class FontUtils { private static Typ...
package org.dodgybits.shuffle.android.core.util; import java.util.List; public class StringUtils { public static String repeat(int count, String token) { return repeat(count, token, ""); } public static String repeat(int count, String token, String delim) { StringBuilder builder = new StringBuilder(); for...
package org.dodgybits.shuffle.android.core.util; import java.lang.ref.SoftReference; import java.util.HashMap; import android.util.Log; /** * Generic in-memory cache based on Romain Guy's suggestion. * See http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html */ public class ItemCache<K,V> ...
package org.dodgybits.shuffle.android.core.util; import android.os.Bundle; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.model.Id; import java.util.List; public class BundleUtils { public static Id getId(Bundle icicle, String key) { Id result = Id.NONE; if (ic...
package org.dodgybits.shuffle.android.core.util; import android.os.Build; import java.lang.reflect.Field; public class OSUtils { public static boolean atLeastFroyo() { return osAtLeast(Build.VERSION_CODES.FROYO); } public static boolean atLeastHoneycomb() { return osAtLeast(Build.VERSIO...
package org.dodgybits.shuffle.android.core.util; import android.content.AsyncQueryHandler; import android.net.Uri; public class CalendarUtils { // We can't use the constants from the provider since it's not a public portion of the SDK. private static final Uri CALENDAR_CONTENT_URI = Uri.parse("cont...
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package org.dodgybits.shuffle.android.widget; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.*; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.view.IconNameCountListAdaptor; import org.dodgybits.shuffle.android.core.view.ListIcons; ...
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package org.dodgybits.shuffle.android.widget; import android.app.Dialog; import android.appwidget.AppWidgetManager; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import com.google.inject.Inject; import org.dodgybits...
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package org.dodgybits.shuffle.android.widget; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.graphics.drawable.GradientDrawable; import android.widget.RelativeLayout; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android....
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
package org.dodgybits.android.shuffle.util; import org.junit.Assert; import org.junit.Test; public class DateUtilsTest { @Test public void testParser() throws Exception { Assert.assertEquals(1250337003000L, DateUtils.parseIso8601Date("2009-08-15T12:50:03+01:00")); Assert.assertEquals(1263144...
package com.rinvay.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.net.Uri; import android.webkit.MimeTypeMap; public class URLUtil { /** * Guesses canonical filename that a download would have, using * the URL and contentDisposition. File extension, if not de...
package com.rinvay.utils.logger; public abstract class Appender { /** * Print a trace * * @param tag * @param level * @param trace */ public abstract void printTrace(String tag, int level, String trace); }
package com.rinvay.utils.logger; public class CommonAppender extends Appender { public synchronized void printTrace(String tag, int level, String trace) { String Lv = ""; switch(level) { case Logger.VERBOSE_LEVEL: Lv = "VERBOSE"; break; case Logge...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.utils; import java.util.Hashtable; public class MIMEManager { private static Hashtable<String, String> mimeTable = new Hashtable<String, String>(); static { // Image type mimeTable.put("jpg", "image/jpeg"); mimeTable.put("jpeg", "image/jpeg"); mime...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.network.http.conn.impl; import com.rinvay.network.http.conn.HttpConnectionListener; public interface DefaultHttpConnectionListener extends HttpConnectionListener { public void onResponse(byte[] resp); }
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.network.http.exception; import java.util.HashMap; public class ErrorMessage { public static final int ERROR_CODE_NETWORK_INVALID = 100; public static final int ERROR_CODE_MALFORMED_URL = ERROR_CODE_NETWORK_INVALID + 1; public static final int ERROR_CODE_OPEN_CONNECTION = ERR...
package com.rinvay.network.http.exception; public class NetWorkInvalidException extends Exception { private static final long serialVersionUID = 1L; }
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.network.access; /** * 网络连接 * @author Rinvay.T * @date 2012-7-19 * @time 下午5:38:22 */ public class NetworkAccess { private static NetworkAccess access = null; private boolean isNetworkValid = true; private NetworkAccess() { } public s...
package com.rinvay.filedownload; public interface FileDownloadListener { public void onDownloadProcessing(String uuid); public void onDownloadTransferred(String uuid); public void onDownloadFailed(String uuid); }
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.filedownload; import com.rinvay.network.http.conn.HttpConnectionListener; public interface FileDownloadHttpConnectionListener extends HttpConnectionListener { public void onTransProgress(String uuid); public void onTransferred(String uuid); public void onTransError(S...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.asdownloader.service; import java.util.ArrayList; import com.rinvay.asdownloader.platform.logger.AndroidAppender; import com.rinvay.asdownloader.platform.persistent.DownloadTaskDAO; import com.rinvay.filedownload.FileDownloadManager; import com.rinvay.filedownload.model.DownloadTask; import...
package com.rinvay.asdownloader.core; import java.io.File; import java.io.FileOutputStream; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import java.lang.Thread.UncaughtExceptionHandler; import java.lang.reflect.Field; import java.text.DateFormat; import java.text.SimpleDat...
package com.rinvay.asdownloader.core; import com.rinvay.asdownloader.platform.logger.AndroidAppender; import com.rinvay.asdownloader.platform.persistent.DownloadTaskDAO; import com.rinvay.utils.logger.Appender; import com.rinvay.utils.logger.Logger; import android.app.Application; public class AsdApplicatio...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
package com.rinvay.asdownloader.ui; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.util.List; import com.rinvay.asdownloader.R; import com.rinvay.network.access.NetworkAccess; import com.rinvay.network.http.HttpRequest; import com.rinvay.network.htt...
package com.rinvay.asdownloader.platform.logger; import android.util.Log; import com.rinvay.utils.logger.Appender; import com.rinvay.utils.logger.Logger; public class AndroidAppender extends Appender { public synchronized void printTrace(String tag, int level, String trace) { tag = "[ASD][" +...
package com.rinvay.asdownloader.platform.persistent; import com.rinvay.utils.logger.Logger; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class FileDownloadHelper extends SQLiteOpenHelper { private static final Str...
package com.rinvay.asdownloader.platform.persistent; import java.util.ArrayList; import com.rinvay.filedownload.model.DownloadTask; import com.rinvay.utils.logger.Logger; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQL...
package com.rinvay.asdownloader.platform.persistent; import android.provider.BaseColumns; public final class DownloadTaskData implements BaseColumns { public static final String KEY_UUID = "uuid"; public static final String KEY_URL = "url"; public static final String KEY_DIRECTORY = "directory"; ...
package com.rinvay.asdownloader.platform.persistent; import java.io.IOException; import java.io.StringReader; import java.util.List; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; import android.util.Log; import com.rinvay.f...
package com.rinvay.utils.logger; public abstract class Appender { /** * Print a trace * * @param tag * @param level * @param trace */ public abstract void printTrace(String tag, int level, String trace); }
package com.rinvay.utils.logger; public class CommonAppender extends Appender { public synchronized void printTrace(String tag, int level, String trace) { String Lv = ""; switch(level) { case Log.VERBOSE_LEVEL: Lv = "VERBOSE"; break; case Log.DEBU...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.network.http.conn.impl; import com.rinvay.network.http.conn.HttpConnectionListener; public interface DefaultHttpConnectionListener extends HttpConnectionListener { public void onResponse(byte[] resp); }
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
package com.rinvay.network.http.exception; import java.util.HashMap; /** * 连接错误错误码表 * @author Rinvay.T * @date 2012-8-15 * @time 上午10:11:00 */ public class ErrorMessage { /** * 没有有效的网络连接 */ public static final int ERROR_CODE_NETWORK_INVALID = 100; /** * 异常的URL */...
package com.rinvay.network.http.exception; public class NetWorkInvalidException extends Exception { private static final long serialVersionUID = 1L; }
/** * */ package com.rinvay.network.http; /** * @author rinvay * @date 2012-12-24 上午12:51:40 */ public class HttpResponse { }
/******************************************************************************* * Software Name : Android Simple Downloader * * Copyright © 2012 Rinvay Tang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...