`
annewman
  • 浏览: 30074 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
net use \\ip\ipc$ " " /user:" " 建立IPC空链接 net use \\ip\ipc$ "密码" /user:"用户名" 建立IPC非空链接 net use h: \\ip\c$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H: net use h: \\ip\c$ 登陆后映射对方C:到本地为H: net use \\ip\ipc$ /del 删除IPC链接 net use h: /del 删除映射对方到本地的为H:的映射 ne ...

文件常用操作

    博客分类:
  • File
import java.io.*; public class FileOperate { public FileOperate() { } /** * 新建目录 * * @param folderPath * String 如 c:/fqf */ public static void newFolder(String folderPath) { try { java.io.File myFilePath = new java.io.File(folderPath); if (!myFilePat ...
import info.monitorenter.cpdetector.io.CodepageDetectorProxy; import info.monitorenter.cpdetector.io.JChardetFacade; import java.io.File; import java.nio.charset.Charset; public class CharacterEnding { public static String getFileCharacterEnding(String filePath) { File file = new File( ...

JAVA 写XML File

    博客分类:
  • File
本人不善言谈,直接贴出代码,希望给有需要的朋友一些帮助。 import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.t ...
使用java jdom读取xml文件 public void readXml(){ SAXBuilder builder=new SAXBuilder(); try { Document doc = builder.build("e:\\wind.xml"); Element root=doc.getRootElement(); List<Element> listActors=root.getChildren("Actress" ...
使用java jdom 写xml文件 public void writeXml(){ Document doc=new Document(); Element root=new Element("Actors"); doc.setRootElement(root); Element employee=new Element("Actress"); employee.addContent(new Element("id").setText(&q ...
Global site tag (gtag.js) - Google Analytics