Packages

object helper

Created by pach on 13/01/17.

Source
helper.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. helper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. val ://: ByteVector
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val SP: ByteVector
  6. val _equal: ByteVector
  7. val alwaysQuotedUtf8String: Codec[String]
  8. val amp: ByteVector
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def asciiConstant(const: String, ignoreCase: Boolean = true): Codec[Unit]

    Encodes as supplied ascii string constant.

    Encodes as supplied ascii string constant. Drops any leading whitespace if any.

    const

    Constant to encode // decode

    ignoreCase

    When true, the decoding ignores case

  11. val asciiString: Codec[String]

    string encoded // decoded as ASCII *

  12. def asciiStringNoWs: Codec[String]

    codec that decodes until whitespace character is found.

    codec that decodes until whitespace character is found. Encodes as ascii string *

  13. def asciiStringUntil(f: (Char) ⇒ Boolean): Codec[String]
  14. val base64Encoded: Codec[ByteVector]
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val colon: ByteVector
  17. val comma: ByteVector
  18. def commaDelimited[A](valueCodec: Codec[A]): Codec[List[A]]

    Codec for decoding comma delimited parameters from header.

    Codec for decoding comma delimited parameters from header. When encoding, the comma is always followed by [SP]

    When decoding, the parameters are tested if they are quoted strings and if yes, the comma is skipped if within quotes

  19. def commaDelimitedMin[A](codec: Codec[A], min: Int): Codec[List[A]]
  20. val comma_SP: ByteVector
  21. val crlf: ByteVector
  22. val dash: ByteVector
  23. def delimitedBy[A](by: ByteVector, encodeBy: ByteVector, valueCodec: Codec[A]): Codec[List[A]]

    Codec for decoding delimited parameters from header.

    Codec for decoding delimited parameters from header. When encoding, the encodeBy is used to encode A delimiter

    When decoding, the parameters are tested if they are quoted strings and if yes, the by is skipped if within quotes

  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  29. val httpDateTimeCodec: Codec[LocalDateTime]

    encodes // decodes time by http time format *

  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def localDateTime2String(ldt: LocalDateTime): String

    RFC 1123 date 2 string *

  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  35. def orEmpty[A](codec: Codec[A]): Codec[Option[A]]

    codec that decodes to Some(a) when codec decodes or None, when there are no nonempty characters left *

  36. def parametrized[A, B](discriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]

    A codec, that allows to encode/decode parametrized values A by parameter B.

    A codec, that allows to encode/decode parametrized values A by parameter B. Parameter is optional and is discriminated by discriminator

  37. def parametrized2[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]
  38. def parametrizedN[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, List[B])]

    A codec, that allows to encode/decode parametrized values A by optional parameters of B.

    A codec, that allows to encode/decode parametrized values A by optional parameters of B. Parameter is optional (may be N), and is discriminated by discriminator

    furthermore if the discriminator is found in quotes (") it is ignored until cloiong quotes are found

  39. val qPar: ByteVector
  40. val qValueCodec: Codec[Float]

    codec for qValue in multiple parameter lists*

  41. val quotedString: Codec[String]

    coder for strings that may be quoted *

  42. val semicolon: ByteVector
  43. val semicolon_SP: ByteVector
  44. val slash: ByteVector
  45. def splitByQuoted(delimiter: ByteVector, content: BitVector): (BitVector, BitVector)

    splits by delimiter, honoring quoted commas *

  46. def splitByWS(content: BitVector): (BitVector, BitVector)
  47. val star: ByteVector
  48. val starCodec: Codec[Unit]

    codec that succeeds, iff star (*) is present *

  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. val trimmedAsciiString: Codec[String]

    ascii string that is trimmed of WS *

  52. val trimmedUtf8String: Codec[String]

    utf8 string that is trimmed of WS *

  53. def tuple[A, B](discriminator: ByteVector, acodec: Codec[A], bCodec: Codec[B]): Codec[(A, B)]

    Tuple A, B separated by discriminator.

    Tuple A, B separated by discriminator. This will first search for discriminator, and if match will apply A codec and B codec to remaining bits, if any.

  54. val utf8String: Codec[String]

    string encoded // decoded as UTF8 *

  55. def utf8StringUntil(until: String): Codec[String]

    decodes as utf8 string, that will return string until pattern is matched *

  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def whitespace(encodeAs: String = " "): Codec[Unit]

    codec that strips all whitespace, and encodes as supplied string.

    codec that strips all whitespace, and encodes as supplied string. At least one whitespace is mandatory. *

Inherited from AnyRef

Inherited from Any

Ungrouped