Class GjRowCollector
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.format.geojson.tools.GjRowCollector
Collects all elements for a single row in a CSV file.
First, each element is registered by its header name. This returns the index
of the element. After this, for each row, each element is collected in order.
If one or more elements are skipped, the elements set to null. Finally, the
entire row is flushed to the CSVPrinter, and the collector is reset.
- Author:
- scf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectEntry(String headerName, Object value) Collect a new value for the element.voidCollect the ID for the element.voidflush()Flush the Feature to the FeatureCollection, and reset the collector.voidvoidsetNextLink(String nextLink)
-
Constructor Details
-
GjRowCollector
public GjRowCollector()Create a new Collector.
-
-
Method Details
-
getCollection
-
setNextLink
-
setCount
-
collectId
Collect the ID for the element.- Parameters:
value- The value of the id for the current row.
-
collectEntry
Collect a new value for the element.- Parameters:
headerName- The name of the element.value- The value of the element for the current row.
-
flush
public void flush()Flush the Feature to the FeatureCollection, and reset the collector.
-