Package com.gherynos.libsaltpack
Class InputParameters
java.lang.Object
com.gherynos.libsaltpack.InputParameters
POJO class containing the InputStream and the parameters to parse BaseX armored content.
The alphabet used is BASE62.
-
Constructor Summary
ConstructorsConstructorDescriptionInputParameters(InputStream inputStream) Creates a new InputParameters instance for a specific InputStream. -
Method Summary
Modifier and TypeMethodDescriptiongetApp()Returns the name of the application (used whenarmoredis set to true).Returns the instance ofInputStream.booleanArmored content flag.voidSets the name of the application (used whenarmoredis set to true).voidsetArmored(boolean armored) Armored content flag.
-
Constructor Details
-
InputParameters
Creates a new InputParameters instance for a specific InputStream.- Parameters:
inputStream- the source input stream containing binary or armored data.
-
-
Method Details
-
getInputStream
Returns the instance ofInputStream.- 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 theInputStreamcontains armored code, false otherwise.
-
getApp
Returns the name of the application (used whenarmoredis set to true).- Returns:
- the application name that will be verified in the header/footer of the message contained.
-
setApp
Sets the name of the application (used whenarmoredis set to true).- Parameters:
app- the application name that will be verified in the header/footer of the message contained.
-