- java.lang.Object
-
- de.carne.util.prefs.UserFile
-
public final class UserFile extends java.lang.ObjectUtility class used to create user preferences files with user only access rights.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.channels.FileChannelopen(java.nio.file.Path file, @NonNull java.nio.file.OpenOption... extraOptions)Create or open a user preferences file.
-
-
-
Method Detail
-
open
public static java.nio.channels.FileChannel open(java.nio.file.Path file, @NonNull java.nio.file.OpenOption... extraOptions) throws java.io.IOExceptionCreate or open a user preferences file.- Parameters:
file- the file to openextraOptions- the extra OpenOption to use.- Returns:
- the opened FileChannel.
- Throws:
java.io.IOException- if an I/O error occurs.
-
-