(InputStream fileInputStream)
| 17 | } |
| 18 | |
| 19 | private void loadAll(InputStream fileInputStream) { |
| 20 | Yaml yaml = new Yaml(); |
| 21 | this.documents = new ArrayList<>(); |
| 22 | Iterable<Object> allDocs = yaml.loadAll(fileInputStream); |
| 23 | allDocs.forEach(documents::add); |
| 24 | if (!this.documents.isEmpty()) { |
| 25 | this.temp = this.documents.get(0); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | public YamlUtil prefix(String prefix) { |
| 30 | if (prefix == null || prefix.trim().isEmpty()) { |