public class SDRFWriter extends Writer
BufferedWriter
with the SDRF writer ensuring buffering at that level.
Closing an SDRFWriter
closes the underlying writer, but has no other effect.Constructor and Description |
---|
SDRFWriter(Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(SDRF sdrf)
Writes out the SDRF to the underlying writer, without printing any stdout.
|
void |
write(SDRF sdrf,
boolean printStdout)
Writes out the SDRF to the underlying, specifying whether to convert information about progress to standard out.
|
public SDRFWriter(Writer writer)
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void write(SDRF sdrf) throws IOException
writeSDRF(sdrf, writer, false)
sdrf
- the SDRF to convertIOException
- if the writer refused to accept bytes, or the SDRF was formatted in such a way as to make
writing impossiblepublic void write(SDRF sdrf, boolean printStdout) throws IOException
sdrf
- the SDRF to convertprintStdout
- whether or not to print progress information to standard outIOException
- if the writer refused to accept bytes, or the SDRF was formatted in such a way as to make
writing impossibleCopyright © 2014. All rights reserved.