public class RecordStream extends Object
DataStream and packs the data into DSRecords.| Constructor and Description |
|---|
RecordStream(Iterable<String> urlColumnNames)
Constructs a record stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream releasing all resources associated to it.
|
String |
getColumnLabel(String name)
Returns the column label from header definition currently in use.
|
DSHeader |
getHeader()
Returns the last processed header.
|
DSRecord |
getNextRecord()
Reads and returns the next record.
|
boolean |
hasNextRecord() |
void |
open(InputStream stream)
Opens the given stream to read records from.
|
public void open(InputStream stream)
stream - the stream to read frompublic DSRecord getNextRecord()
public boolean hasNextRecord()
public void close()
public String getColumnLabel(String name)
name - the name of the columnpublic DSHeader getHeader()
Copyright © 2025 European Spallation Source. All rights reserved.