| Package | Description |
|---|---|
| se.l4.lect | |
| se.l4.lect.internal | |
| se.l4.lect.text |
| Modifier and Type | Method and Description |
|---|---|
static TextSource |
TextSource.empty()
Get a
TextSource that is empty. |
| Modifier and Type | Method and Description |
|---|---|
static PipelineRunner<?> |
Pipeline.over(TextSource source)
Start creating a pipeline with the intention of executing over the given source.
|
void |
Pipeline.run(TextSource source)
Run this pipeline on the given source.
|
void |
Pipeline.run(TextSource source,
Collector collector)
Run this pipeline on the given source and collect results using the given collector.
|
| Constructor and Description |
|---|
PipelineRunner(TextSource source) |
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyTextSource
TextSource that reads and emits nothing. |
| Modifier and Type | Field and Description |
|---|---|
static TextSource |
EmptyTextSource.INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
PipelineImpl.run(TextSource source) |
void |
PipelineImpl.run(TextSource source,
Collector collector) |
| Modifier and Type | Class and Description |
|---|---|
class |
PlainTextSource
Source that parses plain text into a syntax tree.
|
class |
StringTextSource
Source that treats a
String as a single paragraph. |
| Modifier and Type | Method and Description |
|---|---|
static TextSource |
PlainTextSource.forBytes(se.l4.commons.io.Bytes bytes,
Charset charset)
Create a new source using the given
Bytes to resolve the text
content. |
static TextSource |
PlainTextSource.forReader(se.l4.commons.io.IOSupplier<Reader> supplier)
Create a new source that will use the given
IoSupplier to open a
Reader. |
static TextSource |
PlainTextSource.forReader(Reader reader)
Create a new source for the given
Reader. |
static TextSource |
PlainTextSource.forStream(InputStream stream,
Charset charset)
Create a new source for the given
InputStream using the
specified character set to decode it. |
static TextSource |
PlainTextSource.forStream(se.l4.commons.io.IOSupplier<InputStream> stream,
Charset charset)
Create a new source that uses the given
IoSupplier to resolve
the text content. |
static TextSource |
StringTextSource.forString(String text)
Create a new source for the given
String. |
static TextSource |
PlainTextSource.forString(String text)
Create a new source for the given
String. |
Copyright © 2018. All rights reserved.