Interface OrderParser

    • Method Detail

      • read

        @Deprecated
        boolean read​(java.io.Reader in)
        Deprecated.
        Should use parse(String, Locale) instead
        Parses one line of text from the specified stream by tokenizing it and checking the syntax.
        Parameters:
        in - the stream to read the order from.
        Returns:
        true if the syntax of the order read is valid, false else.
      • getTokens

        @Deprecated
        java.util.List<OrderToken> getTokens()
        Deprecated.
        Should use parse(String, Locale) instead
        Returns the tokens read by the parser.
        Returns:
        all OrderToken object produced by the underlying OrderTokenizer by reading a order.
      • parse

        Order parse​(java.lang.String text,
                    java.util.Locale orderLocale)
        Parses an order line and converts it into an Order object.
        Parameters:
        text - One line of text
        orderLocale - The locale of the orders
        Returns:
        An order object with line as text and the parsed token.
      • getOrderTokenizer

        OrderTokenizer getOrderTokenizer​(java.io.Reader reader)