Package org.apache.torque.generator.outlet

# Klasse OutletResult

java.lang.Object
org.apache.torque.generator.outlet.OutletResult

public class OutletResult extends Object
The result of an outlet. Can either be a String or a byte array.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `OutletResult(byte[] byteArrayResult)`
  Constructor for a byte array result.
  `OutletResult(String stringResult)`
  Constructor for a String result.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `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()`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Konstruktordetails

  - ### OutletResult

    public OutletResult(String stringResult)
    Constructor for a String result.
    Parameter:
      `stringResult` - the String result.

  - ### OutletResult

    public OutletResult(byte[] byteArrayResult)
    Constructor for a byte array result.
    Parameter:
      `byteArrayResult` - the byte array result.

- ## Methodendetails

  - ### getStringResult

    public String getStringResult()
    Returns the string result.
    Gibt zurück:
      the string result, or null if this class contains a byte array result.

  - ### getByteArrayResult

    public byte[] getByteArrayResult()
    Returns the byte array result.
    Gibt zurück:
      the byte array result, or null if this class contains a string result.

  - ### isStringResult

    public boolean isStringResult()
    Returns whether the result type is String. Note: If the instance was constructed with null byte array, this method also returns true.
    Gibt zurück:
      false if the contained byteArray is not null, true otherwise.

  - ### isByteArrayResult

    public boolean isByteArrayResult()
    Returns whether the result type is byte array. Note: If the instance was constructed with null string, this method also returns true.
    Gibt zurück:
      false if the contained String is not null, true otherwise.

  - ### hashCode

    public int hashCode()
    Setzt außer Kraft:
      `hashCode` in Klasse `Object`

  - ### equals

    public boolean equals(Object obj)
    Setzt außer Kraft:
      `equals` in Klasse `Object`

  - ### toString

    public String toString()
    Setzt außer Kraft:
      `toString` in Klasse `Object`

  - ### concatenate

    public static OutletResult concatenate(OutletResult... input) throws GeneratorException
    Concatenates an array of OutletResults.
    Parameter:
      `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).
    Gibt zurück:
      the concatenated input.
    Löst aus:
      `GeneratorException` - if the input outlet results are of a different type.

  - ### concatenate

    public static OutletResult concatenate(Iterable<OutletResult> input) throws GeneratorException
    Concatenates a list of OutletResults.
    Parameter:
      `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).
    Gibt zurück:
      the concatenated input.
    Löst aus:
      `GeneratorException` - if the input outlet results are of a different type.