@Test public void testYamlObjectListTranslator() { var bytes = classpath("translator/class_events.yaml").getBytes(UTF_8); var i = TranslatorHelper.inputStream2YamlObjectList(Car.class).translate(new ByteArrayInputStream(bytes)); assertThat(i).hasSize(1); checkCar(i.get(0)); }
public static <T> Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper) { return inputStream2ObjectList(mapper, type); }
TranslatorHelper { public static <T> Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper) { return inputStream2ObjectList(mapper, type); } }
TranslatorHelper { public static <T> Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper) { return inputStream2ObjectList(mapper, type); }  }
TranslatorHelper { public static <T> Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper) { return inputStream2ObjectList(mapper, type); }  static Translator<byte[], String> bytes2String(); static Translator<byte[], String> bytes2String(Charset charset); static Translator<byte[], String[]> bytes2Lines(Charset charset); static Translator<InputStream, byte[]> inputStream2Bytes(); static Translator<InputStream, String> inputStream2String(Charset charset); static Translator<InputStream, String[]> inputStream2Lines(Charset charset); static Translator<InputStream, JsonNode> inputStream2Json(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Json(); static Translator<InputStream, T> inputStream2JsonObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2JsonObject(Class<T> type); static Translator<InputStream, T> inputStream2XmlObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2XmlObject(Class<T> type); static Translator<InputStream, List<T>> inputStream2XmlObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2XmlObjectList(Class<T> type); static Translator<InputStream, List<T>> inputStream2JsonObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2JsonObjectList(Class<T> type); static Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type); static Translator<InputStream, JsonNode> inputStream2Xml(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Xml(); static Translator<InputStream, JsonNode> inputStream2Yaml(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Yaml(); static Translator<InputStream, T> inputStream2YamlObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2YamlObject(Class<T> type); static Translator<InputStream, JsonParser> inputStream2XmlParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2XmlParser(); static Translator<InputStream, JsonParser> inputStream2JsonParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2JsonParser(); static Translator<InputStream, JsonParser> inputStream2YamlParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2YamlParser(); static Translator<InputStream, T> gzipped(Translator<InputStream, T> original); }
TranslatorHelper { public static <T> Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper) { return inputStream2ObjectList(mapper, type); }  static Translator<byte[], String> bytes2String(); static Translator<byte[], String> bytes2String(Charset charset); static Translator<byte[], String[]> bytes2Lines(Charset charset); static Translator<InputStream, byte[]> inputStream2Bytes(); static Translator<InputStream, String> inputStream2String(Charset charset); static Translator<InputStream, String[]> inputStream2Lines(Charset charset); static Translator<InputStream, JsonNode> inputStream2Json(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Json(); static Translator<InputStream, T> inputStream2JsonObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2JsonObject(Class<T> type); static Translator<InputStream, T> inputStream2XmlObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2XmlObject(Class<T> type); static Translator<InputStream, List<T>> inputStream2XmlObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2XmlObjectList(Class<T> type); static Translator<InputStream, List<T>> inputStream2JsonObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2JsonObjectList(Class<T> type); static Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type, ObjectMapper mapper); static Translator<InputStream, List<T>> inputStream2YamlObjectList(Class<T> type); static Translator<InputStream, JsonNode> inputStream2Xml(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Xml(); static Translator<InputStream, JsonNode> inputStream2Yaml(ObjectMapper mapper); static Translator<InputStream, JsonNode> inputStream2Yaml(); static Translator<InputStream, T> inputStream2YamlObject(Class<T> type, ObjectMapper mapper); static Translator<InputStream, T> inputStream2YamlObject(Class<T> type); static Translator<InputStream, JsonParser> inputStream2XmlParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2XmlParser(); static Translator<InputStream, JsonParser> inputStream2JsonParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2JsonParser(); static Translator<InputStream, JsonParser> inputStream2YamlParser(ObjectMapper mapper); static Translator<InputStream, JsonParser> inputStream2YamlParser(); static Translator<InputStream, T> gzipped(Translator<InputStream, T> original);  }