java.nio.file Questions

3

Solved

Can anyone tell me what I've done wrong with the following code. I receive no errors - it just goes straight to the catch. import java.io.IOException; import java.nio.file.Files; import java.nio.f...
Alfaro asked 12/4, 2012 at 15:38

1

Solved

since a Path class does not have public constructor ,so path object are created using get factory method in Paths object. e.g Path p2 = Paths.get("/home/admin","Migrations","/blog/tables/6-rati...
Elkin asked 5/8, 2014 at 18:9

1

[note: self answered question] I have opened a FileSystem to a zip file using java.nio. I have gotten a Path from that filesystem: final Path zipPath = zipfs.getPath("path/into/zip"); Now I hav...
Mroz asked 24/3, 2014 at 14:15

2

Solved

I wish to change the timestamp metadata on files in Java using the java.nio.Files class. I would like to change all 3 Linux/ext4 timestamps (last modified, access, and changed). I am able to chan...
Nan asked 21/4, 2013 at 1:12

2

Solved

I have been trying to use the new globbing feature in JDK7, starting from the documentation and examples I can get globs such as "glob:*.dat" to work with the Files.walkFileTree(startingDir, fin...
Woodnote asked 5/2, 2012 at 10:31

1

Solved

I currently have the problem that I encounter an exception I never saw before and that's why I don't know how to handle it. I want to create a file according to given parameters, but it won't wor...
Imf asked 7/3, 2012 at 10:22

© 2022 - 2024 — McMap. All rights reserved.