java±à³Ì¹æ·¶
¶¨ÒåÕâ¸ö¹æ·¶µÄÄ¿µÄÊÇÈÃÏîÄ¿ÖÐËùÓеÄÎĵµ¶¼¿´ÆðÀ´ÏñÒ»¸öÈËдµÄ£¬Ôö¼Ó¿É¶ÁÐÔ£¬¼õÉÙÏîÄ¿×éÖÐÒòΪ»»È˶ø´øÀ´µÄËðʧ¡££¨ÕâЩ¹æ·¶²¢²»ÊÇÒ»¶¨Òª¾ø¶Ô×ñÊØ£¬µ«ÊÇÒ»¶¨ÒªÈóÌÐòÓÐÁ¼ºÃµÄ¿É¶ÁÐÔ£©
PackageµÄÃüÃû
PackageµÄÃû×ÖÓ¦¸Ã¶¼ÊÇÓÉÒ»¸öСдµ¥´Ê×é³É¡£
ClassµÄÃüÃû
ClassµÄÃû×Ö±ØÐëÓÉ´óд×Öĸ¿ªÍ·¶øÆäËû×Öĸ¶¼Ð¡Ð´µÄµ¥´Ê×é³É
Class±äÁ¿µÄÃüÃû
±äÁ¿µÄÃû×Ö±ØÐëÓÃÒ»¸öСд×Öĸ¿ªÍ·¡£ºóÃæµÄµ¥´ÊÓôóд×Öĸ¿ªÍ·¡£
StaticFinal±äÁ¿µÄÃüÃû
StaticFinal±äÁ¿µÄÃû×ÖÓ¦¸Ã¶¼´óд£¬²¢ÇÒÖ¸³öÍêÕûº¬Òå¡£
²ÎÊýµÄÃüÃû
²ÎÊýµÄÃû×Ö±ØÐëºÍ±äÁ¿µÄÃüÃû¹æ·¶Ò»Ö¡£
Êý×éµÄÃüÃû
Êý×éÓ¦¸Ã×ÜÊÇÓÃÏÂÃæµÄ·½Ê½À´ÃüÃû£º
byte[]buffer;
¶ø²»ÊÇ£º
bytebuffer[];
·½·¨µÄ²ÎÊý
ʹÓÃÓÐÒâÒåµÄ²ÎÊýÃüÃû£¬Èç¹û¿ÉÄܵĻ°£¬Ê¹ÓúÍÒª¸³ÖµµÄ×Ö¶ÎÒ»ÑùµÄÃû×Ö£º
SetCounter(intsize){
this.size=size;
}
JavaÎļþÑùʽ
ËùÓеÄJava(*.java)Îļþ¶¼±ØÐë×ñÊØÈçϵÄÑùʽ¹æÔò
°æȨÐÅÏ¢
°æȨÐÅÏ¢±ØÐëÔÚjavaÎļþµÄ¿ªÍ·£¬±ÈÈ磺
/**
*Copyright?2000ShanghaiXXXCo.Ltd.
*Allrightreserved.
*/
ÆäËû²»ÐèÒª³öÏÖÔÚjavadocµÄÐÅÏ¢Ò²¿ÉÒÔ°üº¬ÔÚÕâÀï¡£
Package/Imports
packageÐÐÒªÔÚimportÐÐ֮ǰ£¬importÖбê×¼µÄ°üÃûÒªÔÚ±¾µØµÄ°üÃû֮ǰ£¬¶øÇÒ°´ÕÕ×Öĸ˳ÐòÅÅÁС£Èç¹ûimportÐÐÖаüº¬ÁËͬһ¸ö°üÖеIJ»Í¬×ÓĿ¼£¬ÔòÓ¦¸ÃÓÃ*À´´¦Àí¡£
packagehotlava.net.stats;
importjava.io.*;
importjava.util.Observable;
importhotlava.util.Application;
ÕâÀïjava.io.*ʹÓÃÀ´´úÌæInputStreamandOutputStreamµÄ¡£
Class
½ÓÏÂÀ´µÄÊÇÀàµÄ×¢ÊÍ£¬Ò»°ãÊÇÓÃÀ´½âÊÍÀàµÄ¡£
/**
*Aclassrepresentingasetofpacketandbytecounters
*Itisobservabletoallowittobewatched,butonly
*reportschangeswhenthecurrentsetiscomplete
*/
½ÓÏÂÀ´ÊÇÀඨÒ壬°üº¬ÁËÔÚ²»Í¬µÄÐеÄextendsºÍimplements
publicclassCounterSet
extendsObservable
implementsCloneable
ClassFields
½ÓÏÂÀ´ÊÇÀàµÄ³ÉÔ±±äÁ¿£º
/**
*Packetcounters
*/
protectedint[]packets;
publicµÄ³ÉÔ±±äÁ¿±ØÐëÉú³ÉÎĵµ£¨JavaDoc£©¡£proceted¡¢privateºÍpackage¶¨ÒåµÄ³ÉÔ±±äÁ¿Èç¹ûÃû×Öº¬ÒåÃ÷È·µÄ»°£¬¿ÉÒÔûÓÐ×¢ÊÍ¡£
´æÈ¡·½·¨
½ÓÏÂÀ´ÊÇÀà±äÁ¿µÄ´æÈ¡µÄ·½·¨¡£ËüÖ»ÊǼòµ¥µÄÓÃÀ´½«ÀàµÄ±äÁ¿¸³Öµ»ñÈ¡ÖµµÄ»°£¬¿ÉÒÔ¼òµ¥µÄдÔÚÒ»ÐÐÉÏ¡£
/**
*Getthecounters
*@returnanarraycontainingthesta
Ïà¹ØÎĵµ£º
JavaÔÚJDK1.3Ö®ºó¼ÓÈëÁË¿ÉÐÖú¿ª·¢¶¯Ì¬´úÀí¹¦ÄܵÄAPI.ʹÓö¯Ì¬´úÀí£¬¿ÉÒÔʹһ¸ö´¦ÀíÕߣ¨´úÀí£©·þÎñÓÚ¸÷¸ö¶ÔÏó¡£´´½¨Ò»¸ö¶¯Ì¬´úÀíÀàÖ»ÐèʵÏÖjava.lang.reflect.InvocationHandler½Ó¿Ú¡£
ÏÂÃæ´´½¨Ò»¸ö´¦ÀíÈÕÖ¾µÄ¶¯Ì¬´úÀíÀàLogHandlerÈ¥´úÀíHelloSpeakerÀà
Ê×ÏÈ´´½¨HelloSpeakerµÄ½Ó¿Ú
pa ......
JAVA¿ÉÒÔ˵ÊÇ´ÓC++·¢Õ¹ÆðÀ´µÄÍêÈ«ÃæÏò¶ÔÏóµÄ¿ª·¢ÓïÑÔ,Á½ÕßµÄʵÖÊÇø±ðÊÇÀûÒæ·ÖÊô²»Í¬µÄ¹«Ë¾:SUNºÍ΢Èí.¶Ô´Ë΢Èí·¢²¼ÁË.NETÓëÖ®¿¹ºâ.
´Ó×îеÄVisual Studio .NET 2005¿´,.NETÖ÷ÒªÊÇ4ÖÖÓïÑÔ:VB.NET, C#, C++.NET, J#.
VB.NET¿ÉÒÔ˵ÊÇVB6µÄÉý¼¶,µ«ÎÒÈÏΪVB.NETºÍC#ÒѾÊÇÍêȫȫеÄÓïÑÔÁË,Á½ÕßµÄÄ¿µÄ¶¼ÊÇÒª´ò°ÜJAVAÕâ¸ö¾ºÕ ......
×¼±¸¹¤×÷
Ê×ÏÈ£¬²Ù×÷ϵͳÖа²×°ºÃSQL Server 2000/2005£¬Èç¹ûϵͳÖж¼×°ÓÐ2000ºÍ2005°æ£¬¼ÇµÃÍ£ÓÃÒ»¸ö£¬Ö»¿ªÒ»¸öÐÐÁË¡£
È»ºó£¬µ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.1
£¬Ò²¿ÉÒÔʹÓÃÕâ¸öµØÖ·Ö±½ÓÏÂÔØ
¡£
½âѹsqljdbc_1.1.1501.101_chs.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\ ......
¡¡¡¡MSSQLÖÐÌṩÁ˸ödatediffº¯ÊýÓÃÀ´¶ÔÁ½¸öʱ¼ä½øÐмõ·¨²Ù×÷£¬µ«ÔÚJavaÖÐȴûÓУ¬Èç¹ûÎÒÃÇÏëÖªµÀÁ½¸öÈÕÆÚ¼äÏà¸ôÁ˶àÉÙÌ죬»òÊÇÏà¸ôÁ˶àÉÙ¸öСʱÔòÒªÊÖ¹¤¼ÆËã¡£ÏÂÃæ´úÂëÄ£·ÂMSSQLµÄdatediffº¯ÊýÌṩÁËʹÓò»Í¬Ê±¼ä¼ä¸ôÀ´¼ÆËãÁ½¸öʱ¼äÏà²îµÄʱ¼ä¼ä¸ôµÄÊýÄ¿£¬±ÈÈçtimeIntervalΪdayÔò·µ»ØÏà²îµÄÌìÊý£¬ÎªmonthÔò·µ»ØÏà²îµÄÔÂÊý ......
1. Java ÃüÃûÔ¼¶¨
¡¡¡¡³ýÁËÒÔϼ¸¸öÌØÀýÖ®Í⣬ÃüÃûʱӦʼÖÕ²ÉÓÃÍêÕûµÄÓ¢ÎÄÃèÊö·û¡£´ËÍ⣬һ°ãÓ¦²ÉÓÃСд×Öĸ£¬µ«ÀàÃû¡¢½Ó¿ÚÃûÒÔ¼°Èκηdzõʼµ¥´ÊµÄµÚÒ»¸ö×ÖĸҪ´óд¡£
1.1 Ò»°ã¸ÅÄî
¡¡¡¡* ¾¡Á¿Ê¹ÓÃÍêÕûµÄÓ¢ÎÄÃèÊö·û
¡¡¡¡* ²ÉÓÃÊÊÓÃÓÚÏà¹ØÁìÓòµÄÊõÓï
¡¡¡¡* ²ÉÓôóСд»ìºÏʹÃû×ֿɶÁ
¡¡¡¡* ¾¡Á¿ÉÙÓÃËõд£¬µ«Èç¹û ......