会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
springup
博客园
首页
新随笔
联系
订阅
管理
2016年1月22日
@Index用法——javax.persistence.Index
摘要: package com.springup.utiku.model;import java.io.Serializable;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.pers...
阅读全文
posted @ 2016-01-22 00:09 springup
阅读(3078)
评论(0)
推荐(0)
2016年1月7日
JQM 日期插件【转载】
摘要: JQM 日期插件 mobiscroll Demo
阅读全文
posted @ 2016-01-07 16:14 springup
阅读(195)
评论(0)
推荐(0)
2016年1月6日
2.3.2 遍历目录树
摘要: Java 7支持整个目录树的遍历;Demo:import java.io.IOException;import java.nio.file.FileVisitResult;import java.nio.file.Files;import java.nio.file.Path;import java...
阅读全文
posted @ 2016-01-06 16:22 springup
阅读(423)
评论(0)
推荐(1)
2.3.1 在项目中查找文件
摘要: Demo:import java.io.IOException;import java.nio.file.DirectoryStream;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;/...
阅读全文
posted @ 2016-01-06 15:29 springup
阅读(230)
评论(0)
推荐(0)
2.3 处理目录和目录树
摘要: 目录是带有特别属性的Path;Java 7新加入的 java.nio.file.DirectoryStream接口和它的实现类提供了很多功能:循环遍历查找文件glob子项匹配MIME内容检测用walkFileTree方法实现递归移动、复制和删除操作;
阅读全文
posted @ 2016-01-06 14:33 springup
阅读(231)
评论(0)
推荐(0)
2.2.5 NIO.2 Path 和 Java 已有的 File 类
摘要: NIO与IO交互toPath()File -- PathtoFile()Path -- FileDemo:import java.io.File;import java.nio.file.Path;import java.nio.file.Paths;public class PathAndFile...
阅读全文
posted @ 2016-01-06 13:53 springup
阅读(227)
评论(0)
推荐(0)
2.2.4 转换 Path
摘要: 在NIO.2里可以很容易地合并Path,在两个Path中再创建Path或对Path进行比较;Demo:import java.nio.file.Path;import java.nio.file.Paths;public class PathConvert { public stati...
阅读全文
posted @ 2016-01-06 13:41 springup
阅读(231)
评论(0)
推荐(0)
2.2.3 移除冗余项
摘要: (一个点).表示当前目录;(两个点)..表示父目录;冗余情况1:log.txt与./log.txt等价,即./log.txt中的./就是一个冗余项;冗余情况2:符号链接(快捷方式(shortcut)是一种功能上类似符号链接的文件对象,但与符号链接有本质的不同。【符号链接_百度百科】);移除冗余项的方...
阅读全文
posted @ 2016-01-06 12:39 springup
阅读(461)
评论(0)
推荐(0)
2.2.2 从 Path 中获取信息
摘要: Demo:import java.nio.file.Path;import java.nio.file.Paths;public class PathInfoTest { public static void main(String[] args) { /...
阅读全文
posted @ 2016-01-06 10:20 springup
阅读(239)
评论(0)
推荐(0)
2.2.1 创建一个 Path
摘要: Demo:import java.nio.file.Path;import java.nio.file.Paths;/** * @author jinxing * @系统 MAC OS X * @用例1 [使用]绝对路径 * @用例2 [使用]相对路径 * @用例3 相对路径[转换成]绝对路径 * ...
阅读全文
posted @ 2016-01-06 09:43 springup
阅读(339)
评论(0)
推荐(0)
下一页
公告