Closeable
, DataInput
, DataOutput
, AutoCloseable
Constructors
Creates a random access file stream to read from, and optionally to write to, the file specified by the
File
argument.
Creates a random access file stream to read from, and optionally to write to, a file with the specified pathname.
void
Closes this random access file stream and releases any system resources associated with the stream.
Returns the unique
FileChannel
object associated with this file.
Returns the opaque file descriptor object associated with this stream.
long
Returns the current offset in this file.
long
Returns the length of this file.
int
Reads a byte of data from this file.
int
Reads up to b.length
bytes of data from this file into an array of bytes.
int
read(byte[] b, int off, int len)
Reads up to len
bytes of data from this file into an array of bytes.
final boolean
Reads a boolean
from this file.
final byte
Reads a signed eight-bit value from this file.
final char
Reads a character from this file.
final double
Reads a double
from this file.
final float
Reads a float
from this file.
final void
Reads b.length
bytes from this file into the byte array, starting at the current file pointer.
final void
Reads exactly len
bytes from this file into the byte array, starting at the current file pointer.
final int
Reads a signed 32-bit integer from this file.
Reads the next line of text from this file.
final long
Reads a signed 64-bit integer from this file.
final short
Reads a signed 16-bit number from this file.
final int
Reads an unsigned eight-bit number from this file.
final int
Reads an unsigned 16-bit number from this file.
Reads in a string from this file.
void
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
void
Sets the length of this file.
int
Attempts to skip over n
bytes of input discarding the skipped bytes.
void
Writes b.length
bytes from the specified byte array to this file, starting at the current file pointer.
void
write(byte[] b, int off, int len)
Writes len
bytes from the specified byte array starting at offset off
to this file.
void
Writes the specified byte to this file.
final void
Writes a boolean
to the file as a one-byte value.
final void
Writes a byte
to the file as a one-byte value.
final void
Writes the string to the file as a sequence of bytes.
final void
Writes a char
to the file as a two-byte value, high byte first.
final void
Writes a string to the file as a sequence of characters.
final void
Converts the double argument to a long
using the doubleToLongBits
method in class Double
, and then writes that long
value to the file as an eight-byte quantity, high byte first.
final void
Converts the float argument to an int
using the floatToIntBits
method in class Float
, and then writes that int
value to the file as a four-byte quantity, high byte first.
final void
Writes an int
to the file as four bytes, high byte first.
final void
Writes a long
to the file as eight bytes, high byte first.
final void
Writes a short
to the file as two bytes, high byte first.
final void
Writes a string to the file using
modified UTF-8encoding in a machine-independent manner.
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4