All Downloads are FREE. Search and download functionalities are using the official Maven repository.

widebase.stream.codec.rq.Props.scala Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
package widebase.stream.codec.rq

import java.nio.charset.Charset

import widebase.util.SysProps

/** Scope properties.
 *
 * Set directly or by system properties.
 *
 * Global property keys:
 * {{{
 * widebase.io. { filter }
 * }}}
 *
 * Package property keys:
 * {{{
 * widebase.stream.codec.rq. { charset }
 * }}}
 *
 * Individual property keys:
 * {{{
 * widebase.stream.codec.rq. { charsets._ }
 * }}}
 *
 * @author myst3r10n
 */
object Props extends PropsLike {

  /** This package name. */
  override protected val packageName = "widebase.steram.codec.rq"

  /** [[java.nio.charset.Charset]] properties.
   *
   * @author myst3r10n
   */
  object charsets {

    /** Used [[java.nio.charset.Charset]] to decode data. */
    var decoder: Charset = _

    /** Used [[java.nio.charset.Charset]] to encode data. */
    var encoder: Charset = _

    reset

    /** Resets [[java.nio.charset.Charset]] properties. */
    def reset {

      decoder = SysProps.getCharset(packageName + ".charsets.decoder", defaultCharset)
      encoder = SysProps.getCharset(packageName + ".charsets.encoder", defaultCharset)

    }
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy