public class TidWriter
extends java.lang.Object
# Tides Data
# Time Zone: UTC
# Harbor: Leixoes
2007/12/31 20:42:00.000 2.60
2008/01/01 02:40:00.000 1.38
...
The first line is simply a comment.
The time zone line is optional but if not there TimeZone
UTC is assumed.
The time zones ids to use should adhere to TimeZone
.
The harbor line informs of the harbor location for the data. If not there "?" will appear, so use it.
The header lines should appear at the beginning of the file. If the time zone appear in the middle only the first will be used (but all previous dates will be loaded as UTC). If additional columns are set, they will be loaded as doubles.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HARBOR_STR
Harbor txt for location search
|
static java.lang.String |
TIMEZONE_STR
Time zone txt for search
|
Constructor and Description |
---|
TidWriter(java.io.BufferedWriter writer) |
TidWriter(java.io.BufferedWriter writer,
int decimalHouses) |
Modifier and Type | Method and Description |
---|---|
void |
writeData(long timeMillis,
double... vals)
Writes the date, time and each value passed into a line entry.
|
void |
writeHeader(java.lang.String title)
Writes a header.
|
void |
writeHeader(java.lang.String title,
java.lang.String placeIndicator)
Writes a header.
|
public static final java.lang.String HARBOR_STR
public static final java.lang.String TIMEZONE_STR
public TidWriter(java.io.BufferedWriter writer)
writer
- The writer to be used.public TidWriter(java.io.BufferedWriter writer, int decimalHouses)
writer
- The writer to be used.decimalHouses
- The decimal houses to use for the output.public void writeHeader(java.lang.String title) throws java.lang.Exception
java.lang.Exception
public void writeHeader(java.lang.String title, java.lang.String placeIndicator) throws java.lang.Exception
java.lang.Exception
public void writeData(long timeMillis, double... vals) throws java.lang.Exception
timeMillis
- vals
- java.lang.Exception
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.