Class EnumKeyValueConfigurationBinaryObjectParser

    • Method Detail

      • parse

        public IEnumKeyValueConfigurationBinaryObject parse​(java.lang.String input)
                                                     throws java.time.format.DateTimeParseException
        Parse a binary content. Format: [name]|[timestamp]|{mime-type}[content base64 encoded]. The name, timestamp (according to RFC 3339), mime-type and the content (base64 encoded content) are optional values. If the name, timestamp or content are present, they must be separated by a pipe character (|). The mime-type can be declared as header of the content. If there is no pipe character it's assumed its the content part. e.g. myfile.txt|2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or myfile.txt|2021-03-15T08:59:22.123Z|{text/plain} or myfile.txt|2021-03-15T08:59:22.123Z|VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain} or 2021-03-15T08:59:22.123Z|VGV4dAo= or myfile.txt|{text/plain}VGV4dAo= or myfile.txt|{text/plain} or myfile.txt|VGV4dAo= or {text/plain}VGV4dAo= or {text/plain} or VGV4dAo=
        Parameters:
        input - the input
        Returns:
        the parsed object
        Throws:
        java.time.format.DateTimeParseException - In case of an invalid date format
      • format

        public java.lang.String format​(IEnumKeyValueConfigurationBinaryObject enumKeyValueConfigurationBinaryObject)
        Format an IEnumKeyValueConfigurationBinaryObject into string representation.
        Parameters:
        enumKeyValueConfigurationBinaryObject - the object to format
        Returns:
        the string representation: Format: [name]|[timestamp]|{mime-type}[content base64 encoded]. The name, timestamp (according to RFC 3339), mime-type and the content (base64 encoded content) are optional values. If the name, timestamp or content are present, they must be separated by a pipe character (|). The mime-type can be declared as header of the content. If there is no pipe character it's assumed its the content part. e.g. myfile.txt|2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or myfile.txt|2021-03-15T08:59:22.123Z|{text/plain} or myfile.txt|2021-03-15T08:59:22.123Z|VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain} or 2021-03-15T08:59:22.123Z|VGV4dAo= or myfile.txt|{text/plain}VGV4dAo= or myfile.txt|{text/plain} or myfile.txt|VGV4dAo= or {text/plain}VGV4dAo= or {text/plain} or VGV4dAo=