资源简介
看雪论坛APP源码 免费分享给大家 欢迎大家加入群 160373684 大家一起交流
代码片段和文件信息
/*
* 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 applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.util;
import java.io.UnsupportedEncodingException;
/**
* Utilities for encoding and decoding the base64 representation of
* binary data. See RFCs * href=“http://www.ietf.org/rfc/rfc2045.txt“>2045 and * href=“http://www.ietf.org/rfc/rfc3548.txt“>3548.
*/
public class base64 {
/**
* Default values for encoder/decoder flags.
*/
public static final int DEFAULT = 0;
/**
* Encoder flag bit to omit the padding ‘=‘ characters at the end
* of the output (if any).
*/
public static final int NO_PADDING = 1;
/**
* Encoder flag bit to omit all line terminators (i.e. the output
* will be on one long line).
*/
public static final int NO_WRAP = 2;
/**
* Encoder flag bit to indicate lines should be terminated with a
* CRLF pair instead of just an LF. Has no effect if {@code
* NO_WRAP} is specified as well.
*/
public static final int CRLF = 4;
/**
* Encoder/decoder flag bit to indicate using the “URL and
* filename safe“ variant of base64 (see RFC 3548 section 4) where
* {@code -} and {@code _} are used in place of {@code +} and
* {@code /}.
*/
public static final int URL_SAFE = 8;
/**
* Flag to pass to {@link base64OutputStream} to indicate that it
* should not close the output stream it is wrapping when it
* itself is closed.
*/
public static final int NO_CLOSE = 16;
// --------------------------------------------------------
// shared code
// --------------------------------------------------------
/* package */ static abstract class Coder {
public byte[] output;
public int op;
/**
* Encode/decode another block of input data. this.output is
* provided by the caller and must be big enough to hold all
* the coded data. On exit this.opwill be set to the length
* of the coded data.
*
* @param finish true if this is the final call to process for
* this object. Will finalize the coder state and
* include any final bytes in the output.
*
* @return true if the input so far is good; false if some
* error has been detected in the input stream..
*/
public abstract boolean process(byt
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-07-22 13:52 kanxue-android-app-master\
文件 426 2013-07-22 13:52 kanxue-android-app-master\.classpath
文件 483 2013-07-22 13:52 kanxue-android-app-master\.gitattributes
文件 1955 2013-07-22 13:52 kanxue-android-app-master\.gitignore
文件 809 2013-07-22 13:52 kanxue-android-app-master\.project
文件 2085 2013-07-22 13:52 kanxue-android-app-master\AndroidManifest.xm
文件 970 2013-07-22 13:52 kanxue-android-app-master\README.md
目录 0 2013-07-22 13:52 kanxue-android-app-master\libs\
文件 226218 2013-07-22 13:52 kanxue-android-app-master\libs\fastjson-1.1.26-android.jar
文件 237 2013-07-22 13:52 kanxue-android-app-master\lint.xm
文件 781 2013-07-22 13:52 kanxue-android-app-master\proguard-project.txt
目录 0 2013-07-22 13:52 kanxue-android-app-master\proguard\
文件 3102608 2013-07-22 13:52 kanxue-android-app-master\proguard\dump.txt
文件 93147 2013-07-22 13:52 kanxue-android-app-master\proguard\mapping.txt
文件 17026 2013-07-22 13:52 kanxue-android-app-master\proguard\seeds.txt
文件 21425 2013-07-22 13:52 kanxue-android-app-master\proguard\usage.txt
文件 562 2013-07-22 13:52 kanxue-android-app-master\project.properties
目录 0 2013-07-22 13:52 kanxue-android-app-master\res\
目录 0 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\
文件 1540 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\action_settings.png
文件 448 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\btn_default_disabled_focused_holo_light.9.png
文件 422 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\btn_default_disabled_holo_light.9.png
文件 471 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\btn_default_focused_holo_light.9.png
文件 452 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\btn_default_normal_holo_light.9.png
文件 671 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\btn_default_pressed_holo_light.9.png
文件 1229 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\coffee.png
文件 1262 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\collections_view_as_grid.png
文件 1386 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\collections_view_as_list.png
文件 1644 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\default_user_head_img.png
文件 1092 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\edit.png
文件 3261 2013-07-22 13:52 kanxue-android-app-master\res\drawable-hdpi\forum_new.png
............此处省略173个文件信息
评论
共有 条评论