public class Extractor extends Object implements BarrelWriter
Modifier and Type | Method and Description |
---|---|
void |
append(BarrelReader b)
Write contents of the Barrel to standard output.
|
void |
close()
Finish all operations so that the Barrel produced is consistent.
|
static void |
main(String[] args)
Dump the barrel that is stored in the directory specified in the
first command line parameter.
|
public Extractor(String terms, String output) throws IOException
terms
- output
- IOException
public static void main(String[] args)
args
- the directory the barrel to dump is stored inpublic void close()
BarrelWriter
close
in interface AutoCloseable
close
in interface BarrelWriter
public void append(BarrelReader b) throws IOException
append
in interface BarrelWriter
b
- a BarrelReader to read the contents of the BarrelIOException
- if an I/O error occursCopyright © 2016 Egothor. All Rights Reserved.