public static void main(String[] args) throws IOException {
		Path xml = Paths.get("D:","jbos02.xml");
		System.out.println(xml.toAbsolutePath());
//		System.out.println(bin.toRealPath(LinkOption.NOFOLLOW_LINKS));
		
		FileSystem fs = FileSystems.getDefault();
		Set<String> viewSet = fs.supportedFileAttributeViews();
		for(String each:viewSet){
			System.out.println(each);
		}
		
		Iterator<FileStore> iterator = fs.getFileStores().iterator();
		while(iterator.hasNext()){
			System.out.println(iterator.next().supportsFileAttributeView("basic"));
		}
		
		BasicFileAttributes attr = null; 
		Path path = Paths.get("C:\\Users\\YinKewei\\Desktop","maven_settings.txt"); 
		attr = Files.readAttributes(path, BasicFileAttributes.class); 
		System.out.println("File size: " + attr.size()); 
		System.out.println("File creation time: " + attr.creationTime()); 
		System.out.println("File was last accessed at: " + attr.lastAccessTime()); 
		System.out.println("File was last modified at: " + attr.lastModifiedTime()); 
		System.out.println("Is directory? " + attr.isDirectory()); 
		System.out.println("Is regular file? " + attr.isRegularFile()); 
		System.out.println("Is symbolic link? " + attr.isSymbolicLink()); 
		System.out.println("Is other? " + attr.isOther());
		
		Path pom = Paths.get("D:\\Eclipse_4.3.1_WorkSpaces\\jenkins\\jenkins","pom.xml");
		List<String> pomContext = Files.readAllLines(pom, Charset.forName("utf-8"));
		System.out.println(pomContext);
		Files.write(Paths.get("d:","1.xml"), pomContext, Charset.forName("utf-8"));
		
		BufferedReader br = Files.newBufferedReader(pom,Charset.forName("utf-8"));
		String readStr;
		while((readStr = br.readLine())!=null){
			System.out.println(readStr);
		}
		br.close();
	}