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.

Linear Supertypes
XMLLoader[Node], DefaultHandler, ErrorHandler, ContentHandler, DTDHandler, org.xml.sax.EntityResolver, AnyRef, Any
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): 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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adapter: FactoryAdapter
    Definition Classes
    XMLLoader
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val attribStack: Stack[MetaData]
  7. val buffer: collection.mutable.StringBuilder
  8. var capture: Boolean
  9. def captureText(): Unit

    captures text, possibly normalizing whitespace

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

    Characters.

    Characters.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. var curTag: String
  13. def endDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  14. 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 ..

  15. def endPrefixMapping(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def error(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  19. def fatalError(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. val hStack: Stack[Node]
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def load(url: URL): Node
    Definition Classes
    XMLLoader
  27. def load(source: InputSource): Node
    Definition Classes
    XMLLoader
  28. def load(sysID: String): Node
    Definition Classes
    XMLLoader
  29. def load(reader: Reader): Node
    Definition Classes
    XMLLoader
  30. 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
  31. def loadFile(name: String): Node
    Definition Classes
    XMLLoader
  32. def loadFile(fd: FileDescriptor): Node
    Definition Classes
    XMLLoader
  33. 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
  34. def loadString(string: String): Node

    Loads XML from the given String.

    Loads XML from the given String.

    Definition Classes
    XMLLoader
  35. 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
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. val normalizeWhitespace: Boolean
  38. def notationDecl(arg0: String, arg1: String, arg2: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  39. final def notify(): Unit
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  41. def parser: SAXParser
    Definition Classes
    XMLLoader
  42. def processingInstruction(target: String, data: String): Unit

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  43. 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] )
  44. var rootElem: Node
  45. var scopeStack: Stack[NamespaceBinding]
  46. def setDocumentLocator(arg0: Locator): Unit
    Definition Classes
    DefaultHandler → ContentHandler
  47. def skippedEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  48. def startDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  49. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  50. def startPrefixMapping(arg0: String, arg1: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  51. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  52. val tagStack: Stack[String]
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def warning(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )

Inherited from XMLLoader[Node]

Inherited from DefaultHandler

Inherited from ErrorHandler

Inherited from ContentHandler

Inherited from DTDHandler

Inherited from org.xml.sax.EntityResolver

Inherited from AnyRef

Inherited from Any

Ungrouped