collector

fs2.data.xml.`package`.collector
object collector

XML event stream collectors.

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
collector.type

Members list

Type members

Deprecated classlikes

object show extends Collector[XmlEvent]

Renders all events using the Show instance and build the result string.

Renders all events using the Show instance and build the result string.

Attributes

Deprecated
[Since version fs2-data 1.11.0] Use `fs2.data.xml.collector.raw(false)` instead
Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
show.type

Value members

Concrete methods

def pretty(collapseEmpty: Boolean, indent: String, attributeThreshold: Int): Aux[XmlEvent, String]

Renders all events with trying to make it more readable.

Renders all events with trying to make it more readable. This collector should only be used if white spaces is not relevant to the application and results in more human readable XML.

Value parameters

attributeThreshold

Number of attributes above which each attribute is rendered on a new line

collapseEmpty

Whether empty tags are collapsed in a single self closing tag

indent

THe indentation string

Attributes

Source
package.scala
def raw(collapseEmpty: Boolean): Aux[XmlEvent, String]

Renders all events without extra formatting.

Renders all events without extra formatting.

Attributes

Source
package.scala