Package com.powsybl.psse.model.io
Class AbstractRecordGroup<T>
java.lang.Object
com.powsybl.psse.model.io.AbstractRecordGroup<T>
- Author:
- Luma Zamarreño <zamarrenolm at aia.es>, José Antonio Marqués <marquesja at aia.es>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRecordGroup
(RecordGroupIdentification identification, String... fieldNames) -
Method Summary
Modifier and TypeMethodDescriptionbuildRecord
(T object, String[] headers, String[] quoteFields, Context context) String[]
fieldNames
(PsseVersion version) parseSingleRecord
(String record, String[] headers, Context context) String[]
read
(LegacyTextReader reader, Context context) readFromStrings
(List<String> records, Context context) readHead
(LegacyTextReader reader, Context context) protected void
withFieldNames
(PsseVersion.Major version, String... fieldNames) protected void
withIO
(FileFormat fileFormat, com.powsybl.psse.model.io.RecordGroupIO<T> rw) protected void
withIO
(FileFormat fileFormat, PsseVersion.Major version, com.powsybl.psse.model.io.RecordGroupIO<T> io) protected void
withQuotedFields
(String... quotedFields) void
write
(List<T> psseObjects, Context context, OutputStream outputStream) void
writeHead
(T psseObject, Context context, OutputStream outputStream)
-
Field Details
-
identification
-
-
Constructor Details
-
AbstractRecordGroup
-
-
Method Details
-
withFieldNames
-
withIO
-
withIO
protected void withIO(FileFormat fileFormat, PsseVersion.Major version, com.powsybl.psse.model.io.RecordGroupIO<T> io) -
withQuotedFields
-
getIdentification
-
fieldNames
-
quotedFields
-
psseTypeClass
-
read
- Throws:
IOException
-
write
-
readHead
- Throws:
IOException
-
writeHead
-
readFromStrings
-
parseSingleRecord
-
buildRecord
-
buildRecords
-