object text
Provides utilities for working with streams of text (e.g., encoding byte streams to strings).
- Source
- text.scala
- Alphabetic
- By Inheritance
- text
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class LineTooLongException extends RuntimeException
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def decodeCWithCharset[F[_]](charset: Charset)(implicit arg0: RaiseThrowable[F]): Pipe[F, Chunk[Byte], String]
- def decodeWithCharset[F[_]](charset: Charset)(implicit arg0: RaiseThrowable[F]): Pipe[F, Byte, String]
-
def
encode[F[_]](charset: Charset): Pipe[F, String, Byte]
Encodes a stream of
String
in to a stream of bytes using the given charset. -
def
encodeC[F[_]](charset: Charset): Pipe[F, String, Chunk[Byte]]
Encodes a stream of
String
in to a stream ofChunk[Byte]
using the given charset. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lines[F[_]]: Pipe[F, String, String]
Transforms a stream of
String
such that each emittedString
is a line from the input. -
def
linesLimited[F[_]](maxLineLength: Int)(implicit arg0: RaiseThrowable[F]): Pipe[F, String, String]
Transforms a stream of
String
such that each emittedString
is a line from the inputTransforms a stream of
String
such that each emittedString
is a line from the input- maxLineLength
maximum size to accumulate a line to; throw an error if a line is larger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
base64
Functions for working with base 64.
-
object
bom
Byte order mark (BOM) values for different Unicode charsets.
-
object
hex
Functions for working with base 64.
- object utf8
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
utf8Decode[F[_]]: Pipe[F, Byte, String]
Converts UTF-8 encoded byte stream to a stream of
String
.Converts UTF-8 encoded byte stream to a stream of
String
.- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use text.utf8.decode
-
def
utf8DecodeC[F[_]]: Pipe[F, Chunk[Byte], String]
Converts UTF-8 encoded
Chunk[Byte]
inputs toString
.Converts UTF-8 encoded
Chunk[Byte]
inputs toString
.- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use text.utf8.decodeC
-
def
utf8Encode[F[_]]: Pipe[F, String, Byte]
Encodes a stream of
String
in to a stream of bytes using the UTF-8 charset.Encodes a stream of
String
in to a stream of bytes using the UTF-8 charset.- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use text.utf8.encode
-
def
utf8EncodeC[F[_]]: Pipe[F, String, Chunk[Byte]]
Encodes a stream of
String
in to a stream ofChunk[Byte]
using the UTF-8 charset.Encodes a stream of
String
in to a stream ofChunk[Byte]
using the UTF-8 charset.- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use text.utf8.encodeC