/// <summary> /// Create a Serializer /// </summary> /// <returns> a new Serializer </returns> public Serializer NewSerializer() { Serializer s = new Serializer(); s.SetProcessor(this); return(s); }
/// <summary> /// Create a Serializer initialized to write to a given OutputStream. /// Closing the output stream after use is the responsibility of the caller. /// </summary> /// <param name="stream">stream The OutputStream to which the Serializer will write</param> /// <returns> a new Serializer </returns> public Serializer NewSerializer(Stream stream) { Serializer s = new Serializer(); s.SetProcessor(this); s.SetOutputStream(stream); return(s); }
/// <summary> /// Create a Serializer initialized to write to a given Writer. /// Closing the writer after use is the responsibility of the caller. /// </summary> /// <param name="textWriter">writer The TextWriter to which the Serializer will write</param> /// <returns> a new Serializer </returns> public Serializer NewSerializer(TextWriter textWriter) { Serializer s = new Serializer(); s.SetProcessor(this); s.SetOutputWriter(textWriter); return(s); }