public class LineElementsFactory extends Object implements ElementsFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
LineElementsFactory.IStringElement
An element that is based on a string but ignores the whitespaces in the
equals method.
|
static class |
LineElementsFactory.StringElement
An element that is based on a string
todo: create non-annotated varian
|
CVS_ID| Modifier and Type | Method and Description |
|---|---|
static LineElementsFactory |
create(DocumentSource source,
Reader text,
boolean ignoreWs)
Create a new line element factory for the given source.
|
static LineElementsFactory |
create(DocumentSource source,
String text,
boolean ignoreWs)
Create a new line element factory for the given text.
|
static LineElementsFactory |
create(FileDocumentSource source,
boolean ignoreWs)
Deprecated.
use
create(FileDocumentSource, boolean, String) instead |
static LineElementsFactory |
create(FileDocumentSource source,
boolean ignoreWs,
String charset)
Create a new line element factory for the given source.
|
Document.Element[] |
getElements()
Provides the elements
|
public Document.Element[] getElements()
getElements in interface ElementsFactorypublic static LineElementsFactory create(DocumentSource source, String text, boolean ignoreWs)
source - the document sourcetext - the textignoreWs - if true white spaces are ignored for the diffpublic static LineElementsFactory create(FileDocumentSource source, boolean ignoreWs) throws IOException
create(FileDocumentSource, boolean, String) insteadsource - the file sourceignoreWs - if true white spaces are ignored for the diffIOException - if an I/O error occurspublic static LineElementsFactory create(FileDocumentSource source, boolean ignoreWs, String charset) throws IOException
source - the file sourceignoreWs - if true white spaces are ignored for the diffcharset - the charsetIOException - if an I/O error occurs
todo: create non-annotated variantpublic static LineElementsFactory create(DocumentSource source, Reader text, boolean ignoreWs) throws IOException
source - the sourcetext - the textignoreWs - if true white spaces are ignored for the diffIOException - if an I/O error occurs
todo: create non-annotated variantCopyright © 2010 - 2020 Adobe. All Rights Reserved