Trait

laika.io

InputOps

Related Doc: package io

Permalink

trait InputOps extends AnyRef

API for producing a result from processing various types of input.

This is essentially a collection of shortcuts that allow any class merging in this trait to define all input related operations in terms of the only abstract method fromInput. Calling fromFile("foo.md") for example is only a convenient shortcut for calling fromInput(Input.fromFile("foo.md").

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InputOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type InputResult

    Permalink

    The type of the result returned by all operations of this trait.

Abstract Value Members

  1. abstract def fromInput(input: Input): InputResult

    Permalink

    Returns the result from parsing the specified input.

    Returns the result from parsing the specified input.

    This is a generic method based on Laika's IO abstraction layer that concrete methods delegate to. Usually not used directly in application code, but might come in handy for very special requirements.

    input

    the input for the parser

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fromFile(file: File)(implicit codec: Codec): InputResult

    Permalink

    Returns the result from parsing the specified file.

    Returns the result from parsing the specified file. Any kind of character input is valid, including empty files.

    file

    the file to use as input

    codec

    the character encoding of the file, if not specified the platform default will be used.

  10. def fromFile(name: String)(implicit codec: Codec): InputResult

    Permalink

    Returns the result from parsing the file with the specified name.

    Returns the result from parsing the file with the specified name. Any kind of character input is valid, including empty files.

    name

    the name of the file to parse

    codec

    the character encoding of the file, if not specified the platform default will be used.

  11. def fromReader(reader: Reader): InputResult

    Permalink

    Returns the result from parsing the input from the specified reader.

  12. def fromStream(stream: InputStream)(implicit codec: Codec): InputResult

    Permalink

    Returns the result from parsing the input from the specified stream.

    Returns the result from parsing the input from the specified stream.

    stream

    the stream to use as input for the parser

    codec

    the character encoding of the stream, if not specified the platform default will be used.

  13. def fromString(str: String): InputResult

    Permalink

    Returns the result from parsing a the specified string.

    Returns the result from parsing a the specified string. Any kind of input is valid, including an empty string.

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped