/** * Sets the vendor and specification for this module. */ private void setVendorAndSpecification() { _vendor = KB_AGENT; Document doc = new Document("WARC (Web ARChive) file format", DocumentType.WEB); // Should probably have IIPC and others as authors doc.setPublisher(Agent.newIsoInstance()); doc.setDate("2009"); doc.setIdentifier(new Identifier("28500:2009", IdentifierType.ISO)); _specification.add(doc); // Add optional external signatures (.warc or .warc.gz) Signature sig = new ExternalSignature (".warc", SignatureType.EXTENSION, SignatureUseType.OPTIONAL); _signature.add (sig); sig = new ExternalSignature (".warc.gz", SignatureType.EXTENSION, SignatureUseType.OPTIONAL, "when compressed"); _signature.add (sig); }
texta.append (margin + label + ": " + document.getTitle () + eol); texta.append (margin + "Type: " + document.getType () + eol); for (Agent agent: document.getAuthor ()) { showAgent (agent, "Author"); for (Agent publisher : document.getPublisher ()) { showAgent (publisher, "Publisher"); String s = document.getEdition (); if (s != null) { texta.append (margin + "Edition: " + s + eol); if ((s = document.getDate ()) != null) { texta.append (margin + "Date: " + s + eol); if ((s = document.getEnumeration ()) != null) { texta.append (margin + "Enumeration: " + s + eol); if ((s = document.getPages ()) != null) { texta.append (margin + "Pages: " + s + eol); for (Identifier id : document.getIdentifier ()) { showIdentifier (id); if ((s = document.getNote ()) != null) { texta.append (margin + "Note: " + s + eol);
Document doc = new Document("TIFF, Revision 6.0", DocumentType.REPORT); Agent adobeAgent = Agent.newAdobeInstance(); doc.setPublisher(adobeAgent); doc.setDate("1992-06-03"); doc.setEdition("Final"); doc.setIdentifier(new Identifier("http://partners.adobe.com/asn/" + "tech/tiff/specification.jsp", IdentifierType.URL)); _specification.add(doc); doc = new Document("TIFF, Revision 5.0", DocumentType.REPORT); Agent agent = new Agent.Builder("Aldus Corporation", AgentType.COMMERCIAL).build(); doc.setPublisher(agent); doc.setDate("1988-08-08"); doc.setNote("Aldus was acquired by Adobe Systems, Inc., in 1993"); _specification.add(doc); doc = new Document("Tagged Image File Format, Rev. 4.0", DocumentType.REPORT); agent = new Agent.Builder("Aldus Corporation", AgentType.COMMERCIAL) .build(); doc.setPublisher(agent); doc.setDate("1987-04-30"); doc.setNote("Aldus was acquired by Adobe Systems, Inc., in 1993"); _specification.add(doc); doc = new Document("ISO 12234-2:2001, Electronic still-picture " + "imaging -- Removable memory -- " + "Part 2: TIFF/EP image data format", DocumentType.STANDARD);
Document doc = new Document ("GIF (Graphics Interchange Format): A " + "standard defining a mechanism for the " + "storage and transmission of raster-" + AgentType.COMMERCIAL).address ("5000 Arlington Centre Blvd., Columbus, OS 43220").telephone ("(614) 457-8600").web ("http://www.compuserve.com/"); Agent cmpsrvAgent = builder.build(); doc.setAuthor (cmpsrvAgent); doc.setDate ("1987-06-15"); doc.setIdentifier (new Identifier ("http://www.w3.org/Graphics/GIF/spec-gif87.txt", IdentifierType.URL)); _specification.add (doc); doc = new Document ("Graphics Interchange Format", DocumentType.REPORT); doc.setEdition ("Version 89a"); doc.setAuthor (cmpsrvAgent); doc.setDate ("1987-06-15"); doc.setIdentifier (new Identifier ("http://www.w3.org/Graphics/GIF/spec-gif89a.txt", IdentifierType.URL)); _specification.add (doc);
_vendor = Agent.harvardInstance(); Document doc = new Document ("Audio Interchange File Format: " + "\"AIFF\", A Standard for Sampled Sound " + "Files, Version 1.3", DocumentType.REPORT); AgentType.COMMERCIAL).address ("1 Infinite Loop, Cupertino, CA 95014").telephone("(408) 996-1010").web("http://www.apple.com/"); Agent appleAgent = builder.build(); doc.setAuthor (appleAgent); doc.setDate ("1989-01-04"); doc.setIdentifier (new Identifier ("http://developer.apple.com/documentation/QuickTime/INMAC/SOUND/imsoundmgr.30.htm#pgfId=3190", IdentifierType.URL)); _specification.add (doc); doc = new Document ("Audio Interchange File Format AIFF-C: " + "A revision to include compressed audio data", DocumentType.REPORT); doc.setAuthor (appleAgent); doc.setDate ("1991-08-26"); doc.setNote ("*** DRAFT ***"); // Asterisks as in the printed document _specification.add (doc);
_writer.println (margin + label + ": " + document.getTitle ()); _writer.println (margin + " Type: " + document.getType ()); List list = document.getAuthor (); int n = list.size (); for (int i=0; i<n; i++) { showAgent ((Agent) list.get (i), "Author"); list = document.getPublisher (); n = list.size (); for (int i=0; i<n; i++) { showAgent ((Agent) list.get (i), "Publisher"); String s = document.getEdition (); if (s != null) { _writer.println (margin + " Edition: " + s); if ((s = document.getDate ()) != null) { _writer.println (margin + " Date: " + s); if ((s = document.getEnumeration ()) != null) { _writer.println (margin + " Enumeration: " + s); if ((s = document.getPages ()) != null) { _writer.println (margin + " Pages: " + s); list = document.getIdentifier (); n = list.size (); for (int i=0; i<n; i++) { showIdentifier ((Identifier) list.get (i));
/** * Instantiate an <tt>XmlModule</tt> object. */ public XmlModule () { super (NAME, RELEASE, DATE, FORMAT, COVERAGE, MIMETYPE, WELLFORMED, VALIDITY, REPINFO, NOTE, RIGHTS, false); _vendor = Agent.harvardInstance(); Document doc = new Document ("Extensible Markup Language (XML) 1.0 " + "(Third Edition)", DocumentType.REPORT); doc.setPublisher (Agent.newW3CInstance()); doc.setDate ("2004-02-04"); doc.setIdentifier (new Identifier ("http://www.w3.org/TR/REC-xml", IdentifierType.URL)); _specification.add (doc); doc = new Document ("SAX", DocumentType.WEB); doc.setIdentifier (new Identifier ("http://sax.sourceforge.net/", IdentifierType.URL)); _specification.add (doc); Signature sig = new ExternalSignature (".xml", SignatureType.EXTENSION, SignatureUseType.OPTIONAL); _signature.add (sig); _localSchemas = new HashMap<String, File> (); }
_writer.println (margn2 + element ("title", document.getTitle ())); _writer.println (margn2 + element ("type", document.getType ().toString ())); List list = document.getAuthor (); int n = list.size (); if (n > 0) { list = document.getPublisher (); n = list.size (); if (n > 0) { String s = document.getEdition (); if (s != null) { _writer.println (margn2 + element ("edition", s)); if ((s = document.getDate ()) != null) { _writer.println (margn2 + element ("date", s)); if ((s = document.getEnumeration ()) != null) { _writer.println (margn2 + element ("enumeration", s)); if ((s = document.getPages ()) != null) { _writer.println (margn2 + element ("pages", s)); list = document.getIdentifier (); n = list.size (); if (n > 0) { if ((s = document.getNote ()) != null) {
/** * Sets the vendor and specification for this module. */ private void setVendorAndSpecification() { _vendor = KB_AGENT; Document doc = new Document("GZIP", DocumentType.RFC); // Should probably have IIPC and others as authors Agent ietfAgent = new Agent.Builder("IETF", AgentType.STANDARD).web( "http://www.ietf.org").build(); doc.setPublisher(ietfAgent); doc.setDate("1996"); doc.setIdentifier(new Identifier("https://www.ietf.org/rfc/rfc1952.txt", IdentifierType.RFC)); _specification.add(doc); // Add optional external signature (.gz) Signature sig = new ExternalSignature (EXTENSION, SignatureType.EXTENSION, SignatureUseType.OPTIONAL); _signature.add (sig); }
Document doc = new Document("HTML 3.2 Reference Specification", DocumentType.REPORT); Agent w3cAgent = Agent.newW3CInstance(); doc.setPublisher(w3cAgent); 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); doc = new Document("HTML 4.0 Specification", DocumentType.REPORT); doc.setPublisher(w3cAgent); doc.setAuthor(dRaggett); Agent leHors = new Agent.Builder("Arnaud Le Hors", AgentType.OTHER) .build(); doc.setAuthor(leHors); Agent jacobs = new Agent.Builder("Ian Jacobs", AgentType.OTHER).build(); doc.setAuthor(jacobs); doc.setDate("1998-04-24"); doc.setIdentifier(new Identifier( "http://www.w3.org/TR/1998/REC-html40-19980424/", IdentifierType.URL)); doc = new Document("HTML 4.01 Specification", DocumentType.REPORT); doc.setPublisher(w3cAgent); doc.setAuthor(dRaggett); doc.setAuthor(leHors);
Document doc = new Document("The Unicode Standard, Version 6.0", DocumentType.BOOK); Agent agent = new Agent.Builder("The Unicode Consortium", .web("http://www.unicode.org/versions/Unicode7.0.0/") .address("Mountain View, California").build(); doc.setAuthor(agent); agent = new Agent.Builder("Addison-Wesley", AgentType.COMMERCIAL).address("Boston, Massachusetts").build(); doc.setPublisher(agent); doc.setDate("2011"); doc.setIdentifier(new Identifier("978-1-936213-01-6", IdentifierType.ISBN)); _specification.add(doc); doc = new Document("Information technology -- Universal " + "Multiple-Octet Coded Character Set (UCS) -- " + "Part 1: Architecture and Basic Multilingual " + "Plane. Appendix R, Amendment 2", DocumentType.STANDARD); doc.setPublisher(Agent.newIsoInstance()); doc.setDate("1991"); doc.setIdentifier(new Identifier("ISO/IEC 10646-1 Amendment 2", IdentifierType.ISO)); _specification.add(doc); doc = new Document("UTF-8, a transformation format of ISO 10646", DocumentType.RFC); agent = new Agent.Builder("F. Yergeau", AgentType.OTHER).build(); doc.setAuthor(agent); agent = new Agent.Builder("IETF", AgentType.NONPROFIT).web("http://www.ietf.org/").build();
Document doc = new Document("PDF Reference: Adobe Portable " + "Document Format, Version 1.4", DocumentType.BOOK); Agent agent = Agent.newAdobeInstance(); doc.setPublisher(agent); doc.setDate("2001-12"); doc.setEdition("3rd edition"); doc.setIdentifier(new Identifier("0-201-75839-3", IdentifierType.ISBN)); doc.setIdentifier(new Identifier("http://partners.adobe.com/asn/" + "acrobat/docs/File_Format_" + "Specifications/PDFReference.pdf", doc = new Document("PDF Reference: Adobe Portable " + "Document Format, Version 1.5", DocumentType.BOOK); doc.setPublisher(agent); doc.setDate("2003"); doc.setEdition("4th edition"); doc.setIdentifier(new Identifier( "http://partners.adobe.com/public/developer/en/pdf/PDFReference15_v6.pdf", IdentifierType.URL)); _specification.add(doc); doc = new Document("PDF Reference: Adobe Portable " + "Document Format, Version 1.6", DocumentType.BOOK); doc.setPublisher(agent); doc.setDate("2004-11");
Document doc = new Document("Information technology -- ISO 7-bit " + "coded character set for information " + "interchange", DocumentType.STANDARD); doc.setPublisher(Agent.newIsoInstance()); doc.setDate("1991"); doc.setIdentifier(new Identifier("ISO/IEC 646:1991", IdentifierType.ISO)); _specification.add(doc); doc = new Document("Information Systems -- Coded Character Sets " + "7-Bit American National Standard Code for " + "Information Interchange (7-Bit ASCII)", .telephone("+1 (202) 293-8020").fax("+1 (202) 293-9287") .email("info@ansi.org").web("http://www.ansi.org/"); doc.setPublisher(builder.build()); doc.setDate("1986-12-30"); doc.setIdentifier(new Identifier("ANSI X3.4-1986", IdentifierType.ANSI)); _specification.add(doc); doc = new Document("7-Bit coded Character Set", DocumentType.STANDARD); doc.setEdition("6th"); doc.setDate("1991-12"); builder = new Agent.Builder("ECMA", AgentType.STANDARD) .address("114 Rue du Rhone, CH-1204 Geneva, Switzerland") .email("helpdesk@ecma.ch") .web("http://www.ecma-international.org/"); doc.setPublisher(builder.build()); doc.setIdentifier(new Identifier("ECMA-6", IdentifierType.ECMA));
Document doc = new Document( "Eric Hamilton, JPEG File Interchange Format, " + "Version 1.02, September 1, 1992", DocumentType.WEB); .telephone("+1 (408) 944-6314").fax("+1 (408) 944-6314") .build(); doc.setPublisher(agent); doc.setDate("1992-09-01"); doc.setIdentifier(new Identifier( "http://www.w3.org/Graphics/JPEG/jfif3.pdf", IdentifierType.URL)); _specification.add(doc); doc = new Document( "ISO/IEC 10918-1:1994(E), Information technology -- " + "Digital compression and coding of continuous-tone " DocumentType.STANDARD); Agent isoAgent = Agent.newIsoInstance(); doc.setPublisher(isoAgent); doc.setIdentifier(new Identifier("CCITT REc. T.81 (1992 E)", IdentifierType.CCITT)); _specification.add(doc); doc = new Document( "ISO/IEC 10918-3:1997(E), Digital compression" + "and coding of continuous-tone still-images: " + "Extensions", DocumentType.STANDARD); doc.setPublisher(isoAgent); doc.setIdentifier(new Identifier("ITU-T Rec. T.84 (1996 E)",
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); doc = new Document("Specification of the Broadcast Wave Format (BWF)", DocumentType.REPORT); doc.setIdentifier(new Identifier("EBU Technical Specification 3285", IdentifierType.OTHER)); doc.setIdentifier(new Identifier(
Document doc = new Document( "Information technology -- " + "JPEG 2000 image coding system -- Part 1: Code coding system", DocumentType.STANDARD); Agent isoAgent = Agent.newIsoInstance(); doc.setAuthor(isoAgent); doc.setIdentifier(new Identifier("ISO/IEC 15444-1:2000", IdentifierType.ISO)); doc.setDate("2002-07-31"); _specification.add(doc); doc = new Document("Information technology -- " + "JPEG 2000 image coding system -- " + "Part 2: Extensions", DocumentType.STANDARD); doc.setAuthor(isoAgent); // ISO agent doc.setIdentifier(new Identifier("ISO/IEC 15444-2:2004", IdentifierType.ISO)); doc.setDate("2004-05-15"); _specification.add(doc); doc = new Document("MIME Type Registrations for JPEG 2000 " + "(ISO/IEC 15444) RFC 3745", DocumentType.RFC); Agent ietfAgent = new Agent.Builder("IETF", AgentType.STANDARD).web( "http://www.ietf.org").build(); doc.setPublisher(ietfAgent); Agent agent = new Agent.Builder("D. Singer", AgentType.OTHER).build(); doc.setAuthor(agent); agent = new Agent.Builder("R. Clark", AgentType.OTHER).build(); doc.setAuthor(agent);