posted @ 2016-10-18 16:41 _eve 阅读(294) 评论(0) 推荐(0) 编辑
摘要:
public static String [] getFileName(String path) { File file = new File(path); String [] fileName = file.list(); return fileName; } public static void getAllFi... 阅读全文
摘要:
public boolean deleteFile(String fileName) { File file = new File("D:/NovaPluto/xml/"+fileName+".xml"); // 如果文件路径所对应的文件存在,并且是一个文件,则直接删除 if (file.exists() && file.isFi... 阅读全文
posted @ 2016-10-18 16:40 _eve 阅读(155) 评论(0) 推荐(0) 编辑
摘要:
function myBrowser(){ var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return "Opera" }; //判断是否Opera浏览器 ... 阅读全文
posted @ 2016-10-18 16:36 _eve 阅读(148) 评论(0) 推荐(0) 编辑
摘要:
public static void main(String[] args) throws DocumentException { InputStream resourceAsStream = MyDOM4J.class.getClassLoader().getResourceAsStream("test1.xml"); SAXReader saxReader =... 阅读全文
posted @ 2016-10-18 16:30 _eve 阅读(223) 评论(0) 推荐(0) 编辑
摘要:
function setImagePreview(avalue) { var docObj = document.getElementById("doc"); var imgObjPreview = document.getElementById("preview"); if(docObj.files &&docObj.files[0]){ /*//火狐... 阅读全文
posted @ 2016-10-18 16:27 _eve 阅读(296) 评论(0) 推荐(0) 编辑
摘要:
package com.yunfengtech.solution.business; import java.awt.Color; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileInputStream; import java.i... 阅读全文
posted @ 2016-10-18 16:24 _eve 阅读(2515) 评论(0) 推荐(0) 编辑
摘要:
package com.yunfengtech.solution.business; import java.io.*; public class copy { public static void main(String[] args) { try{ FileInputStream input=new FileInputStream("D:/1... 阅读全文
posted @ 2016-10-18 16:21 _eve 阅读(161) 评论(0) 推荐(0) 编辑