Class PartialMessageParser
java.lang.Object
eu.europa.ec.taxud.dac8.vm.validation.PartialMessageParser
PartialMessageParser tries to guess additional information on the header from the ValidationParameters:
PartialMessageParser tries to extract them from the message by reading at most the first 1500 bytes of the
message, interpreting them as an UTF-8 String, and applying regular expressions or a similar heuristic.
PartialMessageParser never fails. If some data cannot be retrieved, it will be set to null in the returned
MessageHeader.-
Constructor Summary
ConstructorsConstructorDescriptionPartialMessageParser(eu.europa.ec.taxud.validation.input.ValidationInput input, eu.europa.ec.taxud.validation.ValidationContext context) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod used to retrieve values using RegEx.
-
Constructor Details
-
PartialMessageParser
public PartialMessageParser(eu.europa.ec.taxud.validation.input.ValidationInput input, eu.europa.ec.taxud.validation.ValidationContext context) throws IOException Default constructor.- Parameters:
input- contains the source from which the parser will try to parse the information.context- the context to be updated with the parsed information.- Throws:
IOException- the io exception
-
-
Method Details
-
readValuesUsingRegExp
public void readValuesUsingRegExp()Method used to retrieve values using RegEx.
-