Packages

package io

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. io
  2. LowPriorityIOImplicits
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ByteFormat[T] extends ToBytes[T] with FromBytes[T]
  2. case class CloseableIterator[T](iter: Iterator[T])(closeMe: => Unit) extends Iterator[T] with AutoCloseable with Product with Serializable

    An iterator which will invoke the given 'closeMe' thunk when it is exhausted It also implements 'AutoClosable' should it need to be closed early

  3. trait FromBytes[T] extends AnyRef

    Typeclass to serialize a type from a byte array

  4. final class Lazy[T] extends AutoCloseable with LazyLogging

    A wrapper for lazy values which can be queried whether they are created.

    A wrapper for lazy values which can be queried whether they are created.

    This was created primarily for being able to close/clean up things which may or may not have been created.

    e.g. instead of this:

    lazy val someResource = ...
    
    // we may not have had a 'someResource' yet, so trying to close() our object
    // would instantiate and then 'close' the resource
    def close() = someResource.close()

    we'd have this:

    private val someResource_ = Lazy { ... }
    def someResource = someResource_.value
    
    def close() = someResource_.close() // or perhaps someResource_.foreach(_.destroy)
  5. trait LowPriorityIOImplicits extends AnyRef

    Contains some 'pimped' types (adding <string>.asPath), and RichPath

  6. implicit class RichPathString extends AnyRef

    exposes 'toPath' on strings, for e.g.

    exposes 'toPath' on strings, for e.g.

    "/var/tmp/foo.txt".asPath.text = "hello world"
    returns

    a pimped string

    Definition Classes
    LowPriorityIOImplicits
  7. final class RichPath extends AnyRef
  8. trait ToBytes[T] extends AnyRef

    Typeclass to serialize a type to bytes

    Typeclass to serialize a type to bytes

    T

    the value to convert

Value Members

  1. implicit def asRichPath(path: Path): RichPath
    Definition Classes
    LowPriorityIOImplicits
  2. implicit def strAsToBytes: ToBytes[Array[Byte]]
    Definition Classes
    LowPriorityIOImplicits
  3. object AlphaCounter

    Provides a means to encode a long into a shorter string of characters (alphanumeric by default, so effectively base 62 instead of base 10 (10 + 26 + 26)

  4. object FromBytes
  5. object Hex
  6. object Lazy
  7. object LowPriorityIOImplicits
  8. object MD5
  9. object RichPath
  10. object ToBytes extends LowPriorityIOImplicits

Inherited from LowPriorityIOImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped