KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > event > MessageEmitter


1 package net.sf.saxon.event;
2 import net.sf.saxon.trans.DynamicError;
3 import net.sf.saxon.trans.XPathException;
4
5
6 /**
7   * MessageEmitter is the default Emitter for xsl:message output.
8   * It is the same as XMLEmitter except for an extra newline at the end of the message
9   */

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