FileResult

Inheritance: java.lang.Object

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

public final class FileResult implements IOperationResult

Represents operation result in the form of string path to file.

Constructors

ConstructorDescription
FileResult(String path)Initializes a new instance with the specified path to an output file.

Methods

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

FileResult(String path)

public FileResult(String path)

Initializes a new instance with the specified path to an output file.

Parameters:

ParameterTypeDescription
pathjava.lang.StringPath to a file.

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.

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 an output stream.

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

isString()

public final boolean isString()

Indicates whether the result is a text 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()

Returns: java.lang.String

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