public class OutletResult extends Object
Constructor and Description |
---|
OutletResult(byte[] byteArrayResult)
Constructor for a byte array result.
|
OutletResult(String stringResult)
Constructor for a String result.
|
Modifier and Type | Method and Description |
---|---|
static OutletResult |
concatenate(Iterable<OutletResult> input)
Concatenates a list of OutletResults.
|
static OutletResult |
concatenate(OutletResult... input)
Concatenates an array of OutletResults.
|
boolean |
equals(Object obj) |
byte[] |
getByteArrayResult()
Returns the byte array result.
|
String |
getStringResult()
Returns the string result.
|
int |
hashCode() |
boolean |
isByteArrayResult()
Returns whether the result type is byte array.
|
boolean |
isStringResult()
Returns whether the result type is String.
|
String |
toString() |
public OutletResult(String stringResult)
stringResult
- the String result.public OutletResult(byte[] byteArrayResult)
byteArrayResult
- the byte array result.public String getStringResult()
public byte[] getByteArrayResult()
public boolean isStringResult()
public boolean isByteArrayResult()
public static OutletResult concatenate(OutletResult... input) throws GeneratorException
input
- the OutletResults to concatenate,
not null, not empty, must not contain null, all of the same type
(either all string or all byte array).GeneratorException
- if the input outlet results are
of a different type.public static OutletResult concatenate(Iterable<OutletResult> input) throws GeneratorException
input
- the OutletResults to concatenate,
not null, not empty, must not contain null, all of the same type
(either all string or all byte array).GeneratorException
- if the input outlet results are
of a different type.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.