IOperationResult

public interface IOperationResult

General operation result interface that defines common methods that concrete plugin operation result should implement.

Methods

MethodDescription
getData()Gets raw data.
isByteArray()Indicates whether the result is a bytes array.
isFile()Indicates whether the result is a path to an output file.
isStream()Indicates whether the result is an output stream.
isString()Indicates whether the result is a text string.
toFile()Tries to convert the result to the file.
toStream()Tries to convert the result to a stream object.

getData()

public abstract Object getData()

Gets raw data.

Returns: java.lang.Object - An object representing output data.

isByteArray()

public abstract boolean isByteArray()

Indicates whether the result is a bytes array.

Returns: boolean - true if the result is a bytes array; otherwise false .

isFile()

public abstract boolean isFile()

Indicates whether the result is a path to an output file.

Returns: boolean - true if the result is a file; otherwise false.

isStream()

public abstract boolean isStream()

Indicates whether the result is an output stream.

Returns: boolean - true if the result is a stream object; otherwise false.

isString()

public abstract boolean isString()

Indicates whether the result is a text string.

Returns: boolean - true if the result is a string; otherwise false.

toFile()

public abstract String toFile()

Tries to convert the result to the file.

Returns: java.lang.String - A string representing the path to the output file if the result is file; otherwise null.

toStream()

public abstract OutputStream toStream()

Tries to convert the result to a stream object.

Returns: java.io.OutputStream - A stream object representing the output data if the result is stream; otherwise null .