ITextSplitOptions

All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.IOptions

public interface ITextSplitOptions extends IOptions

Interface for the text splitting options.

Methods

Method Description
getLineNumbers() Line numbers for text splitting.
getMode() Mode for text splitting.
validate(FileType fileType) Validates the split options.
getPathByIndex(int index, String extension) Gets the full file path of splitted document by index with defined extension.
getSplitStreamFactory() Delegate that defines method to create output split stream.

getLineNumbers()

public abstract int[] getLineNumbers()

Line numbers for text splitting.

Returns: int[]

getMode()

public abstract int getMode()

Mode for text splitting.

Returns: int

validate(FileType fileType)

public abstract void validate(FileType fileType)

Validates the split options.

Parameters:

Parameter Type Description
fileType FileType The file type of FileType class.

getPathByIndex(int index, String extension)

public abstract String getPathByIndex(int index, String extension)

Gets the full file path of splitted document by index with defined extension.

Parameters:

Parameter Type Description
index int Index of splitted document.
extension java.lang.String Extension of file.

Returns: java.lang.String - The full file path.

getSplitStreamFactory()

public abstract SplitStreamFactory getSplitStreamFactory()

Delegate that defines method to create output split stream.

Returns: SplitStreamFactory