<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 閱讀(565) 評論(0)  編輯  收藏 所屬分類: Simple Java
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術(shù)網(wǎng)站

    java技術(shù)相關(guān)

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網(wǎng)網(wǎng)絡(luò)電話,中國最優(yōu)秀的網(wǎng)絡(luò)電話
    主站蜘蛛池模板: 久久久久亚洲AV无码去区首| 你懂得的在线观看免费视频| 亚洲成A人片在线观看中文| 两个人看的www高清免费视频| 无码乱人伦一区二区亚洲| 毛片A级毛片免费播放| A毛片毛片看免费| 亚洲综合久久精品无码色欲| 久久久久亚洲AV成人网人人网站| 亚洲黄色免费网址| 无码毛片一区二区三区视频免费播放| 精品亚洲aⅴ在线观看| 免费在线观看日韩| 精品国产免费人成电影在线观看| 国产成人精品日本亚洲语音| 西西人体44rt高清亚洲| 国产成人青青热久免费精品| 久久免费精彩视频| 青青青视频免费观看| 亚洲一区二区三区久久| 亚洲级αV无码毛片久久精品| 免费毛片在线播放| 51精品视频免费国产专区| 一级毛片无遮挡免费全部| 国产AV旡码专区亚洲AV苍井空| 情人伊人久久综合亚洲| 国产免费牲交视频| 毛片a级毛片免费观看品善网| 免费A级毛片无码专区| WWW国产成人免费观看视频| 亚洲国产精品无码久久| 亚洲精品白色在线发布| 国产亚洲综合一区柠檬导航| 免费又黄又爽的视频| 成年人视频在线观看免费| 97视频免费观看2区| 国产偷伦视频免费观看| 成人午夜免费视频| 在线亚洲v日韩v| 成人婷婷网色偷偷亚洲男人的天堂| 亚洲区精品久久一区二区三区|