public class ByteArrayResult extends Object implements IOperationResult
Represents operation result in the form of the bytes array.
| Constructor and Description |
|---|
ByteArrayResult(byte[][] data)
Initializes a new instance with the array of bytes array.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Gets raw data.
|
boolean |
isByteArray()
Indicates whether the result is a bytes array.
|
boolean |
isFile()
Indicates whether the result is a path to an output file.
|
boolean |
isStream()
Indicates whether the result is an output stream.
|
boolean |
isString()
Indicates whether the result is a text string.
|
String |
toFile()
Tries to convert the result to a file.
|
OutputStream |
toStream()
Tries to convert the result to a stream object.
|
public ByteArrayResult(byte[][] data)
Initializes a new instance with the array of bytes array.
data - Array of array of bytes. It is used for conversion of document to image. One byte array contains bytes of one page image.public final boolean isFile()
Indicates whether the result is a path to an output file.
isFile in interface IOperationResulttrue if the result is a file; otherwise false.public final boolean isStream()
Indicates whether the result is an output stream.
isStream in interface IOperationResulttrue if the result is a stream object; otherwise false.public final boolean isString()
Indicates whether the result is a text string.
isString in interface IOperationResulttrue if the result is a string; otherwise false.public final boolean isByteArray()
Indicates whether the result is a bytes array.
isByteArray in interface IOperationResulttrue if the result is a bytes array; otherwise false.public final Object getData()
Gets raw data.
getData in interface IOperationResultobject representing output data.public final String toFile()
Tries to convert the result to a file.
toFile in interface IOperationResultnull.public final OutputStream toStream()
Tries to convert the result to a stream object.
toStream in interface IOperationResultnull.Copyright © 2025 Aspose. All Rights Reserved.