Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanOutputStreamPrintWriter.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANOUTPUTSTREAMPRINTWRITER_HEADER_GUARD_1357924680)
17 #define XALANOUTPUTSTREAMPRINTWRITER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
38 class XalanOutputStream;
39 
40 
41 
43 {
44 public:
45 
53  XalanOutputStream& theOutputStream,
54  bool fAutoFlush = false);
55 
57  create(
58  XalanOutputStream& theOutputStream,
59  bool fAutoFlush = false);
60 
61  virtual
63 
64 
65  virtual bool
66  checkError() const;
67 
68  virtual void
69  close();
70 
71  virtual void
72  flush();
73 
74  virtual XalanOutputStream*
75  getStream();
76 
77  virtual const XalanOutputStream*
78  getStream() const;
79 
80 
81  virtual void
82  write(
83  const char* s,
84  size_t theOffset = 0,
85  size_t theLength = npos);
86 
87  virtual void
88  write(
89  const XalanDOMChar* s,
90  XalanDOMString::size_type theOffset = 0,
92 
93  virtual void
94  write(XalanDOMChar c);
95 
96  virtual void
97  write(
98  const XalanDOMString& s,
99  XalanDOMString::size_type theOffset = 0,
101 
102 #if !defined(XALAN_BOOL_AS_INT)
103  virtual void
104  print(bool b);
105 #endif
106 
107  virtual void
108  print(char c);
109 
110  virtual void
111  print(
112  const char* s,
113  size_t theLength = npos);
114 
115  virtual void
116  print(
117  const XalanDOMChar* s,
119 
120  virtual void
121  print(double d);
122 
123  virtual void
124  print(int i);
125 
126  virtual void
127  print(long l);
128 
129  virtual void
130  print(const XalanDOMString& s);
131 
132  virtual void
133  println();
134 
135 #if !defined(XALAN_BOOL_AS_INT)
136  virtual void
137  println(bool x);
138 #endif
139 
140  virtual void
141  println(char x);
142 
143  virtual void
144  println(
145  const char* s,
146  size_t theLength = npos);
147 
148  virtual void
149  println(
150  const XalanDOMChar* s,
152 
153  virtual void
154  println(double x);
155 
156  virtual void
157  println(int x);
158 
159  virtual void
160  println(long x);
161 
162  virtual void
163  println(const XalanDOMString& s);
164 
165 private:
166 
167  void
168  flushWideChars();
169 
170 
171  // Not implemented
173 
175  operator=(const XalanOutputStreamPrintWriter&);
176 
177  bool
179 
180  // Data members...
181  XalanOutputStream& m_outputStream;
182 
183  XalanDOMString m_buffer;
184 
185  bool m_flushWideChars;
186 };
187 
188 
189 
190 XALAN_CPP_NAMESPACE_END
191 
192 
193 
194 #endif // XALANOUTPUTSTREAMPRINTWRITER_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo