public class FileCollector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileCollector.BinaryCollectedEntry |
static class |
FileCollector.CollectedEntry |
static class |
FileCollector.LinesCollectedEntry |
| Constructor and Description |
|---|
FileCollector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume(java.lang.String name,
byte[] bytes)
Add a binary file to the collector.
|
boolean |
consume(java.lang.String name,
java.util.List<java.lang.String> lines)
Adds a List of lines to the collector.
|
java.util.Map<java.lang.String,FileCollector.CollectedEntry> |
get() |
FileCollector.CollectedEntry |
getSingleFile() |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
java.util.Collection<FileCollector.CollectedEntry> |
values() |
public boolean consume(java.lang.String name,
java.util.List<java.lang.String> lines)
name - The file name.lines - The lines in the file.public boolean consume(java.lang.String name,
byte[] bytes)
name - The file name.bytes - The bytes to add.public java.util.Map<java.lang.String,FileCollector.CollectedEntry> get()
public java.util.Set<java.lang.String> keySet()
public java.util.Collection<FileCollector.CollectedEntry> values()
public boolean isEmpty()
public FileCollector.CollectedEntry getSingleFile()