1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package Torello.Java.Additional;

import java.util.*;

import Torello.Java.LFEC;

/**
 * A silly class that serves as a reminder of all the web-formats that have been tried since the
 * internet was invented.
 * 
 * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=MIME>
 */
@SuppressWarnings("unchecked")
public class MIME
{
    private MIME() { }

    private static final Vector<Object> dataFile1 = (Vector<Object>) LFEC.readObjectFromFile_JAR
        (MIME.class, "data-files/data1.vdat", true, Vector.class);

    private static final Vector<Object> dataFile2 = (Vector<Object>) LFEC.readObjectFromFile_JAR
        (MIME.class, "data-files/data2.vdat", true, Vector.class);

    /**
     * This will hold all available <B>MIME Types</B>.  This Vector is {@code public}, and is an
     * identical copy of the information contained in the documentation-page included with this
     * Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
     * parallel-{@code Vector's} defined in this class.
     */
    public static final Vector<String> types = (Vector<String>) dataFile1.elementAt(0);

    /**
     * This will hold all available fileExtensions that are associated with the <B>MIME Type</B>
     * that is in the parallel "types" {@code Vector}.  This Vector is {@code public}, and is an
     * identical copy of the information contained in the documentation-page included with this
     * Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
     * parallel-{@code Vector's} defined in this class.
     */
    public static final Vector<String> fileExtensions = (Vector<String>) dataFile1.elementAt(1);

    /**
     * This will hold all the name of the <B>MIME Types</B> that is linked with the
     * <B>MIME Type</B> in the parallel "types" {@code Vector}.  This Vector is {@code public}, and
     * is an identical copy of the information contained in the documentation-page included with
     * this Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
     * parallel-{@code Vector's} defined in this class.
     */
    public static final Vector<String> names = (Vector<String>) dataFile2.elementAt(0);

    /**
     * This will hold some description-URL's that contain further information about this particular
     * <B>MIME Type</B>  This Vector is {@code public}, and is an identical copy of the information
     * contained in the documentation-page included with this Java class.  This {@code Vector} is a
     * parallel-{@code Vector} to the three other parallel-{@code Vector's} defined in this class.
     */
    public static final Vector<String> urls = (Vector<String>) dataFile2.elementAt(1);
}