|
Scala
1.4.0.3 |
|||
Field Summary | |
val attribStack: Stack[MetaData]
|
|
val buffer: StringBuffer
|
|
val hStack: Stack[Node]
|
|
val normalizeWhitespace: Boolean
|
|
val tagStack: Stack[String]
|
Method Summary | |
var capture: Boolean
|
|
def captureText(): Unit
captures text, possibly normalizing whitespace |
|
override
|
def characters(ch: Array[Char], offset: Int, length: Int): Unit
Characters. |
abstract
|
def createNode(pre: String, elemName: String, attribs: MetaData, scope: NamespaceBinding, chIter: List[Node]): Node
creates an new non-text(tree) node. |
abstract
|
def createText(text: String): Text
creates a Text node. |
var curTag: String
|
|
override
|
def endElement(uri: String, _localName: String, qname: String): Unit
End element. |
override
|
def error(ex: org.xml.sax.SAXParseException): Unit
Error. |
override
|
def fatalError(ex: org.xml.sax.SAXParseException): Unit
Fatal error. |
def load(is: java.io.InputStream): Node
loads XML from given InputStream |
|
def load(reader: java.io.Reader): Node
loads XML from given Reader |
|
def load(sysID: String): Node
loads XML from given sysID |
|
def loadFile(file: java.io.File): Node
loads XML from given file |
|
def loadFile(fileDesc: java.io.FileDescriptor): Node
loads XML from given file descriptor |
|
def loadFile(fileName: String): Node
loads XML from given file |
|
def loadXML(source: org.xml.sax.InputSource): Node
load XML document |
|
abstract
|
def nodeContainsText(localName: String): Boolean
Tests if an XML element contains text. |
protected
|
def printError(errtype: String, ex: org.xml.sax.SAXParseException): Unit
Prints the error message |
var rootElem: Node
|
|
var scopeStack: Stack[NamespaceBinding]
|
|
override
|
def startElement(uri: String, _localName: String, qname: String, attributes: org.xml.sax.Attributes): Unit
|
override
|
def warning(ex: org.xml.sax.SAXParseException): Unit
Warning. |
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from org/xml/sax/helpers/DefaultHandler-class |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Field Detail |
val buffer: StringBuffer
val attribStack: Stack[MetaData]
val hStack: Stack[Node]
val tagStack: Stack[String]
val normalizeWhitespace: Boolean
Method Detail |
var scopeStack: Stack[NamespaceBinding]
var curTag: String
var capture: Boolean
abstract def nodeContainsText(localName: String): Boolean
localName
contains text.
abstract def createNode(pre: String, elemName: String, attribs: MetaData, scope: NamespaceBinding, chIter: List[Node]): Node
elemName
-
attribs
-
chIter
-
abstract def createText(text: String): Text
text
-
override def characters(ch: Array[Char], offset: Int, length: Int): Unit
ch
-
offset
-
length
-
override def startElement(uri: String, _localName: String, qname: String, attributes: org.xml.sax.Attributes): Unit
def captureText(): Unit
override def endElement(uri: String, _localName: String, qname: String): Unit
uri
-
localName
-
qname
-
override def warning(ex: org.xml.sax.SAXParseException): Unit
override def error(ex: org.xml.sax.SAXParseException): Unit
override def fatalError(ex: org.xml.sax.SAXParseException): Unit
protected def printError(errtype: String, ex: org.xml.sax.SAXParseException): Unit
var rootElem: Node
def loadXML(source: org.xml.sax.InputSource): Node
source
-
def loadFile(file: java.io.File): Node
def loadFile(fileDesc: java.io.FileDescriptor): Node
def loadFile(fileName: String): Node
def load(is: java.io.InputStream): Node
def load(reader: java.io.Reader): Node
def load(sysID: String): Node
|
Scala
1.4.0.3 |
|||