예제 #1
0
 private IonLoader(ReaderOptions options)
 {
     this.readerOptions = options;
 }
예제 #2
0
 public static IIonReader Build(IIonValue value, ReaderOptions options = default)
 {
     return(new UserTreeReader(value, options.Catalog));
 }
예제 #3
0
 public static IIonReader Build(byte[] data, ReaderOptions options = default)
 {
     return(Build(new MemoryStream(data), options));
 }
예제 #4
0
 /// <summary>
 /// Build a text reader for the string with a catalog.
 /// </summary>
 /// <param name="text">Ion text</param>
 /// <param name="options">Reader options.</param>
 /// <returns>Ion text reader</returns>
 public static IIonReader Build(string text, ReaderOptions options = default)
 {
     return(new UserTextReader(text, options.Catalog));
 }