Package eap.tar

Gives support for reading tar format files.

See:
          Description

Interface Summary
Archive Provides a general framework for reading a collection of directories and files.
 

Class Summary
LimitedInputStream Reads a subset of another stream.
TarFile Reads tar format file.
TarHeader Holds information about a single entry in a tar file.
Unpacker An applet for downloading and unpacking a tar file.
 

Exception Summary
TruncatedException Thrown when a data stream is not as long as expected.
 

Package eap.tar Description

Gives support for reading tar format files. Actually, this package gives a general framework for reading collections of directories and files through the Archive interface, but only tar format files are currently supported. This package includes the Unpacker applet, which is able to download a tar file, and decrypt and uncompress the contents.

Here is an example of the applet tag for Unpacker:

<applet code="eap.tar.Unpacker" archive="tar1.0.jar" width=700 height=75>
<param name="SOURCE" value="archive.tar">
Your browser is ignoring the applet tag.
</applet>
You should replace the value of "SOURCE" with the URL of your tar file. This URL can be relative to the current HTML page, and it can refer to a CGI script.

For encrypted data, the applet can use the "PASSWORD" or "DATASET" parameters in order to specify the encryption key. These are described in detail in the documentation for the eap.crypto package. Briefly, you can use "PASSWORD" to give the password explicitly. This can be useful if the password is stored in a cookie. The DATASET parameter gives a unique keyword which can be used to look up a password in the applet persistence memory store. This means that the applet will prompt for a password the first time it encounters an encrypted file, but will then use the same password for all subsequent files. The browser remembers the password from one HTML page to the next, but forgets it when the browser exits.

Note that unlike the FITS browser, the eap.crypto package is included in this jar file.