`
lichen0921
  • 浏览: 81227 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论
文章列表
用FlvPlayer播放.flv文件的时候发现不能播放中文文件名的.flv视频... 是播放器的问题...最初想用URLEncoder.encode()的,可是这个又不是url传中文参数的问题...于是想到把中文名转成可识别的字符,想到字符集不是很理想... 可否用拼音呢? 找了一下,找到这个中文转拼音的很实用的方法... ChineseSpelling.java package com.enorth.lichen.transcode; public class ChineseSpelling {                  private static int[] pyva ...
JBOSS-WEB据说很有前途,有tomcat的优势,又能近似apache的稳定. 下载下来有2个版本.一个是安装版一个是解压缩版--近乎tomcat.是青出于蓝而胜于蓝 修改端口号 修改server.xml文件    <!--          <Connector port="8080" protocol="HTTP/1.1"                              connectionTimeout="20000" redirectPort="8443" />-- ...
Java web开发调用外部ffmpeg或mencoder转码... 遇到的问题是ffmpeg或mencoder进程阻塞, 需要停掉tomcat--javaw.exe进程之后才能执行ffmpeg.exe或mencoder.exe 问题的原因: getErrorStream 和 getInputStream 缓冲区没有清空 解决的方法: 同时清空getErrorStream 和 getInputStream 的缓冲区 代码如下:        ProcessBuilder builder = new ProcessBuilder();        builder.comman ...
    flv格式转换--第一步 不定期更新... 首先要安装MediaCoder 安装目录假设为D:\flv\MediaCoder 在D:\flv\MediaCoder\codecs目录下有一些要用到的,如ffmpeg.exe , mencoder.exe还有一些dll ConvertVideo.java package com.lichen.test; import java.io.File; import java.util.List; public class ConvertVideo {   private final static String PAT ...
URL传递中文参数,默认格式为ISO-8859-1,一般在接收该参数时,如果不进行编码,得到的会是乱码。   如果在url中直接使用中文,如: http://website/login.jsp?name=好&pwd=000 在接收参数name时,只需要进行一下编码方式的转换就OK了,如: <%@ page language="java" pageEncoding="GB2312"%>         <%             String name= request.getParameter("name ...
Java多线程使用线程池效果更好, 目的如连接池. 第一个实例. ThreadPool.java package com.lichen.test; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class ThreadPool {   private static int produceTaskSleepTime = 2;   private st ...
文件上传部分: 上传页面 upload.jsp         <s:form action ="upload" method ="POST" enctype ="multipart/form-data" >                    <s:file name ="file" label ="上传文件"/>        ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
Global site tag (gtag.js) - Google Analytics