Xalan-C++ API Reference  1.12.0
NullPrintWriter.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(NULLPRINTWRITER_HEADER_GUARD_1357924680)
19 #define NULLPRINTWRITER_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
28 // Base class header file.
30 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
38 {
39 public:
40 
41  explicit
42  NullPrintWriter(MemoryManager& theManager);
43 
44  virtual
46 
47  // Functions inherited from PrintWriter...
48 
49  virtual bool
50  checkError() const;
51 
52  virtual void
53  close();
54 
55  virtual void
56  flush();
57 
58  virtual void
60  const char* s,
61  size_t theOffset = 0,
62  size_t theLength = npos);
63 
64  virtual void
66  const XalanDOMChar* s,
67  XalanDOMString::size_type theOffset = 0,
68  XalanDOMString::size_type theLength = XalanDOMString::npos);
69 
70  virtual void
71  write(XalanDOMChar c);
72 
73  virtual void
75  const XalanDOMString& s,
76  XalanDOMString::size_type theOffset = 0,
77  XalanDOMString::size_type theLength = XalanDOMString::npos);
78 
79 #if !defined(XALAN_BOOL_AS_INT)
80  virtual void
81  print(bool b);
82 #endif
83 
84  virtual void
85  print(char c);
86 
87  virtual void
89  const char* s,
90  size_t theLength = npos);
91 
92  virtual void
94  const XalanDOMChar* s,
95  XalanDOMString::size_type theLength = XalanDOMString::npos);
96 
97  virtual void
98  print(double d);
99 
100  virtual void
101  print(int i);
102 
103  virtual void
104  print(long l);
105 
106  virtual void
108 
109  virtual void
111 
112 #if !defined(XALAN_BOOL_AS_INT)
113  virtual void
114  println(bool x);
115 #endif
116 
117  virtual void
118  println(char x);
119 
120  virtual void
122  const char* s,
123  size_t theLength = npos);
124 
125  virtual void
127  const XalanDOMChar* s,
128  XalanDOMString::size_type theLength = XalanDOMString::npos);
129 
130  virtual void
131  println(double x);
132 
133  virtual void
134  println(int x);
135 
136  virtual void
137  println(long x);
138 
139  virtual void
141 
142 private:
143 
144  // Not implemented
146 
148  operator=(const NullPrintWriter&);
149 
150  bool
151  operator==(const NullPrintWriter&);
152 };
153 
154 
155 
156 }
157 
158 
159 
160 #endif // NULLPRINTWRITER_HEADER_GUARD_1357924680
#define XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual void write(const char *s, size_t theOffset=0, size_t theLength=npos)
Writes a string.
virtual void print(long l)
virtual void print(double d)
virtual void println(char x)
virtual void println(long x)
virtual void write(const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
Writes a string.
virtual void print(const XalanDOMString &s)
virtual void print(const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual void println(double x)
virtual void println(int x)
virtual void println()
virtual void close()
Close the stream.
virtual void write(XalanDOMChar c)
Writes a character.
virtual void println(const char *s, size_t theLength=npos)
virtual void print(int i)
virtual void write(const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
Writes a string.
virtual void println(const XalanDOMString &s)
virtual void println(const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual void flush()
Flush the stream.
virtual void print(const char *s, size_t theLength=npos)
NullPrintWriter(MemoryManager &theManager)
virtual void print(bool b)
virtual void print(char c)
virtual bool checkError() const
Flush the stream, then check the error status.
virtual void println(bool x)
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)