Class TranslatorHelper


  • public abstract class TranslatorHelper
    extends java.lang.Object
    • Constructor Detail

      • TranslatorHelper

        public TranslatorHelper()
    • Method Detail

      • bytes2String

        public static Translator<byte[],​java.lang.String> bytes2String()
      • bytes2String

        public static Translator<byte[],​java.lang.String> bytes2String​(java.nio.charset.Charset charset)
      • bytes2Lines

        public static Translator<byte[],​java.lang.String[]> bytes2Lines​(java.nio.charset.Charset charset)
      • inputStream2Bytes

        public static Translator<java.io.InputStream,​byte[]> inputStream2Bytes()
      • inputStream2String

        public static Translator<java.io.InputStream,​java.lang.String> inputStream2String​(java.nio.charset.Charset charset)
      • inputStream2Lines

        public static Translator<java.io.InputStream,​java.lang.String[]> inputStream2Lines​(java.nio.charset.Charset charset)
      • inputStream2Json

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Json​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2Json

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Json()
      • inputStream2JsonObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2JsonObject​(java.lang.Class<T> type,
                                                                                         com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2JsonObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2JsonObject​(java.lang.Class<T> type)
      • inputStream2XmlObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2XmlObject​(java.lang.Class<T> type,
                                                                                        com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2XmlObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2XmlObject​(java.lang.Class<T> type)
      • inputStream2XmlObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2XmlObjectList​(java.lang.Class<T> type,
                                                                                                            com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2XmlObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2XmlObjectList​(java.lang.Class<T> type)
      • inputStream2JsonObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2JsonObjectList​(java.lang.Class<T> type,
                                                                                                             com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2JsonObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2JsonObjectList​(java.lang.Class<T> type)
      • inputStream2YamlObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2YamlObjectList​(java.lang.Class<T> type,
                                                                                                             com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2YamlObjectList

        public static <T> Translator<java.io.InputStream,​java.util.List<T>> inputStream2YamlObjectList​(java.lang.Class<T> type)
      • inputStream2Xml

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Xml​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2Xml

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Xml()
      • inputStream2Yaml

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Yaml​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2Yaml

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.databind.JsonNode> inputStream2Yaml()
      • inputStream2YamlObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2YamlObject​(java.lang.Class<T> type,
                                                                                         com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2YamlObject

        public static <T> Translator<java.io.InputStream,​T> inputStream2YamlObject​(java.lang.Class<T> type)
      • inputStream2XmlParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2XmlParser​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2XmlParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2XmlParser()
      • inputStream2JsonParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2JsonParser​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2JsonParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2JsonParser()
      • inputStream2YamlParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2YamlParser​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • inputStream2YamlParser

        public static Translator<java.io.InputStream,​com.fasterxml.jackson.core.JsonParser> inputStream2YamlParser()
      • gzipped

        public static <T> Translator<java.io.InputStream,​T> gzipped​(Translator<java.io.InputStream,​T> original)