Class InputParameters

java.lang.Object
com.gherynos.libsaltpack.InputParameters

public class InputParameters extends Object
POJO class containing the InputStream and the parameters to parse BaseX armored content.

The alphabet used is BASE62.

  • Constructor Details

    • InputParameters

      public InputParameters(InputStream inputStream)
      Creates a new InputParameters instance for a specific InputStream.
      Parameters:
      inputStream - the source input stream containing binary or armored data.
  • Method Details

    • getInputStream

      public InputStream getInputStream()
      Returns the instance of InputStream.
      Returns:
      the input stream.
    • isArmored

      public boolean isArmored()
      Armored content flag.
      Returns:
      true if the input stream contains armored content, false otherwise.
    • setArmored

      public void setArmored(boolean armored)
      Armored content flag.
      Parameters:
      armored - set true if the InputStream contains armored code, false otherwise.
    • getApp

      public String getApp()
      Returns the name of the application (used when armored is set to true).
      Returns:
      the application name that will be verified in the header/footer of the message contained.
    • setApp

      public void setApp(String app)
      Sets the name of the application (used when armored is set to true).
      Parameters:
      app - the application name that will be verified in the header/footer of the message contained.