< prev index next >

src/java.base/share/classes/java/io/RandomAccessFile.java

Print this page

        

*** 134,145 **** * * <p>The <a id="mode">{@code mode}</a> argument specifies the access mode * in which the file is to be opened. The permitted values and their * meanings are: * ! * <table summary="Access mode permitted values and meanings"> * <tr><th style="text-align:left">Value</th><th style="text-align:left">Meaning</th></tr> * <tr><td style="vertical-align:top">{@code "r"}</td> * <td> Open for reading only. Invoking any of the {@code write} * methods of the resulting object will cause an * {@link java.io.IOException} to be thrown.</td></tr> * <tr><td style="vertical-align:top">{@code "rw"}</td> --- 134,149 ---- * * <p>The <a id="mode">{@code mode}</a> argument specifies the access mode * in which the file is to be opened. The permitted values and their * meanings are: * ! * <table class="striped"> ! * <caption style="display:none">Access mode permitted values and meanings</caption> ! * <thead> * <tr><th style="text-align:left">Value</th><th style="text-align:left">Meaning</th></tr> + * </thead> + * <tbody> * <tr><td style="vertical-align:top">{@code "r"}</td> * <td> Open for reading only. Invoking any of the {@code write} * methods of the resulting object will cause an * {@link java.io.IOException} to be thrown.</td></tr> * <tr><td style="vertical-align:top">{@code "rw"}</td>
*** 151,160 **** --- 155,165 ---- * written synchronously to the underlying storage device.</td></tr> * <tr><td style="vertical-align:top">{@code "rwd"}</td> * <td> Open for reading and writing, as with {@code "rw"}, and also * require that every update to the file's content be written * synchronously to the underlying storage device.</td></tr> + * </tbody> * </table> * * The {@code "rws"} and {@code "rwd"} modes work much like the {@link * java.nio.channels.FileChannel#force(boolean) force(boolean)} method of * the {@link java.nio.channels.FileChannel} class, passing arguments of
< prev index next >