1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Copyright 2003-2004 The Apache Software Foundation. 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 /* 21 * $Id: EmptySerializer.java,v 1.2.4.1 2005/09/15 08:15:16 suresh_emailid Exp $ 22 */ 23 package com.sun.org.apache.xml.internal.serializer; 24 25 import java.io.IOException; 26 import java.io.OutputStream; 27 import java.io.Writer; 28 import java.util.Hashtable; 29 import java.util.Properties; 30 import java.util.Vector; 31 32 import javax.xml.transform.SourceLocator; 33 import javax.xml.transform.Transformer; 34 35 import org.w3c.dom.Node; 36 import org.xml.sax.Attributes; 37 import org.xml.sax.ContentHandler; 38 import org.xml.sax.Locator; 39 import org.xml.sax.SAXException; 40 import org.xml.sax.SAXParseException; 41 42 /** 43 * This class is an adapter class. Its only purpose is to be extended and 44 * for that extended class to over-ride all methods that are to be used. 45 * 46 * This class is not a public API, it is only public because it is used 47 * across package boundaries. 48 * 49 * @xsl.usage internal 50 */ 133 { 134 aMethodIsCalled(); 135 return null; 136 } 137 /** 138 * @see SerializationHandler#reset() 139 */ 140 public boolean reset() 141 { 142 aMethodIsCalled(); 143 return false; 144 } 145 /** 146 * @see SerializationHandler#serialize(org.w3c.dom.Node) 147 */ 148 public void serialize(Node node) throws IOException 149 { 150 couldThrowIOException(); 151 } 152 /** 153 * @see SerializationHandler#setCdataSectionElements(java.util.Vector) 154 */ 155 public void setCdataSectionElements(Vector URI_and_localNames) 156 { 157 aMethodIsCalled(); 158 } 159 /** 160 * @see SerializationHandler#setEscaping(boolean) 161 */ 162 public boolean setEscaping(boolean escape) throws SAXException 163 { 164 couldThrowSAXException(); 165 return false; 166 } 167 /** 168 * @see SerializationHandler#setIndent(boolean) 169 */ 170 public void setIndent(boolean indent) 171 { 172 aMethodIsCalled(); 173 } 174 /** 175 * @see SerializationHandler#setIndentAmount(int) 745 } 746 747 /** 748 * @see org.xml.sax.DTDHandler#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String) 749 */ 750 public void unparsedEntityDecl( 751 String arg0, 752 String arg1, 753 String arg2, 754 String arg3) 755 throws SAXException { 756 couldThrowSAXException(); 757 } 758 759 /** 760 * @see SerializationHandler#setDTDEntityExpansion(boolean) 761 */ 762 public void setDTDEntityExpansion(boolean expand) { 763 aMethodIsCalled(); 764 765 } 766 } | 1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the "License"); 11 * you may not use this file except in compliance with the License. 12 * You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, software 17 * distributed under the License is distributed on an "AS IS" BASIS, 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 * See the License for the specific language governing permissions and 20 * limitations under the License. 21 */ 22 /* 23 * $Id: EmptySerializer.java,v 1.2.4.1 2005/09/15 08:15:16 suresh_emailid Exp $ 24 */ 25 package com.sun.org.apache.xml.internal.serializer; 26 27 import java.io.IOException; 28 import java.io.OutputStream; 29 import java.io.Writer; 30 import java.util.Hashtable; 31 import java.util.Properties; 32 import java.util.ArrayList; 33 34 import javax.xml.transform.SourceLocator; 35 import javax.xml.transform.Transformer; 36 37 import org.w3c.dom.Node; 38 import org.xml.sax.Attributes; 39 import org.xml.sax.ContentHandler; 40 import org.xml.sax.Locator; 41 import org.xml.sax.SAXException; 42 import org.xml.sax.SAXParseException; 43 44 /** 45 * This class is an adapter class. Its only purpose is to be extended and 46 * for that extended class to over-ride all methods that are to be used. 47 * 48 * This class is not a public API, it is only public because it is used 49 * across package boundaries. 50 * 51 * @xsl.usage internal 52 */ 135 { 136 aMethodIsCalled(); 137 return null; 138 } 139 /** 140 * @see SerializationHandler#reset() 141 */ 142 public boolean reset() 143 { 144 aMethodIsCalled(); 145 return false; 146 } 147 /** 148 * @see SerializationHandler#serialize(org.w3c.dom.Node) 149 */ 150 public void serialize(Node node) throws IOException 151 { 152 couldThrowIOException(); 153 } 154 /** 155 * @see SerializationHandler#setCdataSectionElements(java.util.ArrayList<String>) 156 */ 157 public void setCdataSectionElements(ArrayList<String> URI_and_localNames) 158 { 159 aMethodIsCalled(); 160 } 161 /** 162 * @see SerializationHandler#setEscaping(boolean) 163 */ 164 public boolean setEscaping(boolean escape) throws SAXException 165 { 166 couldThrowSAXException(); 167 return false; 168 } 169 /** 170 * @see SerializationHandler#setIndent(boolean) 171 */ 172 public void setIndent(boolean indent) 173 { 174 aMethodIsCalled(); 175 } 176 /** 177 * @see SerializationHandler#setIndentAmount(int) 747 } 748 749 /** 750 * @see org.xml.sax.DTDHandler#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String) 751 */ 752 public void unparsedEntityDecl( 753 String arg0, 754 String arg1, 755 String arg2, 756 String arg3) 757 throws SAXException { 758 couldThrowSAXException(); 759 } 760 761 /** 762 * @see SerializationHandler#setDTDEntityExpansion(boolean) 763 */ 764 public void setDTDEntityExpansion(boolean expand) { 765 aMethodIsCalled(); 766 767 } 768 769 770 public String getOutputProperty(String name) { 771 aMethodIsCalled(); 772 return null; 773 } 774 775 public String getOutputPropertyDefault(String name) { 776 aMethodIsCalled(); 777 return null; 778 } 779 780 public void setOutputProperty(String name, String val) { 781 aMethodIsCalled(); 782 783 } 784 785 public void setOutputPropertyDefault(String name, String val) { 786 aMethodIsCalled(); 787 788 } 789 } |