<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 97,  comments - 93,  trackbacks - 0
    出于java的安全限制,System.getProperty("line.seperator")是不能夠直接取得的。可以這樣做:
    String lineSeparator = (String) java.security.AccessController.doPrivileged(
                   
    new sun.security.action.GetPropertyAction("line.separator"));
    具體參考java.io.BufferedWriter的源代碼就可以找到上面這行代碼。 DriverManager里也有
     1     private static void loadInitialDrivers() {
     2         String drivers;
     3 
     4         try {
     5             drivers = (String) java.security.AccessController
     6                     .doPrivileged(new sun.security.action.GetPropertyAction(
     7                             "jdbc.drivers"));
     8         } catch (Exception ex) {
     9             drivers = null;
    10         }
    11         println("DriverManager.initialize: jdbc.drivers = " + drivers);
    12         if (drivers == null) {
    13             return;
    14         }
    15         while (drivers.length() != 0) {
    16             int x = drivers.indexOf(':');
    17             String driver;
    18             if (x < 0) {
    19                 driver = drivers;
    20                 drivers = "";
    21             } else {
    22                 driver = drivers.substring(0, x);
    23                 drivers = drivers.substring(x + 1);
    24             }
    25             if (driver.length() == 0) {
    26                 continue;
    27             }
    28             try {
    29                 println("DriverManager.Initialize: loading " + driver);
    30                 Class.forName(driver, true, ClassLoader.getSystemClassLoader());
    31             } catch (Exception ex) {
    32                 println("DriverManager.Initialize: load failed: " + ex);
    33             }
    34         }
    35     }
    sun.security.action.GetPropertyAction() hasn't been publiced.actually and exactly,it's not be doced,which reflects that sun doesn't surport us to use these class or method which is lower class,usually, we use the classes api tells us is proier and maybe has called these undoc class  but usually for us ,it's not necessary.so in the program of us or even others ,we could and i think it's really better for us to neglect  them which u can find out in the jar file of rt.jar.

    posted on 2007-04-11 16:35 wqwqwqwqwq 閱讀(564) 評論(0)  編輯  收藏 所屬分類: Simple Java
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術網站

    java技術相關

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網網絡電話,中國最優秀的網絡電話
    主站蜘蛛池模板: 亚洲剧情在线观看| 亚洲男人天堂2017| 亚洲AV无码AV日韩AV网站| 91免费人成网站在线观看18| 亚洲国产精品成人久久| 免费国产成人α片| 亚洲精品无码不卡| 啦啦啦完整版免费视频在线观看| 亚洲性猛交xx乱| 成全视频免费高清| 亚洲精品国产suv一区88| 四虎在线播放免费永久视频| 欧亚一级毛片免费看| 国产日产亚洲系列| 国产精品视频白浆免费视频| 亚洲国色天香视频| 毛片A级毛片免费播放| 国产亚洲午夜精品| 亚洲午夜久久久久妓女影院| 无码免费一区二区三区免费播放| 亚洲综合免费视频| 免费无遮挡无码视频网站| 国产亚洲午夜精品| 亚洲av无码成h人动漫无遮挡| 2021国内精品久久久久精免费| 中国china体内裑精亚洲日本| 亚洲av午夜成人片精品电影| 国产视频精品免费视频| 亚洲精品线在线观看| 毛片免费在线播放| 久久av免费天堂小草播放| 久久精品国产亚洲av麻豆小说 | 亚洲片国产一区一级在线观看 | 中文日韩亚洲欧美制服| 亚洲精品网站在线观看不卡无广告| 成人免费一区二区三区| 亚洲人成高清在线播放| 亚洲国产婷婷香蕉久久久久久| 亚洲一级毛片免费看| 四虎成人精品国产永久免费无码 | 亚洲AV无码资源在线观看|