资源简介
spydroid-ipcamera最新版源码, spydroid-ipcamera支持Android H264硬件编码。
代码片段和文件信息
/*
* Copyright (C) 2011-2012 GUIGUI Simon fyhertz@gmail.com
*
* This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/)
*
* Spydroid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License or
* (at your option) any later version.
*
* This source code is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
package net.majorkernelpanic.http;
import static net.majorkernelpanic.http.TinyHttpServer.TAG;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.URLDecoder;
import java.util.Date;
import java.util.Locale;
import org.apache.http.HttpEntity;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.MethodNotSupportedException;
import org.apache.http.entity.AbstractHttpEntity;
import org.apache.http.entity.ContentProducer;
import org.apache.http.entity.EntityTemplate;
import org.apache.http.entity.InputStreamEntity;
import org.apache.http.impl.cookie.DateParseException;
import org.apache.http.impl.cookie.DateUtils;
import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.HttpRequestHandler;
import org.apache.http.util.EntityUtils;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.util.Log;
/**
*
* Serves the content of assets/www
*
*/
public class ModAssetServer implements HttpRequestHandler {
public static final String PATTERN = “*“;
/** The list of MIME Media Types supported by the server. */
public static String[] mimeMediaTypes = new String[] {
“htm“ “text/html“
“html“ “text/html“
“gif“ “image/gif“
“jpg“ “image/jpeg“
“png“ “image/png“
“js“ “text/javascript“
“json“ “text/json“
“css“ “text/css“
};
private final TinyHttpServer mServer;
private final AssetManager mAssetManager;
public ModAssetServer(TinyHttpServer server) {
super();
mServer = server;
mAssetManager = mServer.mContext.getAssets();
}
public void handle(
final HttpRequest request
final HttpResponse response
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-04-03 19:40 spydroid-ipcamera\
文件 530 2015-04-03 19:40 spydroid-ipcamera\.classpath
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\
文件 23 2015-04-03 19:40 spydroid-ipcamera\.git\HEAD
文件 334 2015-04-03 19:40 spydroid-ipcamera\.git\config
文件 73 2015-04-03 19:33 spydroid-ipcamera\.git\desc
目录 0 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\
文件 452 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\applypatch-msg.sample
文件 896 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\commit-msg.sample
文件 189 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\post-update.sample
文件 398 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\pre-applypatch.sample
文件 1642 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\pre-commit.sample
文件 1352 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\pre-push.sample
文件 4951 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\pre-reba
文件 1239 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\prepare-commit-msg.sample
文件 3611 2015-04-03 19:33 spydroid-ipcamera\.git\hooks\update.sample
文件 13496 2015-04-03 19:40 spydroid-ipcamera\.git\index
目录 0 2015-04-03 19:33 spydroid-ipcamera\.git\info\
文件 240 2015-04-03 19:33 spydroid-ipcamera\.git\info\exclude
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\logs\
文件 203 2015-04-03 19:40 spydroid-ipcamera\.git\logs\HEAD
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\heads\
文件 203 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\heads\master
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\remotes\
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\remotes\origin\
文件 203 2015-04-03 19:40 spydroid-ipcamera\.git\logs\refs\remotes\origin\HEAD
目录 0 2015-04-03 19:33 spydroid-ipcamera\.git\ob
目录 0 2015-04-03 19:41 spydroid-ipcamera\.git\ob
目录 0 2015-04-03 19:40 spydroid-ipcamera\.git\ob
文件 89832 2015-04-03 19:40 spydroid-ipcamera\.git\ob
............此处省略179个文件信息
相关资源
- Android代码-多功能拨号盘源码.zip
- printershare直接破解版--11.5(适配andr
- android RDP远程桌面客户端源码
- 手机远程控制手机android
- spring boot+ios app+android app 即时通讯项目
- Androidrepo文件
- Aandroid 多线程断点续传同时多个大文
- Vue项目实现手机端上传图片,使用于
- Android多文件断点续传
- Android多线程文件夹及断点续传
- android 安卓 FTP 文件 管理
- Android-5.1.1_r1源码.7z
- mac版adb工具
- NFC Card万能读卡android程序
- Android直连Mysql数据库需要导入的jar包
- android实现谷歌地图项目
- Android日历239876
- 主页面框架
- Android双列滑动表格(双表头不动)
- android绘制心电图
- Android安卓中文API开发文档参考手册官
- Android开发的UI图标大全
- Crypto++ 7.0.0 for Android 已编译
- Android手机通过otg线外接usb摄像头
- AndroidStudio使用svn第一次提交忽略文件
- Android编程设计模式之原型模式详解
- 浅谈Android客户端与服务器的数据交互
- 基于android框架的客户端和基于java服务
- 好用的支持android 6.0以上的libserial_p
- AndroidStudio插件配置
评论
共有 条评论