Exemplo n.º 1
0
 /// <summary>
 /// Build an Ion text writer that writes to the output stream
 /// </summary>
 /// <param name="outputStream">Output stream</param>
 /// <returns>Ion text writer</returns>
 public static IIonWriter Build(Stream outputStream, IonTextOptions options)
 {
     outputStream.CheckStreamCanWrite();
     return(Build(new StreamWriter(outputStream), options));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Build an Ion text writer
 /// </summary>
 /// <param name="textWriter">Writer that can write to the output</param>
 /// <param name="options">Text writer options</param>
 /// <param name="imports">Symbol tables that the write can use to encode symbols.</param>
 /// <returns>Ion text writer</returns>
 public static IIonWriter Build(TextWriter textWriter, IonTextOptions options, IEnumerable <ISymbolTable> imports = null)
 {
     return(new IonTextWriter(textWriter, options, imports));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Build an Ion text writer
 /// </summary>
 /// <param name="textWriter">Writer that can write to the output</param>
 /// <param name="options">Text writer options</param>
 /// <returns>Ion text writer</returns>
 public static IIonWriter Build(TextWriter textWriter, IonTextOptions options)
 {
     return(new IonTextWriter(textWriter, options));
 }