in scala/xml/factory
class LoggedNodeFactory
-
abstract class LoggedNodeFactory[A<:Node]()
- extends NodeFactory[A]
- with ScalaObject
- with Logged
-
This class logs what the nodefactory is actually doing.
If you want to see what happens during loading, use it like this:
object testLogged with Application {
val x = new scala.xml.nobinding.NoBindingFactoryAdapter
with scala.xml.LoggedNodeFactory[scala.xml.Elem]()
with scala.util.logging.ConsoleLogger;
Console.println("Start");
val doc = x.loadXML(new org.xml.sax.InputSource("http://lamp.epfl.ch/~buraq"));
Console.println("End");
Console.println(doc);
}
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
logNode
val logNode: Boolean
logText
val logText: Boolean
logComment
val logComment: Boolean
logProcInstr
val logProcInstr: Boolean
NONE
final val NONE: Int
CACHE
final val CACHE: Int
FULL
final val FULL: Int
logCompressLevel
val logCompressLevel: Int
-
0 = no loggging, 1 = cache hits, 2 = detail
makeNode
override def makeNode(pre: String, label: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
-
logged version of makeNode method
makeText
override def makeText(s: String): Text
makeComment
override def makeComment(s: String): Seq[Comment]
makeProcInstr
override def makeProcInstr(t: String, s: String): Seq[ProcInstr]