Skip to content

Commit c77f6fd

Browse files
committed
8231083: Clarify SAX documentation
Reviewed-by: lancea, alanb
1 parent 46db25e commit c77f6fd

39 files changed

+57
-493
lines changed

src/java.xml/share/classes/org/xml/sax/AttributeList.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,23 +23,11 @@
2323
* questions.
2424
*/
2525

26-
// SAX Attribute List Interface.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: AttributeList.java,v 1.3 2004/11/03 22:44:51 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
/**
3429
* Interface for an element's attribute specifications.
3530
*
36-
* <blockquote>
37-
* <em>This module, both source code and documentation, is in the
38-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
39-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
40-
* for further information.
41-
* </blockquote>
42-
*
4331
* <p>This is the original SAX1 interface for reporting an element's
4432
* attributes. Unlike the new {@link org.xml.sax.Attributes Attributes}
4533
* interface, it does not support Namespace-related information.

src/java.xml/share/classes/org/xml/sax/Attributes.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,25 +23,12 @@
2323
* questions.
2424
*/
2525

26-
// Attributes.java - attribute list with Namespace support
27-
// http://www.saxproject.org
28-
// Written by David Megginson
29-
// NO WARRANTY! This class is in the public domain.
30-
// $Id: Attributes.java,v 1.2 2004/11/03 22:44:51 jsuttor Exp $
31-
3226
package org.xml.sax;
3327

3428

3529
/**
3630
* Interface for a list of XML attributes.
3731
*
38-
* <blockquote>
39-
* <em>This module, both source code and documentation, is in the
40-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
41-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
42-
* for further information.
43-
* </blockquote>
44-
*
4532
* <p>This interface allows access to a list of attributes in
4633
* three different ways:</p>
4734
*

src/java.xml/share/classes/org/xml/sax/ContentHandler.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,12 @@
2323
* questions.
2424
*/
2525

26-
// ContentHandler.java - handle main document content.
27-
// http://www.saxproject.org
28-
// Written by David Megginson
29-
// NO WARRANTY! This class is in the public domain.
30-
// $Id: ContentHandler.java,v 1.2 2004/11/03 22:44:51 jsuttor Exp $
31-
3226
package org.xml.sax;
3327

3428

3529
/**
3630
* Receive notification of the logical content of a document.
3731
*
38-
* <blockquote>
39-
* <em>This module, both source code and documentation, is in the
40-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
41-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
42-
* for further information.
43-
* </blockquote>
44-
*
4532
* <p>This is the main interface that most SAX applications
4633
* implement: if the application needs to be informed of basic parsing
4734
* events, it implements this interface and registers an instance with

src/java.xml/share/classes/org/xml/sax/DTDHandler.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,23 +23,11 @@
2323
* questions.
2424
*/
2525

26-
// SAX DTD handler.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: DTDHandler.java,v 1.2 2004/11/03 22:44:51 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
/**
3429
* Receive notification of basic DTD-related events.
3530
*
36-
* <blockquote>
37-
* <em>This module, both source code and documentation, is in the
38-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
39-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
40-
* for further information.
41-
* </blockquote>
42-
*
4331
* <p>If a SAX application needs information about notations and
4432
* unparsed entities, then the application implements this
4533
* interface and registers an instance with the SAX parser using

src/java.xml/share/classes/org/xml/sax/DocumentHandler.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,23 +23,11 @@
2323
* questions.
2424
*/
2525

26-
// SAX document handler.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: DocumentHandler.java,v 1.2 2004/11/03 22:44:51 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
/**
3429
* Receive notification of general document events.
3530
*
36-
* <blockquote>
37-
* <em>This module, both source code and documentation, is in the
38-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
39-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
40-
* for further information.
41-
* </blockquote>
42-
*
4331
* <p>This was the main event-handling interface for SAX1; in
4432
* SAX2, it has been replaced by {@link org.xml.sax.ContentHandler
4533
* ContentHandler}, which provides Namespace support and reporting

src/java.xml/share/classes/org/xml/sax/EntityResolver.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,11 +23,6 @@
2323
* questions.
2424
*/
2525

26-
// SAX entity resolver.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: EntityResolver.java,v 1.2 2004/11/03 22:44:52 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
import java.io.IOException;
@@ -36,13 +31,6 @@
3631
/**
3732
* Basic interface for resolving entities.
3833
*
39-
* <blockquote>
40-
* <em>This module, both source code and documentation, is in the
41-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
42-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
43-
* for further information.
44-
* </blockquote>
45-
*
4634
* <p>If a SAX application needs to implement customized handling
4735
* for external entities, it must implement this interface and
4836
* register an instance with the SAX driver using the

src/java.xml/share/classes/org/xml/sax/ErrorHandler.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,12 @@
2323
* questions.
2424
*/
2525

26-
// SAX error handler.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: ErrorHandler.java,v 1.2 2004/11/03 22:44:52 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328

3429
/**
3530
* Basic interface for SAX error handlers.
3631
*
37-
* <blockquote>
38-
* <em>This module, both source code and documentation, is in the
39-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
40-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
41-
* for further information.
42-
* </blockquote>
43-
*
4432
* <p>If a SAX application needs to implement customized error
4533
* handling, it must implement this interface and then register an
4634
* instance with the XML reader using the

src/java.xml/share/classes/org/xml/sax/HandlerBase.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,24 +23,12 @@
2323
* questions.
2424
*/
2525

26-
// SAX default handler base class.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: HandlerBase.java,v 1.2 2005/06/10 03:50:47 jeffsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
/**
3429
* Default base class for handlers.
3530
*
36-
* <blockquote>
37-
* <em>This module, both source code and documentation, is in the
38-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
39-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
40-
* for further information.
41-
* </blockquote>
42-
*
43-
* <p>This class implements the default behaviour for four SAX1
31+
* <p>This class implements the default behavior for four SAX1
4432
* interfaces: EntityResolver, DTDHandler, DocumentHandler,
4533
* and ErrorHandler. It is now obsolete, but is included in SAX2 to
4634
* support legacy SAX1 applications. SAX2 applications should use

src/java.xml/share/classes/org/xml/sax/InputSource.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,11 +23,6 @@
2323
* questions.
2424
*/
2525

26-
// SAX input source.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: InputSource.java,v 1.2 2004/11/03 22:55:32 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328
import java.io.IOException;
@@ -37,13 +32,6 @@
3732
/**
3833
* A single input source for an XML entity.
3934
*
40-
* <blockquote>
41-
* <em>This module, both source code and documentation, is in the
42-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
43-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
44-
* for further information.
45-
* </blockquote>
46-
*
4735
* <p>This class allows a SAX application to encapsulate information
4836
* about an input source in a single object, which may include
4937
* a public identifier, a system identifier, a byte stream (possibly

src/java.xml/share/classes/org/xml/sax/Locator.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,24 +23,12 @@
2323
* questions.
2424
*/
2525

26-
// SAX locator interface for document events.
27-
// http://www.saxproject.org
28-
// No warranty; no copyright -- use this as you will.
29-
// $Id: Locator.java,v 1.2 2004/11/03 22:55:32 jsuttor Exp $
30-
3126
package org.xml.sax;
3227

3328

3429
/**
3530
* Interface for associating a SAX event with a document location.
3631
*
37-
* <blockquote>
38-
* <em>This module, both source code and documentation, is in the
39-
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
40-
* See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
41-
* for further information.
42-
* </blockquote>
43-
*
4432
* <p>If a SAX parser provides location information to the SAX
4533
* application, it does so by implementing this interface and then
4634
* passing an instance to the application using the content

0 commit comments

Comments
 (0)