Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Søren Vejrup Carlsen
committed
Sep 15, 2015
1 parent
618a86e
commit 4cb48bb
Showing
4 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../dk/netarkivet/common/distribute/arcrepository/bitrepository/GetFileIDsListFormatter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package dk.netarkivet.common.distribute.arcrepository.bitrepository; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
|
||
import org.bitrepository.commandline.output.OutputHandler; | ||
import org.bitrepository.commandline.outputformatter.GetFileIDsOutputFormatter; | ||
import org.bitrepository.commandline.resultmodel.FileIDsResult; | ||
|
||
public class GetFileIDsListFormatter implements GetFileIDsOutputFormatter { | ||
|
||
List<String> result = new ArrayList<String>(); | ||
//private OutputHandler outputHandler; | ||
|
||
public GetFileIDsListFormatter(OutputHandler outputHandler) { | ||
//this.outputHandler = outputHandler; | ||
} | ||
|
||
@Override | ||
public void formatHeader() { | ||
} | ||
|
||
@Override | ||
public void formatResult(Collection<FileIDsResult> results) { | ||
for (FileIDsResult a: results) { | ||
result.add(a.getID()); | ||
} | ||
} | ||
|
||
public List<String> getFoundIds() { | ||
return result; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters