Skip to content

JSONFormatterStreamer

robbyxp1 edited this page Feb 13, 2024 · 4 revisions

JSONFormatterStreamer Class

Using Fluent syntax stream tokens to a stream, quick and easy way to make a JSON file without needing to hold the whole structure in memory

public class JSONFormatterStreamer : QuickJSON.JSONFormatter,
System.IDisposable

Inheritance System.Object 🡒 JSONFormatter 🡒 JSONFormatterStreamer

Implements System.IDisposable


Constructors


JSONFormatterStreamer.JSONFormatterStreamer(Stream, int, Encoding) Constructor

Construct

public JSONFormatterStreamer(System.IO.Stream stream, int writeblock=1000, System.Text.Encoding encoding=null);
Parameters

stream System.IO.Stream
stream to write to

writeblock System.Int32
length of data before write

encoding System.Text.Encoding
character encoding (default UTF8)


Methods


JSONFormatterStreamer.Dispose() Method

Close() and then write all of the data to the stream

public void Dispose();

Implements Dispose()


JSONFormatterStreamer.Prefix(bool) Method

Internal prefix function

protected override void Prefix(bool named);
Parameters

named System.Boolean
is named parameter