Packages

  • package root
    Definition Classes
    root
  • package scales

    Scales Xml provides both a more flexible approach to XML handling and a simplified way of interacting with XML.

    Scales Xml provides both a more flexible approach to XML handling and a simplified way of interacting with XML.

    It fits nicely with the Java APIs you know, TrAX and javax.xml.validation for example, allowing you to run XSLTs and convert to and from Scales XML and other DOMs.

    It also provides a far more XPath like experience than the normal Scala XML, Paths look like XPaths and work like them too (with many of the same functions and axes).

    Definition Classes
    root
  • package utils

    The scales.utils packages provide the basis functionality for scales.xml.

    The scales.utils packages provide the basis functionality for scales.xml.

    The Tree an Path collections that underpin the XML model, as well as the iteratee functionality are located in the relevant sub-packages.

    The package object itself pulls in the main utility functions for tree, path and iteratee handling. Import the scales.utils.ScalesUtils object implicit members to provide the path & and | extension functions, the iteratorEnumerator and the +:+ lazy appender for scalaz.EphemeralStream.

    Definition Classes
    scales
  • package collection

    The collection pacakge provides the scales.utils.collection.Tree

    The collection pacakge provides the scales.utils.collection.Tree

    Definition Classes
    utils
  • package impl
    Definition Classes
    utils
  • package io
    Definition Classes
    utils
  • package iteratee
    Definition Classes
    utils
  • package resources
    Definition Classes
    utils
  • CloseOnNeed
  • Creator
  • IsClosed
  • Loaner
  • Pool
  • SimpleUnboundedPool
p

scales.utils

resources

package resources

Type Members

  1. trait CloseOnNeed extends IsClosed

    Mostly exists for pulling but it is general

    Mostly exists for pulling but it is general

    We want to enable bracketing and a more orderly shutdown of resources from the input streams. Whilst the resource is closed automatically its not very helpful if you don't want to close it. Due to Sun bug: 6539065 we have to wrap the actual close. This allows us to decide IF we want to close.

    So we cover three use cases here: * Enumeratees can bracket, if so desired * Streams of xml can be continuously plied for more xml messages * Users who want to manually close early can do so too.

    As a note this fits very closely to the scala-arm stuff, which I happily use in another project. But it has two specific seperate use cases: * XmlPulls should be joinable as iterators ++ should ensure that the resources are closed * Additionally, however, closing on the resulting XmlPull should close the lot.

    So we either override the ++ to behave differently or we abstract away using of the stream from closing it.

  2. trait Creator[T] extends AnyRef

    Simple factory interface

  3. trait IsClosed extends AnyRef
  4. trait Loaner[T] extends AnyRef
  5. trait Pool[T] extends AnyRef

    Simple pool interface

  6. trait SimpleUnboundedPool[T] extends Pool[T] with Loaner[T] with Creator[T]

    Thread safe unbounded pool, if more objects are required it will simple create them.

    Thread safe unbounded pool, if more objects are required it will simple create them. The optional parameter reduceSize tries to help clean up a bit when an excessive amount is created but does not act as a semaphore

Ungrouped