In order to check XML data for validity we have to prepare its schema XSD-file. This file will be loaded by a JAXP package to a Schema objects instanc...
分类:
其他好文 时间:
2014-10-12 19:06:58
阅读次数:
169
最近在做RTSP视频流的播放,使用了VLC的库。
在做demo的时候,初始化函数video_inst = libvlc_new(vlc_args_num , vlc_args);返回的值总是为空,在网上找了很多解释,都是关于该函数的说明,木有解决方法。
函数的返回值说明:当初始化创建成功时,返回一个VLC的instanc;否则返回空。
解决方...
分类:
编程语言 时间:
2014-09-19 17:42:35
阅读次数:
961
有些时候我们要把Activity的一些实现类移到java类里来实现,比如把写以下两个类:
在LifeCircle这个类中:
public class LifeCircle {
public class Mybroadcast extends BroadcastReceiver {
@Override
public void onReceive(Context context,...
分类:
数据库 时间:
2014-08-25 10:06:54
阅读次数:
252
innerclass分为四种
一.staticinnerclass(静态内部类)
1.the simplest form of inner class
2.Can't hava the same name as the enclosing class
3.Compiled into a comletely separate .class file from the out class...
分类:
编程语言 时间:
2014-08-07 15:47:40
阅读次数:
319
局部变量block内使用局部变量,一般都是截获变量(只读),截获离block初始化最近的一次的值。引用官方文档:Stack (non-static) variables local to the enclosing lexical scope are captured asconst variabl...
分类:
其他好文 时间:
2014-07-28 19:15:34
阅读次数:
302
摘要:本Blog主要为了阐述java.lang.OutOfMemoryError:PermGenspace可能产生的原因及解决方案。其中PermGen
space是Permanent Generationspace的简写,表示内存的永久保存区域,这块内存主要是被JVM存放Class和Meta信息的,Class在被Loader时就会被放到PermGenspace中,它和存放类实例(Instanc...
分类:
其他好文 时间:
2014-07-20 22:45:43
阅读次数:
453
实用场景编号场景1数据库连接2<?php
/**
*PHP设计模式-单例模式
*@authorchengtao3
*/
classSingleton{
privatestatic$Instance=null;
/**
*公共静态方法获取实例
*@returnSingleton
*/
publicfunctiongetInstance(){
if(self::$Instance==null){
self::$Instanc..
分类:
Web程序 时间:
2014-06-28 00:12:03
阅读次数:
228
Lua中的函数是一阶类型值(first-class value),定义函数就象创建普通类型值一样(只不过函数类型值的数据主要是一条条指令而已),所以在函数体中仍然可以定义函数。假设函数f2定义在函数f1中,那么就称f2为f1的内嵌(inner)函数,f1为f2的外包(enclosing)函数,外.....
分类:
其他好文 时间:
2014-06-24 11:41:01
阅读次数:
170
??
Artifacts
工件
“Hello, World!”
is implemented as an applet, so it never stands alone but instead is typically a part of some Web page. The applet starts when its enclosing page is opened, trigge...
分类:
其他好文 时间:
2014-06-22 19:50:03
阅读次数:
180
打开File Search对话框,选中正则表达式,在搜索文本框输入 /n文件名称输入
*.java在范围里选中Enclosing projects然后就可以统计出整个项目的代码行数。
分类:
系统相关 时间:
2014-06-07 06:16:41
阅读次数:
279