Class

scala.xml.parsing

FactoryAdapter

Related Doc: package parsing

Permalink

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()

    Permalink

Abstract Value Members

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

    Permalink

    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]

    Permalink

    creates a new processing instruction node.

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

    Permalink

    creates a Text node.

    creates a Text node.

    returns

    a new Text node.

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def adapter: FactoryAdapter

    Permalink
    Definition Classes
    XMLLoader
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val attribStack: Stack[MetaData]

    Permalink
  7. val buffer: collection.mutable.StringBuilder

    Permalink
  8. var capture: Boolean

    Permalink
  9. def captureText(): Unit

    Permalink

    captures text, possibly normalizing whitespace

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

    Permalink

    Characters.

    Characters.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. var curTag: String

    Permalink
  13. def endDocument(): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  14. def endElement(uri: String, _localName: String, qname: String): Unit

    Permalink

    End element.

    End element.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
    Exceptions thrown

    org.xml.sax.SAXException if ..

  15. def endPrefixMapping(arg0: String): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def error(arg0: org.xml.sax.SAXParseException): Unit

    Permalink
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  19. def fatalError(arg0: org.xml.sax.SAXParseException): Unit

    Permalink
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. val hStack: Stack[Node]

    Permalink
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def load(url: URL): Node

    Permalink
    Definition Classes
    XMLLoader
  27. def load(source: InputSource): Node

    Permalink
    Definition Classes
    XMLLoader
  28. def load(sysID: String): Node

    Permalink
    Definition Classes
    XMLLoader
  29. def load(reader: Reader): Node

    Permalink
    Definition Classes
    XMLLoader
  30. def load(is: InputStream): Node

    Permalink

    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

    Permalink
    Definition Classes
    XMLLoader
  32. def loadFile(fd: FileDescriptor): Node

    Permalink
    Definition Classes
    XMLLoader
  33. def loadFile(file: File): Node

    Permalink

    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

    Permalink

    Loads XML from the given String.

    Loads XML from the given String.

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  37. val normalizeWhitespace: Boolean

    Permalink
  38. def notationDecl(arg0: String, arg1: String, arg2: String): Unit

    Permalink
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. def parser: SAXParser

    Permalink
    Definition Classes
    XMLLoader
  42. def processingInstruction(target: String, data: String): Unit

    Permalink

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  43. def resolveEntity(arg0: String, arg1: String): org.xml.sax.InputSource

    Permalink
    Definition Classes
    DefaultHandler → EntityResolver
    Annotations
    @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
  44. var rootElem: Node

    Permalink
  45. var scopeStack: Stack[NamespaceBinding]

    Permalink
  46. def setDocumentLocator(arg0: Locator): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
  47. def skippedEntity(arg0: String): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  48. def startDocument(): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  49. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit

    Permalink
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  50. def startPrefixMapping(arg0: String, arg1: String): Unit

    Permalink
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  52. val tagStack: Stack[String]

    Permalink
  53. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  54. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit

    Permalink
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  55. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def warning(arg0: org.xml.sax.SAXParseException): Unit

    Permalink
    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