object PagedSeq
The PagedSeq
object defines a lazy implementations of
a random access sequence.
Provides utility methods that return instances of PagedSeq[Char]
.
fromIterator
and fromIterable
provide generalised instances of PagedSeq
- Source
- PagedSeq.scala
- Alphabetic
- By Inheritance
- PagedSeq
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final val UndeterminedEnd: Int(2147483647)
-
def
fromFile(source: String): PagedSeq[Char]
Constructs a paged character sequence from a file with given name
-
def
fromFile(source: File): PagedSeq[Char]
Constructs a paged character sequence from an input file
-
def
fromIterable[T](source: Iterable[T])(implicit arg0: ClassTag[T]): PagedSeq[T]
Constructs a paged sequence from an iterable
-
def
fromIterator[T](source: Iterator[T])(implicit arg0: ClassTag[T]): PagedSeq[T]
Constructs a paged sequence from an iterator
-
def
fromLines(source: Iterable[String]): PagedSeq[Char]
Constructs a paged character sequence from a line iterable Lines do not contain trailing
\n
characters; The method inserts a line separator\n
between any two lines in the sequence. -
def
fromLines(source: Iterator[String]): PagedSeq[Char]
Constructs a paged character sequence from a line iterator Lines do not contain trailing
\n
characters; The method inserts a line separator\n
between any two lines in the sequence. -
def
fromReader(source: java.io.Reader): PagedSeq[Char]
Constructs a paged character sequence from an input reader
-
def
fromSource(source: Source): PagedSeq[Char]
Constructs a paged character sequence from a scala.io.Source value
-
def
fromStrings(source: Iterable[String]): PagedSeq[Char]
Constructs a paged character sequence from a string iterable
-
def
fromStrings(source: Iterator[String]): PagedSeq[Char]
Constructs a paged character sequence from a string iterator