Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


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

Interpreting class diagrams

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

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

Apache Logo