/** * Converts from a json string using componentClass as a guide to a List. * * @param json json * @param componentClass componentClass * @param <T> Type * @return List of Java objects of Type T. */ @Override public <T> List<T> fromJsonArray(String json, Class<T> componentClass) { return parser.get().parseList(componentClass, json); }
@Override public <T> List<T> parseList( Class<T> componentType, char[] chars ) { return objectParser.parseList( componentType, chars); }
@Override public <T> List<T> parseList( Class<T> componentType, byte[] jsonBytes ) { return objectParser.parseList( componentType, jsonBytes); }
@Override public <T> List<T> parseList( Class<T> componentType, char[] chars ) { return objectParser.parseList( componentType, chars); }
@Override public <T> List<T> parseList( Class<T> componentType, char[] chars ) { return objectParser.parseList( componentType, chars); }
@Override public <T> List<T> parseList( Class<T> componentType, CharSequence jsonSeq ) { return objectParser.parseList( componentType, jsonSeq); }
@Override public <T> List<T> parseList( Class<T> componentType, InputStream input ) { return objectParser.parseList( componentType, input); }
@Override public <T> List<T> parseList( Class<T> componentType, InputStream input, Charset charset ) { return objectParser.parseList( componentType, input, charset); }
@Override public <T> List<T> parseList( Class<T> componentType, byte[] jsonBytes ) { return objectParser.parseList( componentType, jsonBytes); }
@Override public <T> List<T> parseList( Class<T> componentType, InputStream input ) { return objectParser.parseList( componentType, input); }
@Override public <T> List<T> parseList( Class<T> componentType, InputStream input, Charset charset ) { return objectParser.parseList( componentType, input, charset); }
/** * Converts from a json string using componentClass as a guide to a List. * * @param json json * @param componentClass componentClass * @param <T> Type * @return List of Java objects of Type T. */ @Override public <T> List<T> fromJsonArray(String json, Class<T> componentClass) { return parser.get().parseList(componentClass, json); }
/** * Converts from a json string using componentClass as a guide to a List. * @param json json * @param componentClass componentClass * @param <T> Type * @return List of Java objects of Type T. */ @Override public <T> List<T> fromJsonArray(String json, Class<T> componentClass) { return parser.get().parseList(componentClass, json); }
@Override public <T extends Collection<C>, C> T readValue( Reader src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( byte[] src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( String src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( InputStream src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( String src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( InputStream src, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src )); } else { return(T) this.parserFactory.create().parseList( componentType, src ); } }
@Override public <T extends Collection<C>, C> T readValue( InputStream src, Charset charset, Class<T> valueType, Class<C> componentType ) { Class<?> type = valueType; if (type == List.class) { return(T) this.parserFactory.create().parseList( componentType, src, charset ); } else if (type == Set.class) { return (T) new HashSet(this.parserFactory.create().parseList( componentType, src, charset )); } else if (type == LinkedHashSet.class) { return (T) new LinkedHashSet<>(this.parserFactory.create().parseList( componentType, src, charset )); } else { return(T) this.parserFactory.create().parseList( componentType, src, charset ); } }