KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > output > MessageEmitter


1 package com.icl.saxon.output;
2 import org.xml.sax.Attributes JavaDoc;
3 import javax.xml.transform.TransformerException JavaDoc;
4 import java.io.*;
5
6
7 /**
8   * MessageEmitter is the default Emitter for xsl:message output.
9   * It is the same as XMLEmitter except for an extra newline at the end of the message
10   */

11   
12 public class MessageEmitter extends XMLEmitter
13 {
14     public void endDocument() throws TransformerException JavaDoc {
15         try {
16             writer.write('\n');
17         } catch (java.io.IOException JavaDoc err) {
18             throw new TransformerException JavaDoc(err);
19         }
20         super.endDocument();
21     }
22
23 }
24
25 //
26
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
27
// you may not use this file except in compliance with the License. You may obtain a copy of the
28
// License at http://www.mozilla.org/MPL/
29
//
30
// Software distributed under the License is distributed on an "AS IS" basis,
31
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
32
// See the License for the specific language governing rights and limitations under the License.
33
//
34
// The Original Code is: all this file.
35
//
36
// The Initial Developer of the Original Code is
37
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
38
//
39
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
40
//
41
// Contributor(s): none.
42
//
43
Popular Tags