trait LoggedNodeFactory[A <: Node] extends NodeFactory[A]
This class logs what the nodefactory is actually doing. If you want to see what happens during loading, use it like this:
object testLogged extends App { val x = new scala.xml.parsing.NoBindingFactoryAdapter with scala.xml.factory.LoggedNodeFactory[scala.xml.Elem] { override def log(s: String) = println(s) } Console.println("Start") val doc = x.load(new java.net.URL("http://example.com/file.xml")) Console.println("End") Console.println(doc) }
- Annotations
- @deprecated
- Deprecated
(Since version 2.11) This trait will be removed.
- Alphabetic
- By Inheritance
- LoggedNodeFactory
- NodeFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def create(pre: String, name: String, attrs: MetaData, scope: NamespaceBinding, children: collection.Seq[Node]): A
- Attributes
- protected
- Definition Classes
- NodeFactory
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val CACHE: Int(1)
- final val FULL: Int(2)
- final val NONE: Int(0)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cache: HashMap[Int, List[A]]
- Definition Classes
- NodeFactory
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def construct(hash: Int, old: List[A], pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: collection.Seq[Node]): A
- Attributes
- protected
- Definition Classes
- NodeFactory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eqElements(ch1: collection.Seq[Node], ch2: collection.Seq[Node]): Boolean
- Definition Classes
- NodeFactory
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val ignoreComments: Boolean
- Definition Classes
- NodeFactory
- val ignoreProcInstr: Boolean
- Definition Classes
- NodeFactory
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(msg: String): Unit
- val logComment: Boolean
- val logCompressLevel: Int
0 = no logging, 1 = cache hits, 2 = detail
- val logNode: Boolean
- val logProcInstr: Boolean
- val logText: Boolean
- def makeComment(s: String): collection.Seq[Comment]
- Definition Classes
- LoggedNodeFactory → NodeFactory
- def makeNode(pre: String, label: String, attrSeq: MetaData, scope: NamespaceBinding, children: collection.Seq[Node]): A
logged version of makeNode method
logged version of makeNode method
- Definition Classes
- LoggedNodeFactory → NodeFactory
- def makeProcInstr(t: String, s: String): collection.Seq[ProcInstr]
- Definition Classes
- LoggedNodeFactory → NodeFactory
- def makeText(s: String): Text
- Definition Classes
- LoggedNodeFactory → NodeFactory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeEquals(n: Node, pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: collection.Seq[Node]): Boolean
- Definition Classes
- NodeFactory
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])