ucar.unidata.io.http
Class HTTPRandomAccessFile2

java.lang.Object
  extended by ucar.unidata.io.RandomAccessFile
      extended by ucar.unidata.io.http.HTTPRandomAccessFile2
All Implemented Interfaces:
java.io.DataInput, java.io.DataOutput

Deprecated. use HTTPRandomAccessFile

public class HTTPRandomAccessFile2
extends RandomAccessFile

Gives access to files over HTTP, using java.net.HttpURLConnection.

Author:
John Caron, based on work by Donald Denbo

Field Summary
static int defaultHTTPBufferSize
          Deprecated.  
 
Fields inherited from class ucar.unidata.io.RandomAccessFile
BIG_ENDIAN, bigEndian, buffer, bufferStart, cached, dataEnd, dataSize, debugAccess, debugLeaks, defaultBufferSize, endOfFile, file, filePosition, LITTLE_ENDIAN, location, openFiles, readonly
 
Constructor Summary
HTTPRandomAccessFile2(java.net.URL url)
          Deprecated.  
HTTPRandomAccessFile2(java.net.URL url, int bufferSize)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated. Close the file, and release any associated system resources.
 java.io.FileDescriptor getFD()
          Deprecated. Returns the opaque file descriptor object associated with this file.
 long length()
          Deprecated. Get the length of the file.
protected  int read_(long pos, byte[] buff, int off, int len)
          Deprecated. read directly, without going through the buffer
 
Methods inherited from class ucar.unidata.io.RandomAccessFile
flush, getFilePointer, getLocation, getRandomAccessFile, isAtEndOfFile, isCached, order, read, read, read, readBoolean, readByte, readBytes, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readInt, readInt, readIntUnbuffered, readLine, readLong, readLong, readShort, readShort, readString, readUnsignedByte, readUnsignedShort, readUTF, seek, setCached, setDebugAccess, setDebugLeaks, setExtendMode, setMinLength, skipBytes, synch, toString, unread, write, write, write, writeBoolean, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeChar, writeChar, writeChars, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeShort, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultHTTPBufferSize

public static int defaultHTTPBufferSize
Deprecated. 
Constructor Detail

HTTPRandomAccessFile2

public HTTPRandomAccessFile2(java.net.URL url)
                      throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

HTTPRandomAccessFile2

public HTTPRandomAccessFile2(java.net.URL url,
                             int bufferSize)
                      throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException
Method Detail

read_

protected int read_(long pos,
                    byte[] buff,
                    int off,
                    int len)
             throws java.io.IOException
Deprecated. 
Description copied from class: RandomAccessFile
read directly, without going through the buffer

Overrides:
read_ in class RandomAccessFile
Parameters:
pos - _more_
buff - _more_
off - _more_
len - _more_
Returns:
_more_
Throws:
java.io.IOException - _more_

length

public long length()
            throws java.io.IOException
Deprecated. 
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()
Deprecated. 
Description copied from class: RandomAccessFile
Close the file, and release any associated system resources.

Overrides:
close in class RandomAccessFile

getFD

public java.io.FileDescriptor getFD()
Deprecated. 
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.