// Disambiguate from org.mozilla.javascript.Node /// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream stream) { stream.DefaultReadObject(); this.dom = DocumentBuilderFactory.NewInstance(); this.dom.SetNamespaceAware(true); this.dom.SetIgnoringComments(false); this.xform = TransformerFactory.NewInstance(); int poolSize = Runtime.GetRuntime().AvailableProcessors() * 2; this.documentBuilderPool = new LinkedBlockingDeque<DocumentBuilder>(poolSize); }
internal XmlProcessor() { SetDefault(); this.dom = DocumentBuilderFactory.NewInstance(); this.dom.SetNamespaceAware(true); this.dom.SetIgnoringComments(false); this.xform = TransformerFactory.NewInstance(); int poolSize = Runtime.GetRuntime().AvailableProcessors() * 2; this.documentBuilderPool = new LinkedBlockingDeque<DocumentBuilder>(poolSize); }