Scala Library Documentation
|
|
scala/xml/parsing/FactoryAdapter.scala
]
abstract
class
FactoryAdapter
extends
DefaultHandler with
AnyRefValue Summary | |
val
|
attribStack : Stack[MetaData] |
val
|
buffer : StringBuilder |
var
|
capture : Boolean |
var
|
curTag : String |
val
|
hStack : Stack[Node] |
val
|
normalizeWhitespace : Boolean |
var
|
rootElem : Node |
var
|
scopeStack : Stack[NamespaceBinding] |
val
|
tagStack : Stack[String] |
Method Summary | |
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.
|
override def
|
endElement
(uri : String, _localName : String, qname : String) : Unit
End element.
|
override def
|
error
(ex : SAXParseException) : Unit
Error.
|
override def
|
fatalError
(ex : SAXParseException) : Unit
Fatal error.
|
def
|
load
(reader : Reader) : Node
loads XML from given Reader
|
def
|
load
(is : InputStream) : Node
loads XML from given InputStream
|
def
|
load
(sysID : String) : Node
loads XML from given sysID
|
def
|
loadFile
(file : File) : Node
loads XML from given file
|
def
|
loadFile
(fileName : String) : Node
loads XML from given file
|
def
|
loadFile
(fileDesc : FileDescriptor) : Node
loads XML from given file descriptor
|
def
|
loadXML
(source : InputSource) : Node
load XML document
|
abstract def
|
nodeContainsText
(localName : String) : Boolean
Tests if an XML element contains text.
|
protected def
|
printError
(errtype : String, ex : SAXParseException) : Unit
Prints the error message
|
override def
|
startElement (uri : String, _localName : String, qname : String, attributes : Attributes) : Unit |
override def
|
warning
(ex : SAXParseException) : Unit
Warning.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
val
buffer : StringBuilder
var
scopeStack : Stack[NamespaceBinding]
var
curTag : String
var
capture : Boolean
val
normalizeWhitespace : Boolean
var
rootElem : Node
Method Details |
localName
contains text.abstract
def
createNode(pre : String, elemName : String, attribs : MetaData, scope : NamespaceBinding, chIter : List[Node]) : Node
elemName -
attribs -
chIter -
text -
ch -
offset -
length -
override
def
startElement(uri : String, _localName : String, qname : String, attributes : Attributes) : Unit
def
captureText : Unit
uri -
localName -
qname -
org.xml.sax.SAXException -
if ..override
def
warning(ex : SAXParseException) : Unit
override
def
error(ex : SAXParseException) : Unit
override
def
fatalError(ex : SAXParseException) : Unit
protected
def
printError(errtype : String, ex : SAXParseException) : Unit
def
loadXML(source : InputSource) : Node
source -
def
loadFile(fileDesc : FileDescriptor) : Node
def
load(is : InputStream) : Node
Scala Library Documentation
|
|