ucar.netcdf
Class HTTPRandomAccessFile
java.lang.Object
ucar.netcdf.RandomAccessFile
ucar.netcdf.HTTPRandomAccessFile
- All Implemented Interfaces:
- java.io.DataInput, java.io.DataOutput
public class HTTPRandomAccessFile
- extends RandomAccessFile
HTTPRandomAccessFile.java.
Fields inherited from class ucar.netcdf.RandomAccessFile |
buffer, bufferStart, CREATE, dataEnd, dataSize, defaultBufferSize, endOfFile, file, filePosition, mode, READ, WRITE |
Method Summary |
void |
close()
override the rest of the RandomAccessFile public methods |
java.io.FileDescriptor |
getFD()
Returns the opaque file descriptor object associated with this file. |
long |
length()
Get the length of the file. |
protected int |
read_(long pos,
byte[] buff,
int off,
int len)
|
Methods inherited from class ucar.netcdf.RandomAccessFile |
benchmark, flush, getFilePointer, main, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, skipBytes, testBlocks, testBytes, toString, unread, write, write, write, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HTTPRandomAccessFile
public HTTPRandomAccessFile(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
HTTPRandomAccessFile
public HTTPRandomAccessFile(java.net.URL url,
int bufferSize)
throws java.io.IOException
- Throws:
java.io.IOException
read_
protected int read_(long pos,
byte[] buff,
int off,
int len)
throws java.io.IOException
- Overrides:
read_
in class RandomAccessFile
- Throws:
java.io.IOException
length
public long length()
throws java.io.IOException
- Description copied from class:
RandomAccessFile
- Get the length of the file. The data in the buffer (which may not
have been written the disk yet) is taken into account.
- Overrides:
length
in class RandomAccessFile
- Returns:
- the length of the file in bytes.
- Throws:
java.io.IOException
- if an I/O error occurrs.
close
public void close()
- override the rest of the RandomAccessFile public methods
- Overrides:
close
in class RandomAccessFile
getFD
public java.io.FileDescriptor getFD()
- Description copied from class:
RandomAccessFile
- Returns the opaque file descriptor object associated with this file.
- Overrides:
getFD
in class RandomAccessFile
- Returns:
- the file descriptor object associated with this file.