public class LineElementsFactory extends java.lang.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,
java.io.Reader text,
boolean ignoreWs)
Create a new line element factory for the given source.
|
static LineElementsFactory |
create(DocumentSource source,
java.lang.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,
java.lang.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 ElementsFactory
public static LineElementsFactory create(DocumentSource source, java.lang.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 java.io.IOException
create(FileDocumentSource, boolean, String)
insteadsource
- the file sourceignoreWs
- if true
white spaces are ignored for the diffjava.io.IOException
- if an I/O error occurspublic static LineElementsFactory create(FileDocumentSource source, boolean ignoreWs, java.lang.String charset) throws java.io.IOException
source
- the file sourceignoreWs
- if true
white spaces are ignored for the diffcharset
- the charsetjava.io.IOException
- if an I/O error occurs
todo: create non-annotated variantpublic static LineElementsFactory create(DocumentSource source, java.io.Reader text, boolean ignoreWs) throws java.io.IOException
source
- the sourcetext
- the textignoreWs
- if true
white spaces are ignored for the diffjava.io.IOException
- if an I/O error occurs
todo: create non-annotated variantCopyright © 2010 - 2020 Adobe. All Rights Reserved