diff options
Diffstat (limited to 'src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java')
-rw-r--r-- | src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java b/src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java index d14c2ea..5492de5 100644 --- a/src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java +++ b/src/com/sun/org/apache/xml/internal/serializer/EmptySerializer.java @@ -1,13 +1,13 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */ /* - * Copyright 2003-2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * @@ -25,13 +25,10 @@ package com.sun.org.apache.xml.internal.serializer; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; -import java.util.Hashtable; import java.util.Properties; import java.util.Vector; - import javax.xml.transform.SourceLocator; import javax.xml.transform.Transformer; - import org.w3c.dom.Node; import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; @@ -39,6 +36,7 @@ import org.xml.sax.Locator; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; + /** * This class is an adapter class. Its only purpose is to be extended and * for that extended class to over-ride all methods that are to be used. @@ -75,11 +73,6 @@ public class EmptySerializer implements SerializationHandler return; // don't do anything. } - protected void couldThrowException() throws Exception - { - return; // don't do anything. - } - void aMethodIsCalled() { @@ -568,13 +561,6 @@ public class EmptySerializer implements SerializationHandler return null; } /** - * @see XSLOutputAttributes#setCdataSectionElements - */ - public void setCdataSectionElements(Hashtable h) throws Exception - { - couldThrowException(); - } - /** * @see XSLOutputAttributes#setDoctype(java.lang.String, java.lang.String) */ public void setDoctype(String system, String pub) |