001package Torello.Java.Additional;
002
003import java.util.*;
004
005import Torello.Java.LFEC;
006
007/**
008 * A silly class that serves as a reminder of all the web-formats that have been tried since the
009 * internet was invented.
010 * 
011 * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=MIME>
012 */
013@SuppressWarnings("unchecked")
014public class MIME
015{
016    private MIME() { }
017
018    private static final Vector<Object> dataFile1 = (Vector<Object>) LFEC.readObjectFromFile_JAR
019        (MIME.class, "data-files/data1.vdat", true, Vector.class);
020
021    private static final Vector<Object> dataFile2 = (Vector<Object>) LFEC.readObjectFromFile_JAR
022        (MIME.class, "data-files/data2.vdat", true, Vector.class);
023
024    /**
025     * This will hold all available <B>MIME Types</B>.  This Vector is {@code public}, and is an
026     * identical copy of the information contained in the documentation-page included with this
027     * Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
028     * parallel-{@code Vector's} defined in this class.
029     */
030    public static final Vector<String> types = (Vector<String>) dataFile1.elementAt(0);
031
032    /**
033     * This will hold all available fileExtensions that are associated with the <B>MIME Type</B>
034     * that is in the parallel "types" {@code Vector}.  This Vector is {@code public}, and is an
035     * identical copy of the information contained in the documentation-page included with this
036     * Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
037     * parallel-{@code Vector's} defined in this class.
038     */
039    public static final Vector<String> fileExtensions = (Vector<String>) dataFile1.elementAt(1);
040
041    /**
042     * This will hold all the name of the <B>MIME Types</B> that is linked with the
043     * <B>MIME Type</B> in the parallel "types" {@code Vector}.  This Vector is {@code public}, and
044     * is an identical copy of the information contained in the documentation-page included with
045     * this Java class.  This {@code Vector} is a parallel-{@code Vector} to the three other
046     * parallel-{@code Vector's} defined in this class.
047     */
048    public static final Vector<String> names = (Vector<String>) dataFile2.elementAt(0);
049
050    /**
051     * This will hold some description-URL's that contain further information about this particular
052     * <B>MIME Type</B>  This Vector is {@code public}, and is an identical copy of the information
053     * contained in the documentation-page included with this Java class.  This {@code Vector} is a
054     * parallel-{@code Vector} to the three other parallel-{@code Vector's} defined in this class.
055     */
056    public static final Vector<String> urls = (Vector<String>) dataFile2.elementAt(1);
057}