public abstract class RemoteRandomAccessFile extends RandomAccessFile implements ReadableRemoteFile
BIG_ENDIAN, LITTLE_ENDIAN| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the file, and release any associated system resources.
|
long |
readToByteChannel(java.nio.channels.WritableByteChannel dest,
long offset,
long nbytes)
Read
nbytes bytes, at the specified file offset, send to a WritableByteChannel. |
acquire, acquire, eject, enableDefaultGlobalFileCache, flush, getBufferSize, getFilePointer, getGlobalFileCache, getLastModified, getLocation, getRandomAccessFile, isAtEndOfFile, isDirectory, length, order, order, read, read, read, readBoolean, readByte, readBytes, readBytes, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readInt, readInt, readIntUnbuffered, readLine, readLine, readLong, readLong, readShort, readShort, readString, readString, readStringMax, readStringMax, readUnsignedByte, readUnsignedShort, readUTF, searchForward, seek, setBufferSize, setExtendMode, setGlobalFileCache, setMinLength, shutdown, skipBytes, skipBytes, toString, unread, write, write, write, writeBoolean, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeChar, writeChar, writeChar, writeChar, writeChar, writeChar, writeChars, writeChars, writeChars, writeDouble, writeDouble, writeDouble, writeDouble, writeDouble, writeDouble, writeFloat, writeFloat, writeFloat, writeFloat, writeFloat, writeFloat, writeInt, writeInt, writeInt, writeInt, writeInt, writeInt, writeLong, writeLong, writeLong, writeLong, writeLong, writeLong, writeShort, writeShort, writeShort, writeShort, writeShort, writeShort, writeUTFequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseRemote, readRemotepublic void close()
throws java.io.IOException
RandomAccessFileclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface ucar.nc2.util.cache.FileCacheableclose in class RandomAccessFilejava.io.IOException - if an I/O error occurrs.public long readToByteChannel(java.nio.channels.WritableByteChannel dest,
long offset,
long nbytes)
throws java.io.IOException
RandomAccessFilenbytes bytes, at the specified file offset, send to a WritableByteChannel.
This will block until all bytes are read.
This uses the underlying file channel directly, bypassing all user buffers.readToByteChannel in class RandomAccessFiledest - write to this WritableByteChannel.offset - the offset in the file where copying will start.nbytes - the number of bytes to read.java.io.IOException - if an I/O error occurs.