Forums Register Login

toRealPath - Oracle tutorial errata

+Pie Number of slices to send: Send
Error in oracle tutorial for NIO2. toRealPath API cannot take boolean as param::



The toRealPath method returns the real path of an existing file. This method performs several operations in one:

If true is passed to this method and the file system supports symbolic links, this method resolves any symbolic links in the path.
If the Path is relative, it returns an absolute path.
If the Path contains any redundant elements, it returns a path with those elements removed.



http://docs.oracle.com/javase/tutorial/essential/io/pathOps.html
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#toRealPath(java.nio.file.LinkOption...)
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 806 times.
Similar Threads
Java code help
Correct usage of Swing thread?
non static variable
[Confusion] A Java Question
% operator
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:53:14.