public static void Main(System.String[] args) { if (args.Length != 1) { System.Console.Out.WriteLine("Usage: ProfileParser profile_file"); System.Environment.Exit(1); } try { System.IO.FileInfo f = new System.IO.FileInfo(args[0]); System.IO.StreamReader in_Renamed = new System.IO.StreamReader(new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).BaseStream, new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).CurrentEncoding); char[] cbuf = new char[(int)SupportClass.FileLength(f)]; in_Renamed.Read(cbuf, 0, (int)SupportClass.FileLength(f)); System.String xml = System.Convert.ToString(cbuf); NuGenProfileParser pp = new NuGenProfileParser(true); RuntimeProfile spec = pp.parse(xml); } catch (System.Exception e) { SupportClass.WriteStackTrace(e, Console.Error); } }
private void InitBlock(System.String grammar, NuGenProfileParser enclosingInstance) { this.grammar = grammar; this.enclosingInstance = enclosingInstance; }
public AnonymousClassEntityResolver(System.String grammar, NuGenProfileParser enclosingInstance) { InitBlock(grammar, enclosingInstance); }
private void InitBlock(NuGenProfileParser enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public AnonymousClassErrorHandler(NuGenProfileParser enclosingInstance) { InitBlock(enclosingInstance); }
public static void Main(System.String[] args) { if (args.Length != 1) { System.Console.Out.WriteLine("Usage: ProfileParser profile_file"); System.Environment.Exit(1); } try { System.IO.FileInfo f = new System.IO.FileInfo(args[0]); System.IO.StreamReader in_Renamed = new System.IO.StreamReader(new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).BaseStream, new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).CurrentEncoding); char[] cbuf = new char[(int) SupportClass.FileLength(f)]; in_Renamed.Read(cbuf, 0, (int) SupportClass.FileLength(f)); System.String xml = System.Convert.ToString(cbuf); NuGenProfileParser pp = new NuGenProfileParser(true); RuntimeProfile spec = pp.parse(xml); } catch (System.Exception e) { SupportClass.WriteStackTrace(e, Console.Error); } }
public AnonymousClassEntityResolver(System.String grammar, NuGenProfileParser enclosingInstance) { InitBlock(grammar, enclosingInstance); }
private void InitBlock(NuGenProfileParser enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public AnonymousClassErrorHandler(NuGenProfileParser enclosingInstance) { InitBlock(enclosingInstance); }
private void InitBlock(System.String grammar, NuGenProfileParser enclosingInstance) { this.grammar = grammar; this.enclosingInstance = enclosingInstance; }