摘要:
package tuxing; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.Panel; import java.awt.event.ActionEvent; imp 阅读全文
摘要:
package serverAndClient; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRea 阅读全文
摘要:
package serverAndClient; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWrite 阅读全文
摘要:
package serverAndClient; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; impo 阅读全文
摘要:
public class GetUrlInfo { public static void printfInfo(URL url)throws Exception { //基本信息 System.out.println("文件 "+url.getFile()); System.out.println( 阅读全文
摘要:
public class GetIpAddress { //获取本机IP地址 public static String getLocalIp()throws UnknownHostException { InetAddress addr=InetAddress.getLocalHost(); ret 阅读全文
摘要:
class MyTask extends TimerTask { private String name; public MyTask(String name) { this.name = name; } public void run() { System.out.println(this.name + "... 阅读全文
摘要:
//产品 class Product { private String productName; public Product(String name) { this.productName = name; } public String getProductName() { return this 阅读全文
摘要:
class ThreadB extends Thread { private String ID="0"; private int time=0; public ThreadB(String ID,int time) { this.ID=ID; this.time=time; } public vo 阅读全文
摘要:
class Printer extends Thread { Vector task = new Vector(); boolean runing = false; public void start() { runing = true; super.start(); } public void r 阅读全文
摘要:
public class CompressUtil { public static String getName(String path)// 为了获得不在根目录的文件路径 如C:\temp\newTemp 其不带根目录的路径是 temp\newTemp { int i = path.indexOf 阅读全文
摘要:
public class FileDivisionUniyer { /** * 文件分割合并器 将大文件分割成若干个小文件,将多个小文件合并成一个大文件 */ public static final String SUFFIX = ".pp"; public static String[] divd 阅读全文
摘要:
public class ReadFormFile { // 以二进制方式读取文件 常用于读取二进制文件 图片 声音 视频等 public static void readByBytes(String fileName) { File file = new File(fileName); Input 阅读全文
摘要:
public class CopyFile { // 复制单个文件,如果目标存在则不覆盖 // srcFileName 源文件名 // destFileName 目标文件名 public static boolean copyFile(String srcFileName, String destF 阅读全文
摘要:
public class DeletFile { // 删除单个文件或者是文件夹 public static boolean delete(String fileName) { File file=new File(fileName); if(!file.exists()) { System.out 阅读全文
摘要:
public class CreatFileUtil { //创建文件 public static boolean createFile(String fileName) { File file=new File(fileName); if(file.exists()) { System.out.p 阅读全文
摘要:
public class ListFile { static class MyFileNameFilter implements FilenameFilter//过滤文件用 { private String suffix = ".txt"; public MyFileNameFilter(Strin 阅读全文
摘要:
public class GetFileInfos { public static void put(String s) { System.out.println(s); } public static void main(String []args) { File file=new File("C 阅读全文
摘要:
public class RegexExpress { public static boolean find(String str, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern 阅读全文
摘要:
此验证是不可逆转的 public class Passwor { private final static String[] hexDigital = { "0", "1", "2", "3", "4", "5", "6", "7", "8", &q 阅读全文