`
fonter
  • 浏览: 868146 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
Tomcat按Start Service后,进展到一半时,服务启动不了 解决办法:把java jre里面的jre里的msvcr71.dll copy到windows system32目录下 就能启动了
Experiments in Streaming Content in Java ME例子的源码下载   原作者的BLOG文:http://today.java.net/pub/a/today/2006/08/22/experiments-in-streaming-java-me.html?page=1   开发RTSP的相关资料: Experiments in Streaming Content in Java ME(1) http://fonter.iteye.com/blog/425372Experiments in Streaming Content in Java ME(2) ...
今天别人遇到一个奇怪的BUG,抛出的异常如下: can't find referenced method 'boolean equalsIgnoreCase(java.lang.String)' in class java.lang.StringWarning: there were 1 unresolved references to program class members.         Your input classes appear to be inconsistent.         You may need to recompile them and try again. ...
  使用之前,必须了解的基本概念与核心类:Session是邮件操作的接口;Transport是收发邮件所使用的协议,一般Session会有多个Transport;Message是收发操作的单位;Store是消息的集合,类似邮件客户端。每个Store包含一系列的Folder和Message,每个Folder又包含一系列的Folder和Message。 Session需要使用java,mail.util.Properties来构造,常用的用来构造Sess
9.   同步(Concurrent)      1.      Executor接口      Executor接口提供了一个类似于线程池的管理工具。用于只需要往Executor中提交Runnable对象,剩下的启动线程等工作,都会有对应的实现类来完成。ScheduledExecutorService比Execu ...
今天修改了一个很重要的Bug,这个BUG会不断向服务端请求相同的URL,主要原因是keyRepeated用了keyPressed处理方法,当遇到FIRE事件时,就会处于死循环,解决的办法把keyRepeated和keyPressed相分离,keyRepeated只需处理的是UP,DOWN,LEFT,RIGHT事件,不必处理FIRE事件,平时开发可能会遇到此问题,把事件分开处理就行了。  
Apache Bench ab的全称是Apache Bench,是 Apache 附带的一个小工具,专门用于HTTP Server 的benchmark testing,可以同时模拟多个并发请求。   测试方法: 运行:D:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 10000 -c 1000 http ://www.yongmail.com/   D:\Program Files\Apache Software Foundation\Apache2.2\bin为你的Apache HTTP Ser ...
写这个为了以后不再到处上网找答案 Apache安装无服务解决方法: 命令行进入apache目录下的bin ,运行如下指令即可注册服务,如: D:\Program Files\Apache Software Foundation\Apache2.2\bin> httpd.exe -k install -n apache2.2   the requested operation has failed错误解决方法: 在找到httpd.conf文件,修改Listen 80为没被占用的端口
Back to RTPSourceStream and StreamingDataSource With the protocol handler in place, let's revisit the RTPSourceStream and StreamingDataSource classes from earlier, where they contained only place-holder methods. The StreamingDataSource is simple to code:   import java.io.IOException; import javax ...
Creating an RTSP Protocol Handler Recall that RTSP is the actual protocol over which streaming commands are initiated, through which the RTP packets are received. The RTSP protocol is like a command initiator, a bit like HTTP. For a really good explanation of a typical RTSP session, please see these ...
Since my book on Mobile Media API (MMAPI), Pro Java ME MMAPI: Mobile Media API for Java Micro Edition, was published in May, I have been inundated with requests to help readers with streaming content via MMAPI for Java-enabled mobile devices. This topic was an important omission from the book, but on ...
最近在研究J2ME实现RTSP协议,在索爱开发网站中看到一个类,但只能用于支持RTSP协议的手机,大部分手机需利用J2ME MMAPI实现,而对于自己实现的RTSP,虽然做了一些测试,调通了一点,但还没能真正运行,不知播放的效果如何,会不会像HTTP连接那么烂!   import javax.microedition.lcdui.*; import javax.microedition.midlet.*; import javax.microedition.media.*; import javax.microedition.media.control.*; /** * ...
        之前就知道System.out.println()会耗资源,今天测试了一下,在Canvas中一边画文字一边打印文字,共有5461个文字,平均用时是780ms左右,而把打印全部删除后,性能明显加快,平均用时只有140ms左右,看来在开发时尽可能少用System.out.println()。   开发RTSP的相关资料: Experiments in Streaming Content in Java ME(1) http://fonter.iteye.com/blog/425372Experiments in Streaming Content in Java ME(2) h ...
Specifications for a simple RTSP client Abstract This document describes a simple implementation of the client side of an RTSP session, including the minimal requirements to complete a successful dialogue with the IFI extension of the Darwin Streaming Server RTSP implementation. Here, emphasis is m ...
今晚看了一点Android,觉得Android和J2ME两个按钮接口(OnClickListener和CommandListener)很相似他们都带有显示界面的类,但他们获取按钮的方式有些不同。onClick(View v) 通过v.getId()获取按钮的ID,以此判断事件。而commandAction(Command c, Displayable d)可获取按钮对象或getCommandType(),判断事件。设置监听的方法则差不多,如:setOnClickListener(this) setCommandListener(this)     读取流最快方式 http://fonter ...
Global site tag (gtag.js) - Google Analytics