当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 下面是一个win下的例子,编译成功之后,运行java Disk
 

 

    摘要: 在开始使用jfreechart之前我们有必要先大概了解一下jfreechart本身的结构以及它所带一些例子程序,这样有助于我们下一步自行开发。下载jfreechart包后已经带有非常丰富的例子,因为jfreechart这个项目本身的使用文档非常少,因此学习它最好的办法就是学习它所带的例子源码。在包org.jfree.chart.demo中有几十个文件用于展示jfreechart所能支持的所有图表......
 ·jsp环境准备    »显示摘要«
    摘要: jsp环境准备 os: windows xp professional+sp1db: mysql 4.1.4db manager: mysql control center 0.94 betajsp容器:tomcat 5.0.28mysql jdbc driver: mysql-connector-java-3.0.15-ga-bin.jardevelop tools: eclipse 3.......


使用java查看磁盘空间大小

下面是一个win下的例子,编译成功之后,运行java diskspace yourdir(比如c:\)

import java.io.inputstreamreader; 【程序编程相关:RCP II:扩展通用工作台(2-1)

import java.io.bufferedreader; 【推荐阅读:关于JSF和Struts的讨论1

* determine free disk space for a given directory by 【扩展信息:Two Servlet Filters

/**

* parsing the output of the dir command.

* this class is inspired by the code at

* works only under windows under certain circumstances.

* yes, its that shaky.

* requires java 1.4 or higher.

* @[email protected]

*marco schmidt

*/

public class diskspace

{

 private diskspace()

 {

  // prevent instantiation of this class

 }

/**

* return available free disk space for a directory.

* @[email protected]

dirname name of the directory

* @[email protected]

free disk space in bytes or -1 if unknown

*/


...   下一页
    摘要: 《core java2 volume i: fundamentals》(原书第5版)机械工业出版社 以前看过的关于java的东西都很零碎,感觉有必要重新学习一下java的一些基础知识,特记。 第1章 java 简介 1、我们认为java的种种优势在它应用于新型设备或新应用领域中才能体现,而不是用它来重写那些已存在的应用程序。///所谓各领风骚十来年,大致就是这个意思;同时,泛泛地比较语言之......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE