public class ParameterFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allParametersPresent |
protected boolean |
first |
protected boolean |
keepValues |
protected int |
linesReceived |
protected int |
linesSaved |
protected boolean |
printMonitoring |
protected boolean |
printRaw |
protected boolean |
printTime |
protected boolean |
printUnique |
protected int |
timewindow |
protected int |
unsavedLineCount |
protected boolean |
writeHeader |
protected BufferedWriter |
writer |
| Constructor and Description |
|---|
ParameterFormatter(BufferedWriter writer,
Collection<Yamcs.NamedObjectId> paramList) |
ParameterFormatter(BufferedWriter writer,
Collection<Yamcs.NamedObjectId> paramList,
char columnSeparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getLinesReceived() |
int |
getLinesSaved() |
void |
resetTimeWindow() |
void |
setAllParametersPresent(boolean allParametersPresent) |
void |
setKeepValues(boolean keepValues) |
void |
setPrintMonitoring(boolean printMonitoring) |
void |
setPrintRaw(boolean printRaw) |
void |
setPrintTime(boolean printTime) |
void |
setPrintUnique(boolean printUnique) |
void |
setTimeWindow(int timewindow) |
void |
setWriteHeader(boolean writeHeader) |
void |
updateWriter(OutputStream outputStream,
Charset charset) |
protected void |
writeParameters() |
void |
writeParameters(List<Pvalue.ParameterValue> parameterList)
adds new parameters - if they are written to the output buffer or not depends on the settings
|
protected BufferedWriter writer
protected boolean printTime
protected boolean printRaw
protected boolean printMonitoring
protected boolean printUnique
protected boolean keepValues
protected boolean writeHeader
protected boolean allParametersPresent
protected int timewindow
protected int unsavedLineCount
protected int linesSaved
protected int linesReceived
protected boolean first
public ParameterFormatter(BufferedWriter writer, Collection<Yamcs.NamedObjectId> paramList)
public ParameterFormatter(BufferedWriter writer, Collection<Yamcs.NamedObjectId> paramList, char columnSeparator)
public void updateWriter(OutputStream outputStream, Charset charset)
public void setPrintRaw(boolean printRaw)
public void setPrintMonitoring(boolean printMonitoring)
public void setPrintTime(boolean printTime)
public void setPrintUnique(boolean printUnique)
public void setWriteHeader(boolean writeHeader)
public void setAllParametersPresent(boolean allParametersPresent)
public void setKeepValues(boolean keepValues)
public void setTimeWindow(int timewindow)
public void resetTimeWindow()
public void writeParameters(List<Pvalue.ParameterValue> parameterList) throws IOException
parameterList - IOExceptionprotected void writeParameters()
throws IOException
IOExceptionpublic void flush()
public void close()
throws IOException
IOExceptionpublic int getLinesSaved()
public int getLinesReceived()
Copyright © 2017 Space Applications Services. All rights reserved.