|
23 | 23 | import java.util.Objects; |
24 | 24 |
|
25 | 25 | /** |
26 | | - * Access modes and factory methods for {@link RandomAccessFile}. |
| 26 | + * Enumerates access modes for {@link RandomAccessFile} with factory methods. |
27 | 27 | * |
28 | 28 | * @see RandomAccessFile#RandomAccessFile(File, String) |
29 | 29 | * @see RandomAccessFile#RandomAccessFile(String, String) |
|
32 | 32 | public enum RandomAccessFileMode { |
33 | 33 |
|
34 | 34 | /** |
35 | | - * Mode {@code "r"} opens for reading only. |
| 35 | + * Defines mode {@code "r"} to open a {@link RandomAccessFile} for reading only. |
36 | 36 | * |
37 | 37 | * @see RandomAccessFile#RandomAccessFile(File, String) |
38 | 38 | * @see RandomAccessFile#RandomAccessFile(String, String) |
39 | 39 | */ |
40 | 40 | READ_ONLY("r"), |
41 | 41 |
|
42 | 42 | /** |
43 | | - * Mode {@code "rw"} opens for reading and writing. |
| 43 | + * Defines mode {@code "rw"} to open a {@link RandomAccessFile} for reading and writing. |
44 | 44 | * |
45 | 45 | * @see RandomAccessFile#RandomAccessFile(File, String) |
46 | 46 | * @see RandomAccessFile#RandomAccessFile(String, String) |
47 | 47 | */ |
48 | 48 | READ_WRITE("rw"), |
49 | 49 |
|
50 | 50 | /** |
51 | | - * Mode {@code "rws"} opens for reading and writing, as with {@code "rw"}, and also require that every update to the file's content or metadata be written |
52 | | - * synchronously to the underlying storage device. |
| 51 | + * Defines mode {@code "rws"} to open a {@link RandomAccessFile} for reading and writing, as with {@code "rw"}, and also require that every update to the |
| 52 | + * file's content or metadata be written synchronously to the underlying storage device. |
53 | 53 | * |
54 | 54 | * @see RandomAccessFile#RandomAccessFile(File, String) |
55 | 55 | * @see RandomAccessFile#RandomAccessFile(String, String) |
56 | 56 | */ |
57 | 57 | READ_WRITE_SYNC_ALL("rws"), |
58 | 58 |
|
59 | 59 | /** |
60 | | - * Mode {@code "rwd"} open for reading and writing, as with {@code "rw"}, and also require that every update to the file's content be written synchronously |
61 | | - * to the underlying storage device. |
| 60 | + * Defines mode {@code "rwd"} to open a {@link RandomAccessFile} for reading and writing, as with {@code "rw"}, and also require that every update to the |
| 61 | + * file's content be written synchronously to the underlying storage device. |
62 | 62 | * |
63 | 63 | * @see RandomAccessFile#RandomAccessFile(File, String) |
64 | 64 | * @see RandomAccessFile#RandomAccessFile(String, String) |
|
0 commit comments