ByteArrayResult
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.page.plugins.IOperationResult
public class ByteArrayResult implements IOperationResult
Represents operation result in the form of the bytes array.
Constructors
| Constructor | Description |
|---|---|
| ByteArrayResult(byte[][] data) | Initializes a new instance with the array of bytes array. |
Methods
| Method | Description |
|---|---|
| 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) |
ByteArrayResult(byte[][] data)
public ByteArrayResult(byte[][] data)
Initializes a new instance with the array of bytes array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | byte[][] | Array of array of bytes. It is used for conversion of document to image. One byte array contains bytes of one page image. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.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:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |