// This is necessary to accommodate the test suite since you cannot open a Reader more
// than once from within the same process.
static void export(SSTableReader reader, PrintStream outs, String[] excludes) throws IOException
{
SSTableScanner scanner = reader.getScanner(INPUT_FILE_BUFFER_SIZE);
Set<String> excludeSet = new HashSet();
if (excludes != null)
excludeSet = new HashSet<String>(Arrays.asList(excludes));
outs.println("{");
while(scanner.hasNext())
{
IteratingRow row = scanner.next();
if (excludeSet.contains(row.getKey().key))
continue;
try
{
String jsonOut = serializeRow(row);
outs.print(" " + jsonOut);
if (scanner.hasNext())
outs.println(",");
else
outs.println();
}
catch (IOException ioexcep)