public class StreamWriter extends Object implements BarrelWriter
Constructor and Description |
---|
StreamWriter(DataOutput out)
Writer to a file.
|
Modifier and Type | Method and Description |
---|---|
void |
append(BarrelReader br)
Append the given Barrel to this BarrelWriter's Barrel.
|
void |
close()
Finish all operations so that the Barrel produced is consistent.
|
public StreamWriter(DataOutput out)
out
- output streampublic void append(BarrelReader br) throws IOException
BarrelWriter
append
in interface BarrelWriter
br
- the Barrel to appendIOException
- if an I/O error occurspublic void close()
BarrelWriter
close
in interface AutoCloseable
close
in interface BarrelWriter
Copyright © 2016 Egothor. All Rights Reserved.