/**
 * Info.java
 *
 * @author      Michael Privat
 * @version 1.0 - March 1998
 */
 
public class Info {
	// All the differents types
	public static final int DIR	= 0;
	public static final int UNKW	= 1;
	public static final int HTML	= 2;
	public static final int GIF	= 3;
	public static final int JPEG	= 4;
	public static final int TXT	= 5;
	public static final int PDF	= 6;
	public static final int MPEG	= 7;
	public static final int PS     	= 8;
	public static final int GTAR	= 9;
	public static final int TAR	= 10;
	public static final int ZIP	= 11;
	public static final int MPEG2	= 12;
	public static final int WAV	= 13;
	public static final int BMP	= 14;
	public static final int TIFF	= 15;
	public static final int DOC	= 16;
	public static final int CLASS	= 17;

	String name;
	int type;
	String title;
	String date;
	int len;

	/**
	 * Creates a new Info with a name and a type
	 */
	public Info(String n, int t, String ttl, String dt, int l) {
		name = new String(n);
		type = t;
		title = new String(ttl);
		date = new String(dt);
		len = l;
	}

	/**
	 * Returns the name of this info
	 */
	public String getName() {
		return name;
	}

	/**
	 * Returns the type of this info
	 * It can be any of the types defined below
	 */
	public int getType() {
		return type;
	}

	/**
	 * Get Title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Returns the date of this document
	 */
	public String getDate() {
		return date;
	}

	/**
	 * The len field of this object
	 */
	public int getLen() {
		return len;
	}
}

