Part-1 java.nio package
Topics:
- Is java.nio a new package added as part of jdk1.7 version?
- How can we get all the properties of a file using BasicFileAttribute and BasicFileAttributeView APIs?
- What does APIs like BasicFileAttribute and BasicFileAttributeView do and when do we use them?
- What methods does Files.walkFileTree API provides which we can use to recursively delete files/directories or complete folder structure?
- How can we recursively delete directories using Files.walkFileTree method?
- Can we delete directory on the fly using Files.deleteDirectory method?
- Can we delete file on the fly using Files.deleteFile method?
- Can we create directory on the fly using Files.createDirectory method?
- Can we create files on the fly using Files.createFile method?
- Why and when do we use static get method of Paths class?
- What does APIs like java.nio.Paths and and java.nio.Path interface does and has it completely replaced java.io package File API completely?
- Has java.nio package gave us new set of APIs which completely replaced java.io package APIs?
- For which very reasons, do we use java.nio package APIs in java projects instead of java.io package APIs?
- Which methods of BasicFileAttribute and BasicFileAttributeView APIs can we use to get file related properties as part of java projects and how can use them?
