Lines Matching refs:Writer

5 …(typedef of `GenericReader<...>`) is the SAX-style parser for JSON, and `Writer` (typedef of `Gene…
176 # Writer {#Writer}
178 `Reader` converts (parses) JSON into events. `Writer` does exactly the opposite. It converts events…
180Writer` is very easy to use. If your application only need to converts some data into JSON, it may…
194 Writer<StringBuffer> writer(s);
226 …dArray()` and `EndObject()`. An `SizeType` can be passed but it will be simply ignored by `Writer`.
231 1. `Writer` must output a well-formed JSON. If there is incorrect event sequence (e.g. `Int()` just…
232 2. `Writer::String()` can handle string escaping (e.g. converting code point `U+000A` to `\n`) and …
233 3. `Writer` handles number output consistently.
234 4. `Writer` implements the event handler concept. It can be used to handle events from `Reader`, `D…
235 5. `Writer` can be optimized for different platforms.
237 Anyway, using `Writer` API is even simpler than generating a JSON by ad hoc methods.
241 `Writer` has a minor design difference to `Reader`. `Writer` is a template class, not a typedef. Th…
247 class Writer {
249 Writer(OutputStream& os, Allocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth)
264 Besides, the constructor of `Writer` has a `levelDepth` parameter. This parameter affects the initi…
268 While the output of `Writer` is the most condensed JSON without white-spaces, suitable for network …
272 The usage of `PrettyWriter` is exactly the same as `Writer`, expect that `PrettyWriter` provides a …
276Writer` can only output a single JSON, which can be any JSON type at the root. Once the singular e…
278Writer` cannot accept any new events. Otherwise the output will be invalid (i.e. having more than …
395Writer` can handle the events published by `Reader`. `condense` example simply set a `Writer` as h…
447 Writer<FileWriteStream> writer(os);
450 CapitalizeFilter<Writer<FileWriteStream> > filter(writer);