Packages

c

scala.xml.parsing

FactoryAdapter

abstract class FactoryAdapter extends DefaultHandler with XMLLoader[Node]

SAX adapter class, for use with Java SAX parser. Keeps track of namespace bindings, without relying on namespace handling of the underlying SAX parser.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FactoryAdapter
  2. XMLLoader
  3. DefaultHandler
  4. ErrorHandler
  5. ContentHandler
  6. DTDHandler
  7. EntityResolver
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FactoryAdapter()

Abstract Value Members

  1. abstract def createNode(pre: String, elemName: String, attribs: MetaData, scope: NamespaceBinding, chIter: List[Node]): Node

    creates an new non-text(tree) node.

    creates an new non-text(tree) node.

    returns

    a new XML element.

  2. abstract def createProcInstr(target: String, data: String): collection.Seq[ProcInstr]

    creates a new processing instruction node.

  3. abstract def createText(text: String): Text

    creates a Text node.

    creates a Text node.

    returns

    a new Text node.

  4. abstract def nodeContainsText(localName: String): Boolean

    Tests if an XML element contains text.

    Tests if an XML element contains text.

    returns

    true if element named localName contains text.

Concrete Value Members

  1. def adapter: FactoryAdapter
    Definition Classes
    XMLLoader
  2. val attribStack: Stack[MetaData]
  3. val buffer: collection.mutable.StringBuilder
  4. var capture: Boolean
  5. def captureText(): Unit

    captures text, possibly normalizing whitespace

  6. def characters(ch: Array[Char], offset: Int, length: Int): Unit

    Characters.

    Characters.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  7. var curTag: String
  8. def endDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  9. def endElement(uri: String, _localName: String, qname: String): Unit

    End element.

    End element.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
    Exceptions thrown

    org.xml.sax.SAXException if ..

  10. def endPrefixMapping(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  11. def error(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  12. def fatalError(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  13. val hStack: Stack[Node]
  14. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  15. def load(url: URL): Node
    Definition Classes
    XMLLoader
  16. def load(source: InputSource): Node
    Definition Classes
    XMLLoader
  17. def load(sysID: String): Node
    Definition Classes
    XMLLoader
  18. def load(reader: Reader): Node
    Definition Classes
    XMLLoader
  19. def load(is: InputStream): Node

    loads XML from given InputStream, Reader, sysID, InputSource, or URL.

    loads XML from given InputStream, Reader, sysID, InputSource, or URL.

    Definition Classes
    XMLLoader
  20. def loadFile(name: String): Node
    Definition Classes
    XMLLoader
  21. def loadFile(fd: FileDescriptor): Node
    Definition Classes
    XMLLoader
  22. def loadFile(file: File): Node

    Loads XML from the given file, file descriptor, or filename.

    Loads XML from the given file, file descriptor, or filename.

    Definition Classes
    XMLLoader
  23. def loadString(string: String): Node

    Loads XML from the given String.

    Loads XML from the given String.

    Definition Classes
    XMLLoader
  24. def loadXML(source: InputSource, parser: SAXParser): Node

    Loads XML from the given InputSource, using the supplied parser.

    Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.

    Definition Classes
    XMLLoader
  25. val normalizeWhitespace: Boolean
  26. def notationDecl(arg0: String, arg1: String, arg2: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  27. def parser: SAXParser
    Definition Classes
    XMLLoader
  28. def processingInstruction(target: String, data: String): Unit

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  29. def resolveEntity(arg0: String, arg1: String): org.xml.sax.InputSource
    Definition Classes
    DefaultHandler → EntityResolver
    Annotations
    @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
  30. var rootElem: Node
  31. var scopeStack: Stack[NamespaceBinding]
  32. def setDocumentLocator(arg0: Locator): Unit
    Definition Classes
    DefaultHandler → ContentHandler
  33. def skippedEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  34. def startDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  35. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  36. def startPrefixMapping(arg0: String, arg1: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  37. val tagStack: Stack[String]
  38. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  39. def warning(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )