KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.icl.saxon.output;
2 import javax.xml.transform.OutputKeys JavaDoc;
3 import java.util.Properties JavaDoc;
4
5 /**
6 * TextFragment is used when we want to send output
7 * to a StringWriter and retrieve it later.
8 */

9
10 public class TextFragment {
11
12     private static Properties JavaDoc props = new Properties JavaDoc();
13     static {
14         props.put(OutputKeys.METHOD, "text");
15         props.put(OutputKeys.INDENT, "no");
16     }
17
18     /**
19     * Construct a default TextFragment object
20     */

21     
22     public static Properties JavaDoc getProperties() {
23         return props;
24     }
25 }
26
27 //
28
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
29
// you may not use this file except in compliance with the License. You may obtain a copy of the
30
// License at http://www.mozilla.org/MPL/
31
//
32
// Software distributed under the License is distributed on an "AS IS" basis,
33
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
34
// See the License for the specific language governing rights and limitations under the License.
35
//
36
// The Original Code is: all this file.
37
//
38
// The Initial Developer of the Original Code is
39
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
40
//
41
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
42
//
43
// Contributor(s): none.
44
//
45
Popular Tags