diff options
Diffstat (limited to 'libjava/classpath/javax/xml')
86 files changed, 311 insertions, 344 deletions
diff --git a/libjava/classpath/javax/xml/XMLConstants.java b/libjava/classpath/javax/xml/XMLConstants.java index 0d4a65ff981..82485c8df14 100644 --- a/libjava/classpath/javax/xml/XMLConstants.java +++ b/libjava/classpath/javax/xml/XMLConstants.java @@ -1,4 +1,4 @@ -/* XMLConstants.java -- +/* XMLConstants.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,7 +45,7 @@ package javax.xml; */ public final class XMLConstants { - + private XMLConstants() { // to prevent instantiation @@ -68,7 +68,7 @@ public final class XMLConstants * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames */ public static final String XML_NS_URI = - "http://www.w3.org/XML/1998/namespace"; + "http://www.w3.org/XML/1998/namespace"; /** * The XML Namespace prefix. @@ -81,7 +81,7 @@ public final class XMLConstants * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames */ public static final String XMLNS_ATTRIBUTE_NS_URI = - "http://www.w3.org/2000/xmlns/"; + "http://www.w3.org/2000/xmlns/"; /** * The XML Namespace declaration attribute. @@ -94,21 +94,21 @@ public final class XMLConstants * @see http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions */ public static final String W3C_XML_SCHEMA_NS_URI = - "http://www.w3.org/2001/XMLSchema"; + "http://www.w3.org/2001/XMLSchema"; /** * The XML Schema Instance (XSI) namespace URI. * @see http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions */ public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI = - "http://www.w3.org/2001/XMLSchema-instance"; + "http://www.w3.org/2001/XMLSchema-instance"; /** * The XPath 2.0 datatypes namespace URI. * @see http://www.w3.org/TR/xpath-datamodel */ public static final String W3C_XPATH_DATATYPE_NS_URI = - "http://www.w3.org/2003/11/xpath-datatypes"; + "http://www.w3.org/2003/11/xpath-datatypes"; /** * The XML DTD namespace URI. @@ -120,12 +120,12 @@ public final class XMLConstants * @see http://relaxng.org/spec-20011203.html */ public static final String RELAXNG_NS_URI = - "http://relaxng.org/ns/structure/1.0"; + "http://relaxng.org/ns/structure/1.0"; /** * DOM feature for secure processing. */ public static final String FEATURE_SECURE_PROCESSING = - "http://javax.xml.XMLConstants/feature/secure-processing"; - + "http://javax.xml.XMLConstants/feature/secure-processing"; + } diff --git a/libjava/classpath/javax/xml/datatype/DatatypeConfigurationException.java b/libjava/classpath/javax/xml/datatype/DatatypeConfigurationException.java index c17a89a7d2f..642cdcaf3c6 100644 --- a/libjava/classpath/javax/xml/datatype/DatatypeConfigurationException.java +++ b/libjava/classpath/javax/xml/datatype/DatatypeConfigurationException.java @@ -1,4 +1,4 @@ -/* DatatypeConfigurationException.java -- +/* DatatypeConfigurationException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -61,10 +61,10 @@ public class DatatypeConfigurationException { super(message, cause); } - + public DatatypeConfigurationException(Throwable cause) { super(cause); } - + } diff --git a/libjava/classpath/javax/xml/datatype/DatatypeConstants.java b/libjava/classpath/javax/xml/datatype/DatatypeConstants.java index 6098e084b7b..1fe439e00b2 100644 --- a/libjava/classpath/javax/xml/datatype/DatatypeConstants.java +++ b/libjava/classpath/javax/xml/datatype/DatatypeConstants.java @@ -1,4 +1,4 @@ -/* DatatypeConstants.java -- +/* DatatypeConstants.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -52,7 +52,7 @@ public final class DatatypeConstants { // to prevent instantiation } - + /** * Typesafe enumerated class representing the six fields of the * <a href='Duration.html'>Duration</a> class. @@ -73,94 +73,94 @@ public final class DatatypeConstants { return id; } - + public String toString() { return name; } - + } /** * Value for January. */ public static final int JANUARY = 1; - + /** * Value for February. */ public static final int FEBRUARY = 2; - + /** * Value for March. */ public static final int MARCH = 3; - + /** * Value for April. */ public static final int APRIL = 4; - + /** * Value for May. */ public static final int MAY = 5; - + /** * Value for June. */ public static final int JUNE = 6; - + /** * Value for July. */ public static final int JULY = 7; - + /** * Value for August. */ public static final int AUGUST = 8; - + /** * Value for September. */ public static final int SEPTEMBER = 9; - + /** * Value for October. */ public static final int OCTOBER = 10; - + /** * Value for November. */ public static final int NOVEMBER = 11; - + /** * Value for December. */ public static final int DECEMBER = 12; - + /** * Comparison result. */ public static final int LESSER = -1; - + /** * Comparison result. */ public static final int EQUAL = 0; - + /** * Comparison result. */ public static final int GREATER = 1; - + /** * Comparison result. */ public static final int INDETERMINATE = 2; - + /** * Comparison result. */ @@ -170,27 +170,27 @@ public final class DatatypeConstants * Constant that represents the years field. */ public static final Field YEARS = new Field(1, "YEARS"); - + /** * Constant that represents the months field. */ public static final Field MONTHS = new Field(2, "MONTHS"); - + /** * Constant that represents the days field. */ public static final Field DAYS = new Field(3, "DAYS"); - + /** * Constant that represents the hours field. */ public static final Field HOURS = new Field(4, "HOURS"); - + /** * Constant that represents the minutes field. */ public static final Field MINUTES = new Field(5, "MINUTES"); - + /** * Constant that represents the seconds field. */ @@ -200,52 +200,52 @@ public final class DatatypeConstants * The qualified-name for the <code>dateTime</code> data type. */ public static final QName DATETIME = new QName ("http://www.w3.org/2001/XMLSchema#dateTime", ""); - + /** * The qualified-name for the <code>time</code> data type. */ public static final QName TIME = new QName ("http://www.w3.org/2001/XMLSchema#time", ""); - + /** * The qualified-name for the <code>date</code> data type. */ public static final QName DATE = new QName ("http://www.w3.org/2001/XMLSchema#date", ""); - + /** * The qualified-name for the <code>gYearMonth</code> data type. */ public static final QName GYEARMONTH = new QName ("http://www.w3.org/2001/XMLSchema#gYearMonth", ""); - + /** * The qualified-name for the <code>gMonthDay</code> data type. */ public static final QName GMONTHDAY = new QName ("http://www.w3.org/2001/XMLSchema#gMonthDay", ""); - + /** * The qualified-name for the <code>gYear</code> data type. */ public static final QName GYEAR = new QName ("http://www.w3.org/2001/XMLSchema#gYear", ""); - + /** * The qualified-name for the <code>gMonth</code> data type. */ public static final QName GMONTH = new QName ("http://www.w3.org/2001/XMLSchema#gMonth", ""); - + /** * The qualified-name for the <code>gDay</code> data type. */ public static final QName GDAY = new QName ("http://www.w3.org/2001/XMLSchema#gDay", ""); - + /** * The qualified-name for the <code>duration</code> data type. */ public static final QName DURATION = new QName ("http://www.w3.org/2001/XMLSchema#duration", ""); - + /** * The qualified-name for the <code>dayTimeDuration</code> data type. */ public static final QName DURATION_DAYTIME = new QName ("http://www.w3.org/2001/XMLSchema#dayTimeDuration", ""); - + /** * The qualified-name for the <code>yearMonthDuration</code> data type. */ @@ -255,10 +255,10 @@ public final class DatatypeConstants * XML Schema maximum timezone offset, in minutes. */ public static final int MAX_TIMEZONE_OFFSET = -840; - + /** * XML Schema minimum timezone offset, in minutes. */ public static final int MIN_TIMEZONE_OFFSET = 840; - + } diff --git a/libjava/classpath/javax/xml/datatype/DatatypeFactory.java b/libjava/classpath/javax/xml/datatype/DatatypeFactory.java index 386d5b85286..924a610c1e2 100644 --- a/libjava/classpath/javax/xml/datatype/DatatypeFactory.java +++ b/libjava/classpath/javax/xml/datatype/DatatypeFactory.java @@ -1,4 +1,4 @@ -/* DatatypeFactory.java -- +/* DatatypeFactory.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -303,7 +303,7 @@ public abstract class DatatypeFactory * XML Schema 1.0 Part 2, section 3.2.[7-14].1. */ public abstract XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation); - + /** * Returns a new XMLGregorianCalendar based on the specified Gregorian * calendar. @@ -417,5 +417,5 @@ public abstract class DatatypeFactory new BigDecimal(((double) milliseconds) / 1000.0), timezone); } - + } diff --git a/libjava/classpath/javax/xml/datatype/Duration.java b/libjava/classpath/javax/xml/datatype/Duration.java index 96390fde467..7f53021cefc 100644 --- a/libjava/classpath/javax/xml/datatype/Duration.java +++ b/libjava/classpath/javax/xml/datatype/Duration.java @@ -1,4 +1,4 @@ -/* Duration.java -- +/* Duration.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -91,7 +91,7 @@ public abstract class Duration Number val = getField(DatatypeConstants.YEARS); return (val == null) ? 0 : val.intValue(); } - + /** * Returns the months in this duration as an int, or 0 if not present. */ @@ -100,7 +100,7 @@ public abstract class Duration Number val = getField(DatatypeConstants.MONTHS); return (val == null) ? 0 : val.intValue(); } - + /** * Returns the days in this duration as an int, or 0 if not present. */ @@ -109,7 +109,7 @@ public abstract class Duration Number val = getField(DatatypeConstants.DAYS); return (val == null) ? 0 : val.intValue(); } - + /** * Returns the hours in this duration as an int, or 0 if not present. */ @@ -118,7 +118,7 @@ public abstract class Duration Number val = getField(DatatypeConstants.HOURS); return (val == null) ? 0 : val.intValue(); } - + /** * Returns the minutes in this duration as an int, or 0 if not present. */ @@ -127,7 +127,7 @@ public abstract class Duration Number val = getField(DatatypeConstants.MINUTES); return (val == null) ? 0 : val.intValue(); } - + /** * Returns the seconds in this duration as an int, or 0 if not present. */ @@ -207,7 +207,7 @@ public abstract class Duration calendar.add(Calendar.SECOND, getSeconds()); } }*/ - + /** * Adds this duration to the specified date. */ @@ -246,7 +246,7 @@ public abstract class Duration * Returns the unary negative of this duration. */ public abstract Duration negate(); - + /** * Converts the years and months fields into the days field using a * specific time instant as the reference point. @@ -276,7 +276,7 @@ public abstract class Duration // TODO throw new UnsupportedOperationException(); } - + public abstract int hashCode(); /** @@ -287,5 +287,5 @@ public abstract class Duration // TODO throw new UnsupportedOperationException(); } - + } diff --git a/libjava/classpath/javax/xml/datatype/XMLGregorianCalendar.java b/libjava/classpath/javax/xml/datatype/XMLGregorianCalendar.java index c0b68681c22..a8a9272e06a 100644 --- a/libjava/classpath/javax/xml/datatype/XMLGregorianCalendar.java +++ b/libjava/classpath/javax/xml/datatype/XMLGregorianCalendar.java @@ -1,4 +1,4 @@ -/* XMLGregorianCalendar.java -- +/* XMLGregorianCalendar.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -213,5 +213,5 @@ public abstract class XMLGregorianCalendar public abstract TimeZone getTimeZone(int defaultZoneoffset); public abstract Object clone(); - + } diff --git a/libjava/classpath/javax/xml/namespace/NamespaceContext.java b/libjava/classpath/javax/xml/namespace/NamespaceContext.java index b9722a47a53..b3e1e1f61d0 100644 --- a/libjava/classpath/javax/xml/namespace/NamespaceContext.java +++ b/libjava/classpath/javax/xml/namespace/NamespaceContext.java @@ -1,4 +1,4 @@ -/* NamespaceContext.java -- +/* NamespaceContext.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -63,5 +63,5 @@ public interface NamespaceContext */ @SuppressWarnings("unchecked") public Iterator getPrefixes(String namespaceURI); - + } diff --git a/libjava/classpath/javax/xml/namespace/QName.java b/libjava/classpath/javax/xml/namespace/QName.java index 3c756237895..4033febfcea 100644 --- a/libjava/classpath/javax/xml/namespace/QName.java +++ b/libjava/classpath/javax/xml/namespace/QName.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -128,20 +128,20 @@ public class QName implements Serializable { if (qName == null) { - CPStringBuilder buf = new CPStringBuilder(); - if (namespaceURI.length() > 0) - { - buf.append('{'); - buf.append(namespaceURI); - buf.append('}'); - } - if (prefix.length() > 0) - { - buf.append(prefix); - buf.append(':'); - } - buf.append(localPart); - qName = buf.toString(); + CPStringBuilder buf = new CPStringBuilder(); + if (namespaceURI.length() > 0) + { + buf.append('{'); + buf.append(namespaceURI); + buf.append('}'); + } + if (prefix.length() > 0) + { + buf.append(prefix); + buf.append(':'); + } + buf.append(localPart); + qName = buf.toString(); } return qName; } @@ -150,7 +150,7 @@ public class QName implements Serializable { if (qNameAsString == null) throw new IllegalArgumentException("qNameAsString can't be null"); - + String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf('{'); int end = qNameAsString.indexOf('}'); @@ -169,5 +169,5 @@ public class QName implements Serializable } return new QName(namespaceUri, qNameAsString, prefix); } - + } diff --git a/libjava/classpath/javax/xml/parsers/DocumentBuilder.java b/libjava/classpath/javax/xml/parsers/DocumentBuilder.java index a574c98d410..8e4eccbb0c6 100644 --- a/libjava/classpath/javax/xml/parsers/DocumentBuilder.java +++ b/libjava/classpath/javax/xml/parsers/DocumentBuilder.java @@ -1,4 +1,4 @@ -/* DocumentBuilder.java -- +/* DocumentBuilder.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -70,7 +70,7 @@ public abstract class DocumentBuilder * @param is an XML input stream * @exception IllegalArgumentException if the input stream is null */ - public Document parse(InputStream is) + public Document parse(InputStream is) throws SAXException, IOException { if (is == null) @@ -86,7 +86,7 @@ public abstract class DocumentBuilder * @param systemId the system ID of the XML document * @exception IllegalArgumentException if the input stream is null */ - public Document parse(InputStream is, String systemId) + public Document parse(InputStream is, String systemId) throws SAXException, IOException { if (is == null) @@ -103,7 +103,7 @@ public abstract class DocumentBuilder * @param uri an XML system ID * @exception IllegalArgumentException if the URI is null */ - public Document parse(String uri) + public Document parse(String uri) throws SAXException, IOException { if (uri == null) @@ -118,7 +118,7 @@ public abstract class DocumentBuilder * @param f the XML file * @exception IllegalArgumentException if the file is null */ - public Document parse(File f) + public Document parse(File f) throws SAXException, IOException { if (f == null) @@ -135,7 +135,7 @@ public abstract class DocumentBuilder * @param source the input source * @exception IllegalArgumentException if the input source is null */ - public abstract Document parse(InputSource source) + public abstract Document parse(InputSource source) throws SAXException, IOException; /** @@ -175,7 +175,7 @@ public abstract class DocumentBuilder public abstract DOMImplementation getDOMImplementation(); // -- JAXP 1.3 methods -- - + /** * Reset this document builder to its original configuration. * @since 1.3 @@ -199,5 +199,5 @@ public abstract class DocumentBuilder { return false; } - + } diff --git a/libjava/classpath/javax/xml/parsers/DocumentBuilderFactory.java b/libjava/classpath/javax/xml/parsers/DocumentBuilderFactory.java index a1350c54920..5f8b49d7c44 100644 --- a/libjava/classpath/javax/xml/parsers/DocumentBuilderFactory.java +++ b/libjava/classpath/javax/xml/parsers/DocumentBuilderFactory.java @@ -1,4 +1,4 @@ -/* DocumentBuilderFactory.java -- +/* DocumentBuilderFactory.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -111,13 +111,13 @@ public abstract class DocumentBuilderFactory { throw new FactoryConfigurationError(e, "error instantiating class " + className); - } + } } } while (className == null && count < 3); return new gnu.xml.dom.DomDocumentBuilderFactory(); } - + private static String getFactoryClassName(ClassLoader loader, int attempt) { final String propertyName = "javax.xml.parsers.DocumentBuilderFactory"; @@ -141,7 +141,7 @@ public abstract class DocumentBuilderFactory { return null; } - case 2: + case 2: try { String serviceKey = "/META-INF/services/" + propertyName; @@ -293,7 +293,7 @@ public abstract class DocumentBuilderFactory * @param value the new value * @exception IllegalArgumentException if the attribute is not recognized */ - public abstract void setAttribute(String name, Object value) + public abstract void setAttribute(String name, Object value) throws IllegalArgumentException; /** @@ -301,7 +301,7 @@ public abstract class DocumentBuilderFactory * @param name the name of the attribute * @exception IllegalArgumentException if the attribute is not recognized */ - public abstract Object getAttribute(String name) + public abstract Object getAttribute(String name) throws IllegalArgumentException; // -- JAXP 1.3 methods -- @@ -365,5 +365,5 @@ public abstract class DocumentBuilderFactory */ public abstract boolean getFeature(String name) throws ParserConfigurationException; - + } diff --git a/libjava/classpath/javax/xml/parsers/FactoryConfigurationError.java b/libjava/classpath/javax/xml/parsers/FactoryConfigurationError.java index 96d0fc08289..6e2ebfadbb8 100644 --- a/libjava/classpath/javax/xml/parsers/FactoryConfigurationError.java +++ b/libjava/classpath/javax/xml/parsers/FactoryConfigurationError.java @@ -1,4 +1,4 @@ -/* FactoryConfigurationError.java -- +/* FactoryConfigurationError.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,7 @@ package javax.xml.parsers; /** * An error occurred during configuration of the parser factory. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public class FactoryConfigurationError diff --git a/libjava/classpath/javax/xml/parsers/ParserConfigurationException.java b/libjava/classpath/javax/xml/parsers/ParserConfigurationException.java index 412872f17de..a58decedbee 100644 --- a/libjava/classpath/javax/xml/parsers/ParserConfigurationException.java +++ b/libjava/classpath/javax/xml/parsers/ParserConfigurationException.java @@ -1,4 +1,4 @@ -/* ParserConfigurationException.java -- +/* ParserConfigurationException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,7 @@ package javax.xml.parsers; /** * An exception occurred during configuration of the XML parser. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public class ParserConfigurationException diff --git a/libjava/classpath/javax/xml/parsers/SAXParser.java b/libjava/classpath/javax/xml/parsers/SAXParser.java index d38c6579e25..e53558760ee 100644 --- a/libjava/classpath/javax/xml/parsers/SAXParser.java +++ b/libjava/classpath/javax/xml/parsers/SAXParser.java @@ -1,4 +1,4 @@ -/* SAXParser.java -- +/* SAXParser.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -59,7 +59,7 @@ import org.xml.sax.helpers.DefaultHandler; */ public abstract class SAXParser { - + protected SAXParser() { } @@ -76,7 +76,7 @@ public abstract class SAXParser * @exception IllegalArgumentException if the input stream is null * @see #parse(java.io.InputStream,org.xml.sax.helpers.DefaultHandler) */ - public void parse(InputStream is, HandlerBase hb) + public void parse(InputStream is, HandlerBase hb) throws SAXException, IOException { if (is == null) @@ -118,7 +118,7 @@ public abstract class SAXParser * @param dh the SAX2 handler * @exception IllegalArgumentException if the input stream is null */ - public void parse(InputStream is, DefaultHandler dh) + public void parse(InputStream is, DefaultHandler dh) throws SAXException, IOException { if (is == null) @@ -158,7 +158,7 @@ public abstract class SAXParser * @exception IllegalArgumentException if the URI is null * @see #parse(java.lang.String,org.xml.sax.helpers.DefaultHandler) */ - public void parse(String uri, HandlerBase hb) + public void parse(String uri, HandlerBase hb) throws SAXException, IOException { if (uri == null) @@ -175,7 +175,7 @@ public abstract class SAXParser * @param dh the SAX2 handler * @exception IllegalArgumentException if the URI is null */ - public void parse(String uri, DefaultHandler dh) + public void parse(String uri, DefaultHandler dh) throws SAXException, IOException { if (uri == null) @@ -195,7 +195,7 @@ public abstract class SAXParser * @exception IllegalArgumentException if the file is null * @see #parse(java.io.File,org.xml.sax.helpers.DefaultHandler) */ - public void parse(File f, HandlerBase hb) + public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) @@ -214,7 +214,7 @@ public abstract class SAXParser * @param dh the SAX2 handler * @exception IllegalArgumentException if the file is null */ - public void parse(File f, DefaultHandler dh) + public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) @@ -236,7 +236,7 @@ public abstract class SAXParser * @exception IllegalArgumentException if the input source is null * @see #parse(org.xml.sax.InputSource,org.xml.sax.helpers.DefaultHandler) */ - public void parse(InputSource is, HandlerBase hb) + public void parse(InputSource is, HandlerBase hb) throws SAXException, IOException { if (is == null) @@ -258,7 +258,7 @@ public abstract class SAXParser * @param dh the SAX2 handler * @exception IllegalArgumentException if the input source is null */ - public void parse(InputSource is, DefaultHandler dh) + public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) @@ -299,14 +299,14 @@ public abstract class SAXParser * @param name the name of the property * @param value the value of the property */ - public abstract void setProperty(String name, Object value) + public abstract void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException; /** * Returns the value of the specified SAX2 parser property. * @param name the name of the property */ - public abstract Object getProperty(String name) + public abstract Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException; // -- JAXP 1.3 methods -- @@ -336,5 +336,5 @@ public abstract class SAXParser { return false; } - + } diff --git a/libjava/classpath/javax/xml/parsers/SAXParserFactory.java b/libjava/classpath/javax/xml/parsers/SAXParserFactory.java index 9f8f7bafee9..13aca0f2b2c 100644 --- a/libjava/classpath/javax/xml/parsers/SAXParserFactory.java +++ b/libjava/classpath/javax/xml/parsers/SAXParserFactory.java @@ -1,4 +1,4 @@ -/* SAXParserFactory.java -- +/* SAXParserFactory.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -216,8 +216,8 @@ public abstract class SAXParserFactory * @param name the feature name * @param value the featurevalue */ - public abstract void setFeature(String name, boolean value) - throws ParserConfigurationException, SAXNotRecognizedException, + public abstract void setFeature(String name, boolean value) + throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException; /** @@ -225,8 +225,8 @@ public abstract class SAXParserFactory * factory. * @param name the feature name */ - public abstract boolean getFeature(String name) - throws ParserConfigurationException, SAXNotRecognizedException, + public abstract boolean getFeature(String name) + throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException; // -- JAXP 1.3 methods -- diff --git a/libjava/classpath/javax/xml/stream/EventFilter.java b/libjava/classpath/javax/xml/stream/EventFilter.java index 6d0cb65521e..eed54f8a927 100644 --- a/libjava/classpath/javax/xml/stream/EventFilter.java +++ b/libjava/classpath/javax/xml/stream/EventFilter.java @@ -1,4 +1,4 @@ -/* EventFilter.java -- +/* EventFilter.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -49,6 +49,5 @@ public interface EventFilter * Indicates whether this filter can accept the specified event. */ boolean accept(XMLEvent event); - -} +} diff --git a/libjava/classpath/javax/xml/stream/FactoryConfigurationError.java b/libjava/classpath/javax/xml/stream/FactoryConfigurationError.java index d04e71a8cf6..104b160cd93 100644 --- a/libjava/classpath/javax/xml/stream/FactoryConfigurationError.java +++ b/libjava/classpath/javax/xml/stream/FactoryConfigurationError.java @@ -1,4 +1,4 @@ -/* FactoryConfigurationError.java -- +/* FactoryConfigurationError.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -81,6 +81,5 @@ public class FactoryConfigurationError { return super.getMessage(); } - -} +} diff --git a/libjava/classpath/javax/xml/stream/Location.java b/libjava/classpath/javax/xml/stream/Location.java index 8f9f807e0f2..6e3483a5c2a 100644 --- a/libjava/classpath/javax/xml/stream/Location.java +++ b/libjava/classpath/javax/xml/stream/Location.java @@ -1,4 +1,4 @@ -/* Location.java -- +/* Location.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -71,6 +71,5 @@ public interface Location * Returns the system identifier for the underlying source. */ String getSystemId(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/StreamFilter.java b/libjava/classpath/javax/xml/stream/StreamFilter.java index 376bd940a89..a0ff2c8f32b 100644 --- a/libjava/classpath/javax/xml/stream/StreamFilter.java +++ b/libjava/classpath/javax/xml/stream/StreamFilter.java @@ -1,4 +1,4 @@ -/* StreamFilter.java -- +/* StreamFilter.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -48,6 +48,5 @@ public interface StreamFilter * this stream. */ boolean accept(XMLStreamReader reader); - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLEventFactory.java b/libjava/classpath/javax/xml/stream/XMLEventFactory.java index 7e7a98140a7..fc2d493d5d4 100644 --- a/libjava/classpath/javax/xml/stream/XMLEventFactory.java +++ b/libjava/classpath/javax/xml/stream/XMLEventFactory.java @@ -1,4 +1,4 @@ -/* XMLEventFactory.java -- +/* XMLEventFactory.java -- Copyright (C) 2005,2006,2009 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -199,7 +199,7 @@ public abstract class XMLEventFactory */ public abstract Attribute createAttribute(String prefix, String namespaceURI, String localName, String value); - + /** * Create an attribute event. */ @@ -255,7 +255,7 @@ public abstract class XMLEventFactory Iterator attributes, Iterator namespaces, NamespaceContext context); - + /** * Create an end-element event. */ @@ -348,6 +348,5 @@ public abstract class XMLEventFactory * Create a DOCTYPE declaration event. */ public abstract DTD createDTD(String dtd); - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLEventReader.java b/libjava/classpath/javax/xml/stream/XMLEventReader.java index ee0354f94f3..d5c76b6b192 100644 --- a/libjava/classpath/javax/xml/stream/XMLEventReader.java +++ b/libjava/classpath/javax/xml/stream/XMLEventReader.java @@ -1,4 +1,4 @@ -/* XMLEventReader.java -- +/* XMLEventReader.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,7 +58,7 @@ public interface XMLEventReader * Indicates whether there are more XML events to be read. */ boolean hasNext(); - + /** * Looks at the next XML event without advancing the cursor in the stream. * Returns <code>null</code> if there are no more events to read. @@ -100,4 +100,3 @@ public interface XMLEventReader throws XMLStreamException; } - diff --git a/libjava/classpath/javax/xml/stream/XMLEventWriter.java b/libjava/classpath/javax/xml/stream/XMLEventWriter.java index fe85f236ebb..5eb18760ac6 100644 --- a/libjava/classpath/javax/xml/stream/XMLEventWriter.java +++ b/libjava/classpath/javax/xml/stream/XMLEventWriter.java @@ -1,4 +1,4 @@ -/* XMLEventWriter.java -- +/* XMLEventWriter.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -104,6 +104,5 @@ public interface XMLEventWriter * Returns the namespace context. */ NamespaceContext getNamespaceContext(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLInputFactory.java b/libjava/classpath/javax/xml/stream/XMLInputFactory.java index e57449d7716..39ba8e3b431 100644 --- a/libjava/classpath/javax/xml/stream/XMLInputFactory.java +++ b/libjava/classpath/javax/xml/stream/XMLInputFactory.java @@ -1,4 +1,4 @@ -/* XMLInputFactory.java -- +/* XMLInputFactory.java -- Copyright (C) 2005,2006,2009 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -132,7 +132,7 @@ public abstract class XMLInputFactory /** * Property used to control namespace support. */ - public static final String IS_NAMESPACE_AWARE = + public static final String IS_NAMESPACE_AWARE = "javax.xml.stream.isNamespaceAware"; /** @@ -352,7 +352,7 @@ public abstract class XMLInputFactory public abstract XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException; - + /** * Creates a new event reader. */ @@ -449,4 +449,3 @@ public abstract class XMLInputFactory public abstract XMLEventAllocator getEventAllocator(); } - diff --git a/libjava/classpath/javax/xml/stream/XMLOutputFactory.java b/libjava/classpath/javax/xml/stream/XMLOutputFactory.java index ef89b6497bd..a8579aa3134 100644 --- a/libjava/classpath/javax/xml/stream/XMLOutputFactory.java +++ b/libjava/classpath/javax/xml/stream/XMLOutputFactory.java @@ -1,4 +1,4 @@ -/* XMLOutputFactory.java -- +/* XMLOutputFactory.java -- Copyright (C) 2005,2006,2009 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -77,7 +77,7 @@ public abstract class XMLOutputFactory * If true, the writer will create a namespace declaration for any * attribute that doesn't have a namespace declaration in scope. */ - public static final java.lang.String IS_REPAIRING_NAMESPACES = + public static final java.lang.String IS_REPAIRING_NAMESPACES = "javax.xml.stream.isRepairingNamespaces"; protected XMLOutputFactory() @@ -229,7 +229,7 @@ public abstract class XMLOutputFactory */ public abstract XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException; - + /** * Creates a new event writer. * @exception UnsupportedOperationException if this method is not @@ -277,4 +277,3 @@ public abstract class XMLOutputFactory public abstract boolean isPropertySupported(String name); } - diff --git a/libjava/classpath/javax/xml/stream/XMLReporter.java b/libjava/classpath/javax/xml/stream/XMLReporter.java index d545656813c..389437542f6 100644 --- a/libjava/classpath/javax/xml/stream/XMLReporter.java +++ b/libjava/classpath/javax/xml/stream/XMLReporter.java @@ -1,4 +1,4 @@ -/* XMLReporter.java -- +/* XMLReporter.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -53,6 +53,5 @@ public interface XMLReporter void report(String message, String errorType, Object relatedInformation, Location location) throws XMLStreamException; - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLResolver.java b/libjava/classpath/javax/xml/stream/XMLResolver.java index 2dabaeea407..e537bb74c51 100644 --- a/libjava/classpath/javax/xml/stream/XMLResolver.java +++ b/libjava/classpath/javax/xml/stream/XMLResolver.java @@ -1,4 +1,4 @@ -/* XMLResolver.java -- +/* XMLResolver.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -63,4 +63,3 @@ public interface XMLResolver throws XMLStreamException; } - diff --git a/libjava/classpath/javax/xml/stream/XMLStreamConstants.java b/libjava/classpath/javax/xml/stream/XMLStreamConstants.java index e41627dd601..60541344e64 100644 --- a/libjava/classpath/javax/xml/stream/XMLStreamConstants.java +++ b/libjava/classpath/javax/xml/stream/XMLStreamConstants.java @@ -1,4 +1,4 @@ -/* XMLStreamConstants.java -- +/* XMLStreamConstants.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -117,6 +117,5 @@ public interface XMLStreamConstants * An entity declaration event. */ static final int ENTITY_DECLARATION = 15; - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLStreamException.java b/libjava/classpath/javax/xml/stream/XMLStreamException.java index 0e91ed7a99e..929afbb75f5 100644 --- a/libjava/classpath/javax/xml/stream/XMLStreamException.java +++ b/libjava/classpath/javax/xml/stream/XMLStreamException.java @@ -1,4 +1,4 @@ -/* XMLStreamException.java -- +/* XMLStreamException.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -94,6 +94,5 @@ public class XMLStreamException { return location; } - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLStreamReader.java b/libjava/classpath/javax/xml/stream/XMLStreamReader.java index f8648b1adce..10bc4a5a58d 100644 --- a/libjava/classpath/javax/xml/stream/XMLStreamReader.java +++ b/libjava/classpath/javax/xml/stream/XMLStreamReader.java @@ -1,4 +1,4 @@ -/* XMLStreamReader.java -- +/* XMLStreamReader.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -281,7 +281,7 @@ public interface XMLStreamReader * Indicates whether the standalone flag was set in the document. */ boolean standaloneSet(); - + /** * Returns the encoding declared in the XML declaration. */ @@ -296,6 +296,5 @@ public interface XMLStreamReader * Returns the data of the current processing instruction event. */ String getPIData(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/XMLStreamWriter.java b/libjava/classpath/javax/xml/stream/XMLStreamWriter.java index 5fe9e9f70f4..d7d739660b8 100644 --- a/libjava/classpath/javax/xml/stream/XMLStreamWriter.java +++ b/libjava/classpath/javax/xml/stream/XMLStreamWriter.java @@ -1,4 +1,4 @@ -/* XMLStreamWriter.java -- +/* XMLStreamWriter.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -44,7 +44,7 @@ import javax.xml.namespace.NamespaceContext; */ public interface XMLStreamWriter { - + /** * Write the start of a tag. */ @@ -178,7 +178,7 @@ public interface XMLStreamWriter */ void writeStartDocument() throws XMLStreamException; - + /** * Write an XML declaration with the specified XML version. */ @@ -239,6 +239,5 @@ public interface XMLStreamWriter */ Object getProperty(String name) throws IllegalArgumentException; - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/Attribute.java b/libjava/classpath/javax/xml/stream/events/Attribute.java index 6e6d0274c4a..1824a9c02b1 100644 --- a/libjava/classpath/javax/xml/stream/events/Attribute.java +++ b/libjava/classpath/javax/xml/stream/events/Attribute.java @@ -1,4 +1,4 @@ -/* Attribute.java -- +/* Attribute.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -66,6 +66,5 @@ public interface Attribute * just defaulted by the DTD. */ boolean isSpecified(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/Characters.java b/libjava/classpath/javax/xml/stream/events/Characters.java index 3728a997c34..d82009247cb 100644 --- a/libjava/classpath/javax/xml/stream/events/Characters.java +++ b/libjava/classpath/javax/xml/stream/events/Characters.java @@ -1,4 +1,4 @@ -/* Characters.java -- +/* Characters.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,11 +58,10 @@ public interface Characters * Indicates whether this is a CDATA section. */ boolean isCData(); - + /** * Indicates whether this text is all ignorable whitespace. */ boolean isIgnorableWhiteSpace(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/Comment.java b/libjava/classpath/javax/xml/stream/events/Comment.java index 300e32c9266..4419e58f283 100644 --- a/libjava/classpath/javax/xml/stream/events/Comment.java +++ b/libjava/classpath/javax/xml/stream/events/Comment.java @@ -1,4 +1,4 @@ -/* Comment.java -- +/* Comment.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -48,6 +48,5 @@ public interface Comment * Returns the comment text. */ String getText(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/DTD.java b/libjava/classpath/javax/xml/stream/events/DTD.java index 943572ef32f..b1a906919f5 100644 --- a/libjava/classpath/javax/xml/stream/events/DTD.java +++ b/libjava/classpath/javax/xml/stream/events/DTD.java @@ -1,4 +1,4 @@ -/* DTD.java -- +/* DTD.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -68,6 +68,5 @@ public interface DTD */ @SuppressWarnings("unchecked") List getEntities(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/EndDocument.java b/libjava/classpath/javax/xml/stream/events/EndDocument.java index 57d93af928d..fd7e3fa4f48 100644 --- a/libjava/classpath/javax/xml/stream/events/EndDocument.java +++ b/libjava/classpath/javax/xml/stream/events/EndDocument.java @@ -1,4 +1,4 @@ -/* EndDocument.java -- +/* EndDocument.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -44,4 +44,3 @@ public interface EndDocument extends XMLEvent { } - diff --git a/libjava/classpath/javax/xml/stream/events/EndElement.java b/libjava/classpath/javax/xml/stream/events/EndElement.java index 3bde8f8ad9e..a6b5c3fa281 100644 --- a/libjava/classpath/javax/xml/stream/events/EndElement.java +++ b/libjava/classpath/javax/xml/stream/events/EndElement.java @@ -1,4 +1,4 @@ -/* EndElement.java -- +/* EndElement.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -57,6 +57,5 @@ public interface EndElement */ @SuppressWarnings("unchecked") Iterator getNamespaces(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/EntityDeclaration.java b/libjava/classpath/javax/xml/stream/events/EntityDeclaration.java index a0120ddb0de..61fa177f995 100644 --- a/libjava/classpath/javax/xml/stream/events/EntityDeclaration.java +++ b/libjava/classpath/javax/xml/stream/events/EntityDeclaration.java @@ -1,4 +1,4 @@ -/* EntityDeclaration.java -- +/* EntityDeclaration.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -75,4 +75,3 @@ public interface EntityDeclaration String getBaseURI(); } - diff --git a/libjava/classpath/javax/xml/stream/events/EntityReference.java b/libjava/classpath/javax/xml/stream/events/EntityReference.java index 460433c1690..27bcb040fbb 100644 --- a/libjava/classpath/javax/xml/stream/events/EntityReference.java +++ b/libjava/classpath/javax/xml/stream/events/EntityReference.java @@ -1,4 +1,4 @@ -/* EntityReference.java -- +/* EntityReference.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -55,4 +55,3 @@ public interface EntityReference String getName(); } - diff --git a/libjava/classpath/javax/xml/stream/events/Namespace.java b/libjava/classpath/javax/xml/stream/events/Namespace.java index 13dd92fdaf7..05de86c9660 100644 --- a/libjava/classpath/javax/xml/stream/events/Namespace.java +++ b/libjava/classpath/javax/xml/stream/events/Namespace.java @@ -1,4 +1,4 @@ -/* Namespace.java -- +/* Namespace.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,6 +58,5 @@ public interface Namespace * Indicates whether this event declares the default namespace. */ boolean isDefaultNamespaceDeclaration(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/NotationDeclaration.java b/libjava/classpath/javax/xml/stream/events/NotationDeclaration.java index 9ac29e9cc2c..708beb5f576 100644 --- a/libjava/classpath/javax/xml/stream/events/NotationDeclaration.java +++ b/libjava/classpath/javax/xml/stream/events/NotationDeclaration.java @@ -1,4 +1,4 @@ -/* NotationDeclaration.java -- +/* NotationDeclaration.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,6 +58,5 @@ public interface NotationDeclaration * Returns the system identifier of the notation. */ String getSystemId(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/ProcessingInstruction.java b/libjava/classpath/javax/xml/stream/events/ProcessingInstruction.java index 861dd30be68..34020230038 100644 --- a/libjava/classpath/javax/xml/stream/events/ProcessingInstruction.java +++ b/libjava/classpath/javax/xml/stream/events/ProcessingInstruction.java @@ -1,4 +1,4 @@ -/* ProcessingInstruction.java -- +/* ProcessingInstruction.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -53,6 +53,5 @@ public interface ProcessingInstruction * Returns the processing instruction data. */ String getData(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/StartDocument.java b/libjava/classpath/javax/xml/stream/events/StartDocument.java index 2bd251e4adb..7a543462455 100644 --- a/libjava/classpath/javax/xml/stream/events/StartDocument.java +++ b/libjava/classpath/javax/xml/stream/events/StartDocument.java @@ -1,4 +1,4 @@ -/* StartDocument.java -- +/* StartDocument.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -75,6 +75,5 @@ public interface StartDocument * Returns the XML version of the document. */ String getVersion(); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/StartElement.java b/libjava/classpath/javax/xml/stream/events/StartElement.java index 0916368c92b..359b57eefd7 100644 --- a/libjava/classpath/javax/xml/stream/events/StartElement.java +++ b/libjava/classpath/javax/xml/stream/events/StartElement.java @@ -1,4 +1,4 @@ -/* StartElement.java -- +/* StartElement.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -79,6 +79,5 @@ public interface StartElement * Returns the namespace URI associated with the given prefix. */ String getNamespaceURI(String prefix); - -} +} diff --git a/libjava/classpath/javax/xml/stream/events/XMLEvent.java b/libjava/classpath/javax/xml/stream/events/XMLEvent.java index 7c427da87d2..90f354667b2 100644 --- a/libjava/classpath/javax/xml/stream/events/XMLEvent.java +++ b/libjava/classpath/javax/xml/stream/events/XMLEvent.java @@ -1,4 +1,4 @@ -/* XMLEvent.java -- +/* XMLEvent.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -125,12 +125,11 @@ public interface XMLEvent * not available. */ QName getSchemaType(); - + /** * Writes this event to the specified writer. */ void writeAsEncodedUnicode(Writer writer) throws XMLStreamException; - -} +} diff --git a/libjava/classpath/javax/xml/stream/util/EventReaderDelegate.java b/libjava/classpath/javax/xml/stream/util/EventReaderDelegate.java index be943e465e1..2c04c09de8b 100644 --- a/libjava/classpath/javax/xml/stream/util/EventReaderDelegate.java +++ b/libjava/classpath/javax/xml/stream/util/EventReaderDelegate.java @@ -1,4 +1,4 @@ -/* EventReaderDelegate.java -- +/* EventReaderDelegate.java -- Copyright (C) 2005,2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -149,4 +149,3 @@ public class EventReaderDelegate } } - diff --git a/libjava/classpath/javax/xml/stream/util/StreamReaderDelegate.java b/libjava/classpath/javax/xml/stream/util/StreamReaderDelegate.java index 1c407a2454b..75a7ca597a6 100644 --- a/libjava/classpath/javax/xml/stream/util/StreamReaderDelegate.java +++ b/libjava/classpath/javax/xml/stream/util/StreamReaderDelegate.java @@ -1,4 +1,4 @@ -/* StreamReaderDelegate.java -- +/* StreamReaderDelegate.java -- Copyright (C) 2005,2006,2009 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -404,6 +404,5 @@ public class StreamReaderDelegate return parent.getProperty(name); throw new IllegalArgumentException(); } - -} +} diff --git a/libjava/classpath/javax/xml/stream/util/XMLEventAllocator.java b/libjava/classpath/javax/xml/stream/util/XMLEventAllocator.java index d66bcbe52e5..b8a7ddab8be 100644 --- a/libjava/classpath/javax/xml/stream/util/XMLEventAllocator.java +++ b/libjava/classpath/javax/xml/stream/util/XMLEventAllocator.java @@ -1,4 +1,4 @@ -/* XMLEventAllocator.java -- +/* XMLEventAllocator.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -51,7 +51,7 @@ public interface XMLEventAllocator * Creates a new allocator. */ XMLEventAllocator newInstance(); - + /** * Allocates an event based on the current state of the stream reader. */ @@ -64,6 +64,5 @@ public interface XMLEventAllocator */ void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException; - -} +} diff --git a/libjava/classpath/javax/xml/stream/util/XMLEventConsumer.java b/libjava/classpath/javax/xml/stream/util/XMLEventConsumer.java index c9deaf199ac..3a825f9dee6 100644 --- a/libjava/classpath/javax/xml/stream/util/XMLEventConsumer.java +++ b/libjava/classpath/javax/xml/stream/util/XMLEventConsumer.java @@ -1,4 +1,4 @@ -/* XMLEventConsumer.java -- +/* XMLEventConsumer.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -51,6 +51,5 @@ public interface XMLEventConsumer */ void add(XMLEvent event) throws XMLStreamException; - -} +} diff --git a/libjava/classpath/javax/xml/transform/ErrorListener.java b/libjava/classpath/javax/xml/transform/ErrorListener.java index 5a9eee81f97..ac236642a0c 100644 --- a/libjava/classpath/javax/xml/transform/ErrorListener.java +++ b/libjava/classpath/javax/xml/transform/ErrorListener.java @@ -1,4 +1,4 @@ -/* ErrorListener.java -- +/* ErrorListener.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/OutputKeys.java b/libjava/classpath/javax/xml/transform/OutputKeys.java index 8a86c13695e..09cf96cb9b5 100644 --- a/libjava/classpath/javax/xml/transform/OutputKeys.java +++ b/libjava/classpath/javax/xml/transform/OutputKeys.java @@ -1,4 +1,4 @@ -/* OutputKeys.java -- +/* OutputKeys.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,7 @@ package javax.xml.transform; /** * Constants for XSLT output attributes. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public class OutputKeys @@ -49,53 +49,53 @@ public class OutputKeys * The output method (xml, html, or text). */ public static final String METHOD = "method"; - + /** * The version of the output method. */ public static final String VERSION = "version"; - + /** * The preferred output character encoding. */ public static final String ENCODING = "encoding"; - + /** * Whether not to output an XML declaration (yes or no). */ public static final String OMIT_XML_DECLARATION = "omit-xml-declaration"; - + /** * Whether to output a standalone document declaration (yes or no). */ public static final String STANDALONE = "standalone"; - + /** * The public ID to output in the doctype declaration. */ public static final String DOCTYPE_PUBLIC = "doctype-public"; - + /** * The system ID to output in the doctype declaration. */ public static final String DOCTYPE_SYSTEM = "doctype-system"; - + /** * Whitespace-separated list of element names for which text children * should be output as CDATA sections. */ public static final String CDATA_SECTION_ELEMENTS = "cdata-section-elements"; - + /** * Whether to indent the result tree (yes or no). */ public static final String INDENT = "indent"; - + /** * The MIME content type of the output data. */ public static final String MEDIA_TYPE = "media-type"; - + private OutputKeys() { } diff --git a/libjava/classpath/javax/xml/transform/Result.java b/libjava/classpath/javax/xml/transform/Result.java index 58afebafe97..8f4d6c714eb 100644 --- a/libjava/classpath/javax/xml/transform/Result.java +++ b/libjava/classpath/javax/xml/transform/Result.java @@ -1,4 +1,4 @@ -/* Result.java -- +/* Result.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,7 +38,7 @@ package javax.xml.transform; /** * The result of an XSL transformation. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public interface Result diff --git a/libjava/classpath/javax/xml/transform/Source.java b/libjava/classpath/javax/xml/transform/Source.java index 2143b4ec459..f109dcc359d 100644 --- a/libjava/classpath/javax/xml/transform/Source.java +++ b/libjava/classpath/javax/xml/transform/Source.java @@ -1,4 +1,4 @@ -/* Source.java -- +/* Source.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/SourceLocator.java b/libjava/classpath/javax/xml/transform/SourceLocator.java index 5304d25479e..190a3b1657c 100644 --- a/libjava/classpath/javax/xml/transform/SourceLocator.java +++ b/libjava/classpath/javax/xml/transform/SourceLocator.java @@ -1,4 +1,4 @@ -/* SourceLocator.java -- +/* SourceLocator.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,7 @@ package javax.xml.transform; /** * The location in an XML resource at which an event occurred. * Tis is equivalent to the SAX Locator. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public interface SourceLocator diff --git a/libjava/classpath/javax/xml/transform/Templates.java b/libjava/classpath/javax/xml/transform/Templates.java index b4d1fbe686b..34d953327b0 100644 --- a/libjava/classpath/javax/xml/transform/Templates.java +++ b/libjava/classpath/javax/xml/transform/Templates.java @@ -1,4 +1,4 @@ -/* Templates.java -- +/* Templates.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -42,7 +42,7 @@ import java.util.Properties; /** * A compiled, reusable XSL transformation. * Implementations of this class are guaranteed to be thread safe. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public interface Templates diff --git a/libjava/classpath/javax/xml/transform/Transformer.java b/libjava/classpath/javax/xml/transform/Transformer.java index 905412559e0..316675b419e 100644 --- a/libjava/classpath/javax/xml/transform/Transformer.java +++ b/libjava/classpath/javax/xml/transform/Transformer.java @@ -1,4 +1,4 @@ -/* Transformer.java -- +/* Transformer.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,9 +58,9 @@ public abstract class Transformer * @param xmlSource the XML source * @param outputTarget the result of the transformation */ - public abstract void transform(Source xmlSource, Result outputTarget) + public abstract void transform(Source xmlSource, Result outputTarget) throws TransformerException; - + /** * Sets a parameter value for the transformation. * Parameters may be referenced in the XSLT stylesheet. @@ -104,7 +104,7 @@ public abstract class Transformer * @param oformat a set of output properties, or null to reset all the * properties to their default values */ - public abstract void setOutputProperties(Properties oformat) + public abstract void setOutputProperties(Properties oformat) throws IllegalArgumentException; /** @@ -125,7 +125,7 @@ public abstract class Transformer * @param value the string value of the property * @exception IllegalArgumentException if the property is not supported */ - public abstract void setOutputProperty(String name, String value) + public abstract void setOutputProperty(String name, String value) throws IllegalArgumentException; /** @@ -136,7 +136,7 @@ public abstract class Transformer * XML Name of the form <code>{<i>namespaceURI</i>}<i>localName</i></code> * @exception IllegalArgumentException if the property is not supported */ - public abstract String getOutputProperty(String name) + public abstract String getOutputProperty(String name) throws IllegalArgumentException; /** @@ -145,7 +145,7 @@ public abstract class Transformer */ public abstract void setErrorListener(ErrorListener listener) throws IllegalArgumentException; - + /** * Returns the callback used to report errors during the transformation. */ diff --git a/libjava/classpath/javax/xml/transform/TransformerConfigurationException.java b/libjava/classpath/javax/xml/transform/TransformerConfigurationException.java index 81db3bed913..3343a8041a2 100644 --- a/libjava/classpath/javax/xml/transform/TransformerConfigurationException.java +++ b/libjava/classpath/javax/xml/transform/TransformerConfigurationException.java @@ -1,4 +1,4 @@ -/* TransformerConfigurationException.java -- +/* TransformerConfigurationException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -96,6 +96,6 @@ public class TransformerConfigurationException Throwable e) { super(message, locator, e); - } + } } diff --git a/libjava/classpath/javax/xml/transform/TransformerException.java b/libjava/classpath/javax/xml/transform/TransformerException.java index 7a0b5ad9888..ac83e969c71 100644 --- a/libjava/classpath/javax/xml/transform/TransformerException.java +++ b/libjava/classpath/javax/xml/transform/TransformerException.java @@ -1,4 +1,4 @@ -/* TransformerException.java -- +/* TransformerException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -91,7 +91,7 @@ public class TransformerException /** * Constructor with detail message, locator and underlying cause. */ - public TransformerException(String msg, SourceLocator locator, + public TransformerException(String msg, SourceLocator locator, Throwable cause) { super(msg); diff --git a/libjava/classpath/javax/xml/transform/TransformerFactory.java b/libjava/classpath/javax/xml/transform/TransformerFactory.java index e3e6c0cbdc3..0bcc486274e 100644 --- a/libjava/classpath/javax/xml/transform/TransformerFactory.java +++ b/libjava/classpath/javax/xml/transform/TransformerFactory.java @@ -1,4 +1,4 @@ -/* TransformerFactory.java -- +/* TransformerFactory.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -72,7 +72,7 @@ public abstract class TransformerFactory * <li>the default factory class</li> * </ol> */ - public static TransformerFactory newInstance() + public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError { ClassLoader loader = Thread.currentThread().getContextClassLoader(); @@ -98,10 +98,10 @@ public abstract class TransformerFactory className = null; } catch (Exception e) - { + { throw new TransformerFactoryConfigurationError(e, "error instantiating class " + className); - } + } } } while (className == null && count < 3); @@ -116,7 +116,7 @@ public abstract class TransformerFactory throw new TransformerFactoryConfigurationError(e); } } - + private static String getFactoryClassName(ClassLoader loader, int attempt) { final String propertyName = "javax.xml.transform.TransformerFactory"; @@ -140,7 +140,7 @@ public abstract class TransformerFactory { return null; } - case 2: + case 2: try { String serviceKey = "/META-INF/services/" + propertyName; @@ -164,19 +164,19 @@ public abstract class TransformerFactory return null; } } - + /** * Creates a new transformer using the specified stylesheet. * @param source the source of an <a href='http://www.w3.org/TR/xslt'>XSLT * stylesheet</a> specifying the transformation to apply */ - public abstract Transformer newTransformer(Source source) + public abstract Transformer newTransformer(Source source) throws TransformerConfigurationException; /** * Creates a new transformer that applies the identity transform. */ - public abstract Transformer newTransformer() + public abstract Transformer newTransformer() throws TransformerConfigurationException; /** @@ -184,7 +184,7 @@ public abstract class TransformerFactory * @param source the source of an <a href='http://www.w3.org/TR/xslt'>XSLT * stylesheet</a> specifying the transformation to apply */ - public abstract Templates newTemplates(Source source) + public abstract Templates newTemplates(Source source) throws TransformerConfigurationException; /** @@ -201,10 +201,10 @@ public abstract class TransformerFactory * @param charset the charset attribute to match, or <code>null</code> to * match any */ - public abstract Source getAssociatedStylesheet(Source source, + public abstract Source getAssociatedStylesheet(Source source, String media, String title, - String charset) + String charset) throws TransformerConfigurationException; /** @@ -265,14 +265,14 @@ public abstract class TransformerFactory * @param name the attribute name * @exception IllegalArgumentException if the attribute is not supported */ - public abstract Object getAttribute(String name) + public abstract Object getAttribute(String name) throws IllegalArgumentException; /** * Sets the callback to be used by transformers obtained from this factory * to report transformation errors. */ - public abstract void setErrorListener(ErrorListener listener) + public abstract void setErrorListener(ErrorListener listener) throws IllegalArgumentException; /** diff --git a/libjava/classpath/javax/xml/transform/TransformerFactoryConfigurationError.java b/libjava/classpath/javax/xml/transform/TransformerFactoryConfigurationError.java index 82afeeac750..45e3d3928bf 100644 --- a/libjava/classpath/javax/xml/transform/TransformerFactoryConfigurationError.java +++ b/libjava/classpath/javax/xml/transform/TransformerFactoryConfigurationError.java @@ -1,4 +1,4 @@ -/* TransformerFactoryConfigurationError.java -- +/* TransformerFactoryConfigurationError.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,7 +45,7 @@ public class TransformerFactoryConfigurationError extends Error { private static final long serialVersionUID = -6527718720676281516L; - + // Name is fixed by the serialization spec. private final Exception exception; @@ -102,5 +102,5 @@ public class TransformerFactoryConfigurationError { return exception; } - + } diff --git a/libjava/classpath/javax/xml/transform/URIResolver.java b/libjava/classpath/javax/xml/transform/URIResolver.java index a3d8e8f41ce..e6315bba490 100644 --- a/libjava/classpath/javax/xml/transform/URIResolver.java +++ b/libjava/classpath/javax/xml/transform/URIResolver.java @@ -1,4 +1,4 @@ -/* URIResolver.java -- +/* URIResolver.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,7 @@ package javax.xml.transform; /** * Callback that can resolve a URI into source XML for transformation. * Equivalent to the SAX EntityResolver. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public interface URIResolver diff --git a/libjava/classpath/javax/xml/transform/dom/DOMLocator.java b/libjava/classpath/javax/xml/transform/dom/DOMLocator.java index 7f237065968..acea08e5776 100644 --- a/libjava/classpath/javax/xml/transform/dom/DOMLocator.java +++ b/libjava/classpath/javax/xml/transform/dom/DOMLocator.java @@ -1,4 +1,4 @@ -/* DOMLocator.java -- +/* DOMLocator.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/dom/DOMResult.java b/libjava/classpath/javax/xml/transform/dom/DOMResult.java index 6656f42d4f3..7577f2d98a5 100644 --- a/libjava/classpath/javax/xml/transform/dom/DOMResult.java +++ b/libjava/classpath/javax/xml/transform/dom/DOMResult.java @@ -1,4 +1,4 @@ -/* DOMResult.java -- +/* DOMResult.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -87,7 +87,7 @@ public class DOMResult { this(node, nextSibling, null); } - + /** * Constructor with the node to append to and the system ID. */ @@ -95,7 +95,7 @@ public class DOMResult { this(node, null, systemID); } - + /** * Constructor with the node to append to, the child node before which * the result should be appended, and the system ID. diff --git a/libjava/classpath/javax/xml/transform/dom/DOMSource.java b/libjava/classpath/javax/xml/transform/dom/DOMSource.java index 2321496dd23..5922665a0e3 100644 --- a/libjava/classpath/javax/xml/transform/dom/DOMSource.java +++ b/libjava/classpath/javax/xml/transform/dom/DOMSource.java @@ -1,4 +1,4 @@ -/* DOMSource.java -- +/* DOMSource.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -42,7 +42,7 @@ import org.w3c.dom.Node; /** * An XML source specified as a W3C DOM node context. - * + * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) */ public class DOMSource diff --git a/libjava/classpath/javax/xml/transform/sax/SAXResult.java b/libjava/classpath/javax/xml/transform/sax/SAXResult.java index ea6b8dd4bbf..265b9512c3b 100644 --- a/libjava/classpath/javax/xml/transform/sax/SAXResult.java +++ b/libjava/classpath/javax/xml/transform/sax/SAXResult.java @@ -1,4 +1,4 @@ -/* SAXResult.java -- +/* SAXResult.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -49,7 +49,7 @@ import org.xml.sax.ext.LexicalHandler; */ public class SAXResult implements Result { - + /** * Factory feature indicating that SAX results are supported. */ @@ -102,7 +102,7 @@ public class SAXResult implements Result { lexicalHandler = handler; } - + /** * Returns the lexical handler to which lexical events will be propagated. * If a lexical handler is not set, the transformer should attempt to cast diff --git a/libjava/classpath/javax/xml/transform/sax/SAXSource.java b/libjava/classpath/javax/xml/transform/sax/SAXSource.java index 4b1f5ee2a26..1ef4b73910a 100644 --- a/libjava/classpath/javax/xml/transform/sax/SAXSource.java +++ b/libjava/classpath/javax/xml/transform/sax/SAXSource.java @@ -1,4 +1,4 @@ -/* SAXSource.java -- +/* SAXSource.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/sax/SAXTransformerFactory.java b/libjava/classpath/javax/xml/transform/sax/SAXTransformerFactory.java index 8508777d2b4..2e371376050 100644 --- a/libjava/classpath/javax/xml/transform/sax/SAXTransformerFactory.java +++ b/libjava/classpath/javax/xml/transform/sax/SAXTransformerFactory.java @@ -1,4 +1,4 @@ -/* SAXTransformerFactory.java -- +/* SAXTransformerFactory.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/sax/TemplatesHandler.java b/libjava/classpath/javax/xml/transform/sax/TemplatesHandler.java index ae8e6640ea2..86d46aceb1d 100644 --- a/libjava/classpath/javax/xml/transform/sax/TemplatesHandler.java +++ b/libjava/classpath/javax/xml/transform/sax/TemplatesHandler.java @@ -1,4 +1,4 @@ -/* TemplatesHandler.java -- +/* TemplatesHandler.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/sax/TransformerHandler.java b/libjava/classpath/javax/xml/transform/sax/TransformerHandler.java index f31c3f8defe..aae56e2a9dc 100644 --- a/libjava/classpath/javax/xml/transform/sax/TransformerHandler.java +++ b/libjava/classpath/javax/xml/transform/sax/TransformerHandler.java @@ -1,4 +1,4 @@ -/* TransformerHandler.java -- +/* TransformerHandler.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -51,12 +51,12 @@ import org.xml.sax.ext.LexicalHandler; public interface TransformerHandler extends ContentHandler, LexicalHandler, DTDHandler { - + /** * Sets the result sink to be used as the output of the transformation. * @exception IllegalArgumentException if the result is not a valid target */ - public void setResult(Result result) + public void setResult(Result result) throws IllegalArgumentException; /** diff --git a/libjava/classpath/javax/xml/transform/stream/StreamResult.java b/libjava/classpath/javax/xml/transform/stream/StreamResult.java index 8fbf3a3653d..b44e6ce5869 100644 --- a/libjava/classpath/javax/xml/transform/stream/StreamResult.java +++ b/libjava/classpath/javax/xml/transform/stream/StreamResult.java @@ -1,4 +1,4 @@ -/* StreamResult.java -- +/* StreamResult.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/transform/stream/StreamSource.java b/libjava/classpath/javax/xml/transform/stream/StreamSource.java index 65e2c70789d..def73d8c0a9 100644 --- a/libjava/classpath/javax/xml/transform/stream/StreamSource.java +++ b/libjava/classpath/javax/xml/transform/stream/StreamSource.java @@ -1,4 +1,4 @@ -/* StreamSource.java -- +/* StreamSource.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/validation/Schema.java b/libjava/classpath/javax/xml/validation/Schema.java index 46926c8c89a..1329eabf242 100644 --- a/libjava/classpath/javax/xml/validation/Schema.java +++ b/libjava/classpath/javax/xml/validation/Schema.java @@ -1,4 +1,4 @@ -/* Schema.java -- +/* Schema.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -57,5 +57,5 @@ public abstract class Schema public abstract Validator newValidator(); public abstract ValidatorHandler newValidatorHandler(); - + } diff --git a/libjava/classpath/javax/xml/validation/SchemaFactory.java b/libjava/classpath/javax/xml/validation/SchemaFactory.java index 0b83b6f4d4d..1c099bbe284 100644 --- a/libjava/classpath/javax/xml/validation/SchemaFactory.java +++ b/libjava/classpath/javax/xml/validation/SchemaFactory.java @@ -1,4 +1,4 @@ -/* SchemaFactory.java -- +/* SchemaFactory.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -188,33 +188,33 @@ public abstract class SchemaFactory { throw new SAXNotRecognizedException(name); } - + public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public abstract ErrorHandler getErrorHandler(); - + public abstract void setErrorHandler(ErrorHandler errorHandler); public abstract LSResourceResolver getResourceResolver(); public abstract void setResourceResolver(LSResourceResolver resourceResolver); - + /** * Returns a schema based on the specified source resource. * @param schema the source resource @@ -234,7 +234,7 @@ public abstract class SchemaFactory { return newSchema(new StreamSource(schema)); } - + /** * Returns a schema based on the specified URL. * @param schema the source resource @@ -244,7 +244,7 @@ public abstract class SchemaFactory { return newSchema(new StreamSource(schema.toString())); } - + /** * Parses the specified sources, and combine them into a single schema. * The exact procedure and semantics of this depends on the schema @@ -253,12 +253,12 @@ public abstract class SchemaFactory */ public abstract Schema newSchema(Source[] schemata) throws SAXException; - + /** * Creates a special schema. * The exact semantics of this depends on the schema language. */ public abstract Schema newSchema() throws SAXException; - + } diff --git a/libjava/classpath/javax/xml/validation/SchemaFactoryLoader.java b/libjava/classpath/javax/xml/validation/SchemaFactoryLoader.java index dc80a33ccab..7d60138351e 100644 --- a/libjava/classpath/javax/xml/validation/SchemaFactoryLoader.java +++ b/libjava/classpath/javax/xml/validation/SchemaFactoryLoader.java @@ -1,4 +1,4 @@ -/* SchemaFactory.java -- +/* SchemaFactory.java -- Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -48,5 +48,5 @@ public abstract class SchemaFactoryLoader } public abstract SchemaFactory newFactory(String schemaLanguage); - + } diff --git a/libjava/classpath/javax/xml/validation/TypeInfoProvider.java b/libjava/classpath/javax/xml/validation/TypeInfoProvider.java index 99bf2832fb6..c8bb227ec90 100644 --- a/libjava/classpath/javax/xml/validation/TypeInfoProvider.java +++ b/libjava/classpath/javax/xml/validation/TypeInfoProvider.java @@ -1,4 +1,4 @@ -/* TypeInfoProvider.java -- +/* TypeInfoProvider.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -79,5 +79,5 @@ public abstract class TypeInfoProvider * the startElement callback */ public abstract boolean isSpecified(int index); - + } diff --git a/libjava/classpath/javax/xml/validation/Validator.java b/libjava/classpath/javax/xml/validation/Validator.java index 4a96fc13a1f..f12401a687c 100644 --- a/libjava/classpath/javax/xml/validation/Validator.java +++ b/libjava/classpath/javax/xml/validation/Validator.java @@ -1,4 +1,4 @@ -/* Validator.java -- +/* Validator.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -81,7 +81,7 @@ public abstract class Validator */ public abstract void validate(Source source, Result result) throws SAXException, IOException; - + public abstract void setErrorHandler(ErrorHandler errorHandler); public abstract ErrorHandler getErrorHandler(); @@ -95,23 +95,23 @@ public abstract class Validator { throw new SAXNotRecognizedException(name); } - + public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + } diff --git a/libjava/classpath/javax/xml/validation/ValidatorHandler.java b/libjava/classpath/javax/xml/validation/ValidatorHandler.java index 50cd1516542..639086bbfad 100644 --- a/libjava/classpath/javax/xml/validation/ValidatorHandler.java +++ b/libjava/classpath/javax/xml/validation/ValidatorHandler.java @@ -1,4 +1,4 @@ -/* ValidatorHandler.java -- +/* ValidatorHandler.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -73,7 +73,7 @@ public abstract class ValidatorHandler public abstract void setErrorHandler(ErrorHandler errorHandler); public abstract ErrorHandler getErrorHandler(); - + public abstract void setResourceResolver(LSResourceResolver resourceResolver); public abstract LSResourceResolver getResourceResolver(); @@ -89,7 +89,7 @@ public abstract class ValidatorHandler } throw new SAXNotRecognizedException(name); } - + public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { @@ -99,17 +99,17 @@ public abstract class ValidatorHandler } throw new SAXNotRecognizedException(name); } - + public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { throw new SAXNotRecognizedException(name); } - + } diff --git a/libjava/classpath/javax/xml/xpath/XPath.java b/libjava/classpath/javax/xml/xpath/XPath.java index 1bcfa63d22c..eb652b1aec7 100644 --- a/libjava/classpath/javax/xml/xpath/XPath.java +++ b/libjava/classpath/javax/xml/xpath/XPath.java @@ -1,4 +1,4 @@ -/* XPath.java -- +/* XPath.java -- Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -111,5 +111,5 @@ public interface XPath String evaluate(String expression, InputSource source) throws XPathExpressionException; - + } diff --git a/libjava/classpath/javax/xml/xpath/XPathConstants.java b/libjava/classpath/javax/xml/xpath/XPathConstants.java index fbfb9998118..9c39db9f3bd 100644 --- a/libjava/classpath/javax/xml/xpath/XPathConstants.java +++ b/libjava/classpath/javax/xml/xpath/XPathConstants.java @@ -1,4 +1,4 @@ -/* XPathConstants.java -- +/* XPathConstants.java -- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -57,25 +57,25 @@ public class XPathConstants */ public static final QName NUMBER = new QName("http://java.sun.com/jaxp/xpath/dom#number", ""); - + /** * The XPath 1.0 string data type. */ public static final QName STRING = new QName("http://java.sun.com/jaxp/xpath/dom#string", ""); - + /** * The XPath 1.0 boolean data type. */ public static final QName BOOLEAN = new QName("http://java.sun.com/jaxp/xpath/dom#boolean", ""); - + /** * The XPath 1.0 node-set data type. */ public static final QName NODESET = new QName("http://java.sun.com/jaxp/xpath/dom#node-set", ""); - + /** * The XPath 1.0 node data type. */ @@ -87,5 +87,5 @@ public class XPathConstants */ public static final String DOM_OBJECT_MODEL = "http://java.sun.com/jaxp/xpath/dom"; - + } diff --git a/libjava/classpath/javax/xml/xpath/XPathException.java b/libjava/classpath/javax/xml/xpath/XPathException.java index cf004c1791e..7d45fa747d1 100644 --- a/libjava/classpath/javax/xml/xpath/XPathException.java +++ b/libjava/classpath/javax/xml/xpath/XPathException.java @@ -1,4 +1,4 @@ -/* XPathException.java -- +/* XPathException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,7 +58,7 @@ public class XPathException { super(message); } - + public XPathException(Throwable cause) { super(cause); diff --git a/libjava/classpath/javax/xml/xpath/XPathExpression.java b/libjava/classpath/javax/xml/xpath/XPathExpression.java index 9ead27b8f26..89c6494c22b 100644 --- a/libjava/classpath/javax/xml/xpath/XPathExpression.java +++ b/libjava/classpath/javax/xml/xpath/XPathExpression.java @@ -1,4 +1,4 @@ -/* XPathExpression.java -- +/* XPathExpression.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/xpath/XPathExpressionException.java b/libjava/classpath/javax/xml/xpath/XPathExpressionException.java index 6257adb474b..5435704853c 100644 --- a/libjava/classpath/javax/xml/xpath/XPathExpressionException.java +++ b/libjava/classpath/javax/xml/xpath/XPathExpressionException.java @@ -1,4 +1,4 @@ -/* XPathExpressionException.java -- +/* XPathExpressionException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/xpath/XPathFactory.java b/libjava/classpath/javax/xml/xpath/XPathFactory.java index 76a88a10cec..62c17154ace 100644 --- a/libjava/classpath/javax/xml/xpath/XPathFactory.java +++ b/libjava/classpath/javax/xml/xpath/XPathFactory.java @@ -1,4 +1,4 @@ -/* XPathFactory.java -- +/* XPathFactory.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -58,7 +58,7 @@ public abstract class XPathFactory * The default property name according to the JAXP specification. */ public static final String DEFAULT_PROPERTY_NAME = - "javax.xml.xpath.XPathFactory"; + "javax.xml.xpath.XPathFactory"; /** * The default object model URI. @@ -223,5 +223,5 @@ public abstract class XPathFactory * Returns a new XPath evaluation environment. */ public abstract XPath newXPath(); - + } diff --git a/libjava/classpath/javax/xml/xpath/XPathFactoryConfigurationException.java b/libjava/classpath/javax/xml/xpath/XPathFactoryConfigurationException.java index 0fc68a7634b..929cbe64bb2 100644 --- a/libjava/classpath/javax/xml/xpath/XPathFactoryConfigurationException.java +++ b/libjava/classpath/javax/xml/xpath/XPathFactoryConfigurationException.java @@ -1,4 +1,4 @@ -/* XPathFactoryConfigurationException.java -- +/* XPathFactoryConfigurationException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/xpath/XPathFunction.java b/libjava/classpath/javax/xml/xpath/XPathFunction.java index dbda11bfe6c..4406e318c89 100644 --- a/libjava/classpath/javax/xml/xpath/XPathFunction.java +++ b/libjava/classpath/javax/xml/xpath/XPathFunction.java @@ -1,4 +1,4 @@ -/* XPathFunction.java -- +/* XPathFunction.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -55,5 +55,5 @@ public interface XPathFunction @SuppressWarnings("unchecked") Object evaluate(List args) throws XPathFunctionException; - + } diff --git a/libjava/classpath/javax/xml/xpath/XPathFunctionException.java b/libjava/classpath/javax/xml/xpath/XPathFunctionException.java index db680ae65da..c1d3b98cd0a 100644 --- a/libjava/classpath/javax/xml/xpath/XPathFunctionException.java +++ b/libjava/classpath/javax/xml/xpath/XPathFunctionException.java @@ -1,4 +1,4 @@ -/* XPathFunctionException.java -- +/* XPathFunctionException.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. diff --git a/libjava/classpath/javax/xml/xpath/XPathFunctionResolver.java b/libjava/classpath/javax/xml/xpath/XPathFunctionResolver.java index 208f432166e..e896690e6ab 100644 --- a/libjava/classpath/javax/xml/xpath/XPathFunctionResolver.java +++ b/libjava/classpath/javax/xml/xpath/XPathFunctionResolver.java @@ -1,4 +1,4 @@ -/* XPathFunctionResolver.java -- +/* XPathFunctionResolver.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -55,5 +55,5 @@ public interface XPathFunctionResolver */ XPathFunction resolveFunction(QName functionName, int arity); - + } diff --git a/libjava/classpath/javax/xml/xpath/XPathVariableResolver.java b/libjava/classpath/javax/xml/xpath/XPathVariableResolver.java index 35226894aad..2da4a6e635b 100644 --- a/libjava/classpath/javax/xml/xpath/XPathVariableResolver.java +++ b/libjava/classpath/javax/xml/xpath/XPathVariableResolver.java @@ -1,4 +1,4 @@ -/* XPathVariableResolver.java -- +/* XPathVariableResolver.java -- Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -48,5 +48,5 @@ public interface XPathVariableResolver { Object resolveVariable(QName variableName); - + } |