/** Instantiate an <tt>HtmlModule</tt> object. */
  public HtmlModule() {
    super(
        NAME,
        RELEASE,
        DATE,
        FORMAT,
        COVERAGE,
        MIMETYPE,
        WELLFORMED,
        VALIDITY,
        REPINFO,
        NOTE,
        RIGHTS,
        false);

    Agent agent = new Agent("Harvard University Library", AgentType.EDUCATIONAL);
    agent.setAddress(
        "Office for Information Systems, " + "90 Mt. Auburn St., " + "Cambridge, MA 02138");
    agent.setTelephone("+1 (617) 495-3724");
    agent.setEmail("*****@*****.**");
    _vendor = agent;

    /* HTML 3.2 spec */
    Document doc = new Document("HTML 3.2 Reference Specification", DocumentType.REPORT);

    Agent w3cAgent = new Agent("Word Wide Web Consortium", AgentType.NONPROFIT);
    w3cAgent.setAddress(
        "Massachusetts Institute of Technology, "
            + "Computer Science and Artificial Intelligence Laboratory, "
            + "32 Vassar Street, Room 32-G515, "
            + "Cambridge, MA 02139");
    w3cAgent.setTelephone("(617) 253-2613");
    w3cAgent.setFax("(617) 258-5999");
    w3cAgent.setWeb("http://www.w3.org/");
    doc.setPublisher(w3cAgent);

    Agent dRaggett = new Agent("Dave Raggett", AgentType.OTHER);
    doc.setAuthor(dRaggett);

    doc.setDate("1997-01-14");
    doc.setIdentifier(
        new Identifier("http://www.w3c.org/TR/REC-html32-19970114", IdentifierType.URL));
    _specification.add(doc);

    /* HTML 4.0 spec */
    doc = new Document("HTML 4.0 Specification", DocumentType.REPORT);
    doc.setPublisher(w3cAgent);
    doc.setAuthor(dRaggett);
    Agent leHors = new Agent("Arnaud Le Hors", AgentType.OTHER);
    doc.setAuthor(leHors);
    Agent jacobs = new Agent("Ian Jacobs", AgentType.OTHER);
    doc.setAuthor(jacobs);
    doc.setDate("1998-04-24");
    doc.setIdentifier(
        new Identifier("http://www.w3.org/TR/1998/REC-html40-19980424/", IdentifierType.URL));
    _specification.add(doc);

    /* HTML 4.01 spec */
    doc = new Document("HTML 4.01 Specification", DocumentType.REPORT);
    doc.setPublisher(w3cAgent);
    doc.setAuthor(dRaggett);
    doc.setAuthor(leHors);
    doc.setAuthor(jacobs);
    doc.setDate("1999-12-24");
    doc.setIdentifier(
        new Identifier("http://www.w3.org/TR/1999/REC-html401-19991224/", IdentifierType.URL));
    _specification.add(doc);

    /* XHTML 1.0 spec */
    doc =
        new Document(
            "XHTML(TM) 1.0 The Extensible HyperText Markup Language " + "(Second Edition)",
            DocumentType.REPORT);
    doc.setPublisher(w3cAgent);
    doc.setDate("01-08-2002");
    doc.setIdentifier(new Identifier("http://www.w3.org/TR/xhtml1/", IdentifierType.URL));
    _specification.add(doc);

    /* XHTML 1.1 spec */
    doc = new Document(" XHTML(TM) 1.1 - Module-based XHTML", DocumentType.REPORT);
    doc.setPublisher(w3cAgent);
    doc.setDate("31-05-2001");
    doc.setIdentifier(
        new Identifier("http://www.w3.org/TR/2001/REC-xhtml11-20010531/", IdentifierType.URL));
    _specification.add(doc);

    /* XHTML 2.0 spec -- NOT included yet; this is presented in "conditionalized-out"
     * form just as a note for future expansion. */
    if (false) {
      doc = new Document("XHTML 2.0, W3C Working Draft", DocumentType.OTHER);
      doc.setPublisher(w3cAgent);
      doc.setDate("22-07-2004");
      doc.setIdentifier(
          new Identifier("http://www.w3.org/TR/2004/WD-xhtml2-20040722/", IdentifierType.URL));
      _specification.add(doc);
    }

    Signature sig =
        new ExternalSignature(".html", SignatureType.EXTENSION, SignatureUseType.OPTIONAL);
    _signature.add(sig);
    sig = new ExternalSignature(".htm", SignatureType.EXTENSION, SignatureUseType.OPTIONAL);
    _signature.add(sig);
  }
