StringResult

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.page.plugins.IOperationResult

public final class StringResult implements IOperationResult

Represents operation result in the form of string.

Constructors

ConstructorDescription
StringResult(String result)Initializes new StringResult instance with a string.

Methods

MethodDescription
equals(Object arg0)
getClass()
getData()Gets raw data.
getText()Returns string representation of the result.
hashCode()
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 a path to an output file.
isString()Indicates whether the result is a string.
notify()
notifyAll()
toFile()Tries to convert the result to a file.
toStream()Tries to convert the result to a stream object.
toString()Tries to convert the result to a string.
wait()
wait(long arg0)
wait(long arg0, int arg1)

StringResult(String result)

public StringResult(String result)

Initializes new StringResult instance with a string.

Parameters:

ParameterTypeDescription
resultjava.lang.StringString representing the result

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getData()

public final Object getData()

Gets raw data.

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

getText()

public final String getText()

Returns string representation of the result.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

isByteArray()

public final boolean isByteArray()

Indicates whether the result is a bytes array.

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

isFile()

public final 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 final boolean isStream()

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

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

isString()

public final boolean isString()

Indicates whether the result is a string.

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

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toFile()

public final String toFile()

Tries to convert the result to a file.

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

toStream()

public final 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 .

toString()

public String toString()

Tries to convert the result to a string.

Returns: java.lang.String - A string representing the text content if the result is string; otherwise returns base.ToString().

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int