@Deprecated public class ComparisonTextFile extends Object implements IComparisonTextFile
Class ComparisonTextFile.
Constructor and Description |
---|
ComparisonTextFile()
Deprecated.
Initializes a new instance of the
ComparisonTextFile class. |
ComparisonTextFile(InputStream stream)
Deprecated.
Initializes a new instance of the
ComparisonTextFile class. |
ComparisonTextFile(com.aspose.ms.System.IO.Stream stream)
Deprecated.
Instantiates a new Comparison text file.
|
ComparisonTextFile(String path)
Deprecated.
Initializes a new instance of the
ComparisonTextFile class. |
Modifier and Type | Method and Description |
---|---|
ITextCompareResult |
compareWith(IComparisonTextFile targetText,
TextComparisonSettings settings)
Deprecated.
Compares the with.
|
IWordsCompareResult |
compareWithAsDocxFiles(IComparisonTextFile targetText,
WordsComparisonSettings settings)
Deprecated.
Compares the with as docx files.
|
ComparisonDocument |
convertToDocx()
Deprecated.
Convert to docx comparison document.
|
double |
getDocumentStreamLength()
Deprecated.
Gets the length of the document stream.
|
List<IComparisonParagraph> |
getParagraphs()
Deprecated.
Gets or sets the paragraphs.
|
com.aspose.ms.System.Collections.Generic.List<IComparisonParagraph> |
getParagraphsInternal()
Deprecated.
|
String |
getText()
Deprecated.
Gets or sets the text.
|
void |
save(OutputStream stream)
Deprecated.
Saves the specified stream.
|
void |
save(String path)
Deprecated.
Saves the specified path.
|
void |
setParagraphs(List<IComparisonParagraph> value)
Deprecated.
Gets or sets the paragraphs.
|
void |
setParagraphsInternal(com.aspose.ms.System.Collections.Generic.List<IComparisonParagraph> value)
Deprecated.
|
void |
setText(String value)
Deprecated.
Gets or sets the text.
|
public ComparisonTextFile()
Initializes a new instance of the ComparisonTextFile
class.
public ComparisonTextFile(InputStream stream)
Initializes a new instance of the ComparisonTextFile
class.
stream
- The stream.public ComparisonTextFile(com.aspose.ms.System.IO.Stream stream)
stream
- the streampublic ComparisonTextFile(String path)
Initializes a new instance of the ComparisonTextFile
class.
path
- The path.public String getText()
Gets or sets the text.
Value: The text.getText
in interface IComparisonTextFile
public void setText(String value)
Gets or sets the text.
Value: The text.setText
in interface IComparisonTextFile
value
- the valuepublic double getDocumentStreamLength()
Gets the length of the document stream.
getDocumentStreamLength
in interface IComparisonTextFile
public List<IComparisonParagraph> getParagraphs()
Gets or sets the paragraphs.
Value: The paragraphs.getParagraphs
in interface IComparisonTextFile
public com.aspose.ms.System.Collections.Generic.List<IComparisonParagraph> getParagraphsInternal()
public void setParagraphs(List<IComparisonParagraph> value)
Gets or sets the paragraphs.
Value: The paragraphs.setParagraphs
in interface IComparisonTextFile
value
- the valuepublic void setParagraphsInternal(com.aspose.ms.System.Collections.Generic.List<IComparisonParagraph> value)
public ITextCompareResult compareWith(IComparisonTextFile targetText, TextComparisonSettings settings) throws Exception
Compares the with.
compareWith
in interface IComparisonTextFile
targetText
- The target text.settings
- The settings.Exception
public IWordsCompareResult compareWithAsDocxFiles(IComparisonTextFile targetText, WordsComparisonSettings settings) throws Exception
Compares the with as docx files.
compareWithAsDocxFiles
in interface IComparisonTextFile
targetText
- The target text.settings
- The settings.Exception
- the exceptionpublic void save(String path)
Saves the specified path.
save
in interface IComparisonTextFile
path
- The path.public void save(OutputStream stream) throws IOException
Saves the specified stream.
save
in interface IComparisonTextFile
stream
- The stream.IOException
- the io exceptionpublic ComparisonDocument convertToDocx() throws Exception
Exception
- the exceptionCopyright © 2018. All rights reserved.