Java and XML_¶ÁÊé±Ê¼Ç_2010 5 18
2010-05-18
Îå¡¢ÑéÖ¤XML
l ÊôÐÔÁËÌØÕ÷·½·¨
·½ ·¨
·µ»ØÀàÐÍ
²Î Êý
Óï ·¨
setProperty()
void
String propertyId,
Object value
parser.setProperty(“[Property URI]”,
”[Object parameter]”);
setFeature()
void
String featureId,
Boolean state
parser.setFeature(“[Feature URI], true”);
getProperty()
Object
String propertyID
String separator =
(String)parser.getProperty( “[Property URI]”);
getFeature()
boolean
String featureID
if(parser.getFeature(“[Feature URI]”)) {
doSomething();
}
l Ô¼ÊøʹÊý¾Ý¾ßÓÐÁË¿ÉÒÆÖ²ÐÔ£¬¶øÑéÖ¤Ôò±£³ÖÁËÊý¾ÝµÄÒ»ÖÂÐÔ
l ¾¯¸æ£ºÇëÇóÑéÖ¤µÄ½á¹ûÖм¸ºõûÓо¯¸æ²úÉú¡£ËùÓÐÕýÔÚ±»ÑéÖ¤µÄXMLÈç¹û²»·ûºÏ×÷ΪÒýÓõÄDTD¾ù±»×÷Ϊ´íÎó´¦Àí¡£XMLÎĵµÖеķǷ¨µ÷Óö¼ÊǺÜÑÏÖصģ¬²¢ÇҺܿÉÄܻᷢÉú´íÎó¡£ÓÉÓÚÕâ¸öÔÒò£¬ÌرðÊÇʹÓÃSAX2.0½âÎöÆ÷ʱ£¬ºÜÄѲúÉú¾¯¸æ¡£Èç¹ûÑéÖ¤½âÎöÆ÷±»ÓÃÓÚ½âÎöÒ»¸ö²¢Î´Ã÷È·ÉùÃ÷DTDµÄÎĵµ£¬¾Í»á²úÉú¾¯¸æÐÅÏ¢¡£
l ·ÇÖÂÃü´íÎó£ºÑéÖ¤XMLʱ£¬×î³£Óöµ½µÄSAXÎÊÌâÊÇ·ÇÖÂÃü´íÎóµÄ²úÉú¡£µ±Î¥·´ÁËXMLÔ¼Êøʱ´íÎó¾Í»á²úÉú¡£
l ÖÂÃüµÄ´íÎ󣺷ÇÁ¼¹¹µÄÎĵµ»áµ¼Ö½âÎö¹ý³ÌµÄÖÕÖ¹£¬ÎÞЧµÄÎĵµÍ¨³£ÊÇÖ¸Ã÷ÁËÄÇЩÄܹ»±»¾ÀÕýµÄ´íÎó»ò¿Í»§¶ËÓ¦¸ÃÁ˽âµÄ´íÎó¡£ÔÚδÑéÖ¤ÎĵµÖÐʹÓÃÎÞ·¨½ÓÊÕµÄDTDʱ£¬¿ÉÄÜÓöµ½µÄΨһµÄÖÂÃü´íÎóÊÇÓëÒýÓÃDTDÓйصÄÓï·¨´íÎó¡£
l DTDHandler½Ó¿Ú£ºÔÚ¶ÁÈ¡ºÍ·ÖÎöXMLÎĵµDTDµÄ¹ý³ÌÖУ¬SAXÌṩµÄ×éºóÒ»¸öºËÐÄÎĵµ¹ÜÀíÆ÷handler¶¨ÒåÁ˻ص÷·½·¨¡£Õâ¸ö½Ó¿Ú²¢Î´¶¨ÒåÔÚÑéÖ¤µÄ¹ý³ÌÖÐËù²úÉúµÄʼþ£¬¶øÖ»ÊǶ¨ÒåÁËÔÙ¶ÁÈ¡DTD¹ý³ÌÖвúÉúµÄʼþ¡££¨²»ÖØÒª£©
n δ½âÎöʵÌåµÄÉùÃ÷£ºunparsedEntityDecl£¨£©Ö»Óе±Ò»¸öʵÌåÉùÃ÷×¢Ã÷XML½âÎöÆ÷²»ÄܽâÎöÒ»¸öÌض¨ÊµÌåʱ²Å»á±»Ê¹Óá£ÔÚÒýÓÃͼÏñ»òÆäËû¶þ½øÖÆÊý¾Ý£¬ÀýÈçýÌåÎļþʱ£¬Î´¾½âÎöµÄʵÌåÔÚXMLÎĵµÖеÄʹÓ÷dz£Æձ顣ÕâÖÖ·½·¨½ÓÊÕʵÌåµÄÃû×Ö¡¢¹«ÓñäÁ¿ºÍϵͳIDºÅÒÔ¼°ÊµÌåµÄ·ûºÅÃû×Ö£¨notation name£©
<document>
<myLogo>&CompanyLogo;</myLogo>
</document>
*******************************************
&
Ïà¹ØÎĵµ£º
ÎÒÃÇÖªµÀ£¬ÔÚJavaÖÐÉèÖñäÁ¿ÖµµÄ²Ù×÷£¬³ýÁËlongºÍdoubleÀàÐ͵ıäÁ¿ÍⶼÊÇÔ×Ó²Ù×÷£¬Ò²¾ÍÊÇ˵£¬¶ÔÓÚ±äÁ¿ÖµµÄ¼òµ¥¶Áд²Ù×÷ûÓбØÒª½øÐÐͬ²½¡£
ÕâÔÚJVM 1.2֮ǰ£¬JavaµÄÄÚ´æÄ£ÐÍʵÏÖ×ÜÊÇ´ÓÖ÷´æ¶ÁÈ¡±äÁ¿£¬ÊDz»ÐèÒª½øÐÐÌرðµÄ×¢ÒâµÄ¡£¶øËæ×ÅJVMµÄ³ÉÊìºÍÓÅ»¯£¬ÏÖÔÚÔÚ¶àÏ̻߳·¾³ÏÂvolatile¹Ø¼ü×ÖµÄʹÓñäµÃ·Ç³£ÖØÒª¡£
ÔÚµ±Ç°µÄ ......
תÔØÇë×¢Ã÷:À´×Ôhttp://blog.csdn.net/M_ChangGong/ ×÷Õß:ÕÅÑà¹ã
JavaʵÏÖMD5¼ÓÃÜÒÔ¼°½âÃÜÀ࣬¸½´ø²âÊÔÀ࣬¾ßÌå¼û´úÂë¡£
MD5¼ÓÃܽâÃÜÀà——MyMD5Util,´úÂëÈçÏ£º
package com.zyg.security.md5;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import ja ......
overrideÊÇ·½·¨µÄÖØд£¬Í¨³£·¢ÉúÔÚ×ÓÀàÓ븸ÀàÖ®ÖУ¬Ö¸µÄÊÇ×ÓÀàÖж¨ÒåÁËÒ»¸öÓ븸Àà·µ»ØÖµÀàÐÍ£¬²ÎÊýÀàÐÍÍêÈ«ÏàͬµÄ·½·¨
overloadÊÇ·½·¨µÄÖØÔØ£¬Í¨³£ÔÚͬһ¸öÀàÖУ¬¶¨ÒåÁËÒ»¶Ñ·½·¨ÃûÏàͬ£¬µ«·µ»ØÖµ¿ÉÄܲ»Í¬£¬²ÎÊýÒ²¿ÉÄܲ»Í¬µÄ·½·¨
override£¨ÖØд£©
1¡¢·½·¨Ãû¡¢²ÎÊý¡¢·µ»ØÖµÏàͬ¡£
2¡¢×ÓÀà·½·¨²»ÄÜËõС¸¸Àà·½·¨µÄ·ÃÎÊÈ¨Ï ......
Ãû´Ê
½âÊÍ
aaa
ÈÏÖ¤(authentication)£ºÑéÖ¤Óû§µÄÉí·ÝÓë¿ÉʹÓõÄÍøÂç·þÎñ£»ÊÚȨ(authorization)£ºÒÀ¾ÝÈÏÖ¤½á¹û¿ª·ÅÍøÂç·þÎñ¸øÓû§£»¼ÆÕÊ(accounting)£º¼Ç ¼Óû§¶Ô¸÷ÖÖÍøÂç·þÎñµÄÓÃÁ¿£¬²¢Ìṩ¸ø¼Æ·Ñϵͳ¡£
¼ò³Æaaaϵͳ¡£
awt
abstract window toolkit(³éÏó´°¿Ú¹¤¾ß°ü)£¬µÚÒ»´úµÄ java gui¹¤¾ß°ü£¬ÏÖÔÚ»ù±¾ÒѾ²» ......