@NotThreadSafe public final class PointValuesDumperOutput extends Object implements PointValuesDumper.Output
Helper class for scripts: it formats VersionedValues produced by a
PointValuesDumper to XML text on a Writer.
| Constructor and Description |
|---|
PointValuesDumperOutput(Writer writer)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the output.
|
void |
flush()
Flushes the output.
|
Optional<DateTime> |
getFirstVersion()
Gets the first version.
|
Optional<DateTime> |
getLastVersion()
Gets the last version.
|
void |
output(VersionedValue versionedValue)
Outputs a versioned value.
|
public PointValuesDumperOutput(@Nonnull
Writer writer)
writer - A writer for the XML text.public void close()
public void flush()
flush in interface PointValuesDumper.Output@Nonnull @CheckReturnValue public Optional<DateTime> getFirstVersion()
@Nonnull @CheckReturnValue public Optional<DateTime> getLastVersion()
public void output(VersionedValue versionedValue) throws Exception
output in interface PointValuesDumper.OutputversionedValue - The versioned value.Exception - When appropriate.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.