(Output output, String boundary, String key, Object object)
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public void write(Output output, String boundary, String key, Object object) |
| 45 | throws EncodeException { |
| 46 | val map = toMap(object); |
| 47 | for (val entry : map.entrySet()) { |
| 48 | val writer = findApplicableWriter(entry.getValue()); |
| 49 | if (writer == null) { |
| 50 | continue; |
| 51 | } |
| 52 | |
| 53 | writer.write(output, boundary, entry.getKey(), entry.getValue()); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | private Writer findApplicableWriter(Object value) { |
| 58 | for (val writer : writers) { |
nothing calls this directly
no test coverage detected