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.

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. Protected

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. 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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  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: AnyRef): 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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val hStack: Stack[Node]
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def load(url: URL): Node
    Definition Classes
    XMLLoader
  26. def load(source: InputSource): Node
    Definition Classes
    XMLLoader
  27. def load(sysID: String): Node
    Definition Classes
    XMLLoader
  28. def load(reader: Reader): Node
    Definition Classes
    XMLLoader
  29. 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
  30. def loadFile(name: String): Node
    Definition Classes
    XMLLoader
  31. def loadFile(fd: FileDescriptor): Node
    Definition Classes
    XMLLoader
  32. 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
  33. def loadString(string: String): Node

    Loads XML from the given String.

    Loads XML from the given String.

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

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  42. def resolveEntity(arg0: String, arg1: String): org.xml.sax.InputSource
    Definition Classes
    DefaultHandler → EntityResolver
    Annotations
    @throws(classOf[java.io.IOException]) @throws(classOf[org.xml.sax.SAXException])
  43. var rootElem: Node
  44. var scopeStack: Stack[NamespaceBinding]
  45. def setDocumentLocator(arg0: Locator): Unit
    Definition Classes
    DefaultHandler → ContentHandler
  46. def skippedEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])
  47. def startDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])
  48. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  49. def startPrefixMapping(arg0: String, arg1: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])
  50. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  51. val tagStack: Stack[String]
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. def warning(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws(classOf[org.xml.sax.SAXException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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