Beispiel #1
0
 /// <summary>
 /// looks up a format by name </summary>
 public static DocValuesFormat ForName(string name)
 {
     if (Loader == null)
     {
         throw new InvalidOperationException("You called DocValuesFormat.forName() before all formats could be initialized. " + "this likely happens if you call it from a DocValuesFormat's ctor.");
     }
     return(Loader.Lookup(name));
 }
Beispiel #2
0
 /// <summary>
 /// looks up a codec by name </summary>
 public static Codec ForName(string name)
 {
     if (Loader == null)
     {
         throw new InvalidOperationException("You called Codec.ForName() before all Codecs could be initialized. This likely happens if you call it from a Codec's ctor.");
     }
     return(Loader.Lookup(name));
 }