private List<BatchRequestPart> parseBatch(final InputStream in, final String boundary, final BatchRequestTransformator transformator) throws IOException, BatchDeserializerException { final List<BatchRequestPart> resultList = new LinkedList<BatchRequestPart>(); final List<List<Line>> bodyPartStrings = splitBodyParts(in, boundary); for (List<Line> bodyPartString : bodyPartStrings) { BatchBodyPart bodyPart = new BatchBodyPart(bodyPartString, boundary, options.isStrict()).parse(); resultList.addAll(transformator.transform(bodyPart)); } return resultList; }
private List<BatchRequestPart> parseBatch(final InputStream in, final String boundary, final BatchRequestTransformator transformator) throws IOException, BatchDeserializerException { final List<BatchRequestPart> resultList = new LinkedList<BatchRequestPart>(); final List<List<Line>> bodyPartStrings = splitBodyParts(in, boundary); for (List<Line> bodyPartString : bodyPartStrings) { BatchBodyPart bodyPart = new BatchBodyPart(bodyPartString, boundary, options.isStrict()).parse(); resultList.addAll(transformator.transform(bodyPart)); } return resultList; }