Example #2
0
  /** Instantiates an <tt>WaveModule</tt> object. */
  public WaveModule() {
    super(
        NAME,
        RELEASE,
        DATE,
        FORMAT,
        COVERAGE,
        MIMETYPE,
        WELLFORMED,
        VALIDITY,
        REPINFO,
        NOTE,
        RIGHTS,
        false);
    Agent agent = new Agent("Harvard University Library", AgentType.EDUCATIONAL);
    agent.setAddress(
        "Office for Information Systems, " + "90 Mt. Auburn St., " + "Cambridge, MA 02138");
    agent.setTelephone("+1 (617) 495-3724");
    agent.setEmail("*****@*****.**");
    _vendor = agent;

    Agent msagent = new Agent("Microsoft Corporation", AgentType.COMMERCIAL);
    msagent.setAddress(" One Microsoft Way, " + "Redmond, WA 98052-6399");
    msagent.setTelephone("+1 (800) 426-9400");
    msagent.setWeb("http://www.microsoft.com");
    Document doc = new Document("PCMWAVEFORMAT", DocumentType.WEB);
    doc.setIdentifier(
        new Identifier(
            "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/"
                + "multimed/htm/_win32_pcmwaveformat_str.asp",
            IdentifierType.URL));
    doc.setPublisher(msagent);
    _specification.add(doc);

    doc = new Document("WAVEFORMATEX", DocumentType.WEB);
    doc.setIdentifier(
        new Identifier(
            "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/"
                + "multimed/htm/_win32_waveformatex_str.asp",
            IdentifierType.URL));
    doc.setPublisher(msagent);
    _specification.add(doc);

    doc = new Document("WAVEFORMATEXTENSIBLE", DocumentType.WEB);
    doc.setIdentifier(
        new Identifier(
            "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/"
                + "multimed/htm/_win32_waveformatextensible_str.asp",
            IdentifierType.URL));
    doc.setPublisher(msagent);
    _specification.add(doc);

    agent = new Agent("European Broadcasting Union", AgentType.COMMERCIAL);
    agent.setAddress(
        "Casa postale 45, Ancienne Route 17A, " + "CH-1218 Grand-Saconex, Geneva, Switzerland");
    agent.setTelephone("+ 41 (0)22 717 2111");
    agent.setFax("+ 41 (0)22 747 4000");
    agent.setEmail("*****@*****.**");
    agent.setWeb("http://www.ebu.ch");

    doc = new Document("Broadcast Wave Format (EBU N22-1987)", DocumentType.REPORT);
    doc.setIdentifier(
        new Identifier(
            "http://www.ebu.ch/CMSimages/en/tec_doc_t3285_tcm6-10544.pdf", IdentifierType.URL));
    doc.setPublisher(agent);
    _specification.add(doc);

    Signature sig =
        new ExternalSignature(".wav", SignatureType.EXTENSION, SignatureUseType.OPTIONAL);
    _signature.add(sig);

    sig =
        new ExternalSignature(
            ".bwf", SignatureType.EXTENSION, SignatureUseType.OPTIONAL, "For BWF profile");
    _signature.add(sig);

    sig = new InternalSignature("RIFF", SignatureType.MAGIC, SignatureUseType.MANDATORY, 0);
    _signature.add(sig);
    sig = new InternalSignature("WAVE", SignatureType.MAGIC, SignatureUseType.MANDATORY, 8);
    _signature.add(sig);

    _bigEndian = false;
  }