LoggedNodeFactory
@deprecated("This trait will be removed.", "2.11") 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:
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)
}
- Authors
Burak Emir
- Deprecated
Value members
Concrete methods
override def makeNode(pre: String, label: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
logged version of makeNode method
logged version of makeNode method
- Definition Classes
Inherited methods
protected def construct(hash: Int, old: List[A], pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
- Inherited from
- NodeFactory
protected def create(pre: String, name: String, attrs: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
- Inherited from
- NodeFactory
def nodeEquals(n: Node, pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): Boolean
- Inherited from
- NodeFactory