Package cz.diribet.aqdef.writer
Class AqdefWriter
- java.lang.Object
-
- cz.diribet.aqdef.writer.AqdefWriter
-
- All Implemented Interfaces:
AqdefConstants
public class AqdefWriter extends Object implements AqdefConstants
WritesAqdefObjectModelto AQDFQ text structure.You can call
writeTo(AqdefObjectModel, Writer)to write DFQ content to a given writer orwriteToString(AqdefObjectModel)to get DFQ content as a String.- Author:
- Vlastimil Dolejs
-
-
Field Summary
-
Fields inherited from interface cz.diribet.aqdef.AqdefConstants
LINE_SEPARATOR, MEASURED_VALUES_CHARACTERISTIC_SEPARATOR, MEASURED_VALUES_DATA_SEPARATOR, VALUES_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description AqdefWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteTo(@NonNull AqdefObjectModel aqdefObjectModel, @NonNull Writer writer)Creates AQDEF structure and writes it to a givenwriterStringwriteToString(@NonNull AqdefObjectModel aqdefObjectModel)Creates AQDFQ structure and returns it as a String
-
-
-
Method Detail
-
writeToString
public String writeToString(@NonNull @NonNull AqdefObjectModel aqdefObjectModel)
Creates AQDFQ structure and returns it as a String- Parameters:
aqdefObjectModel- model to be written, must not benull- Returns:
- AQDFQ content as a String, never
null
-
writeTo
public void writeTo(@NonNull @NonNull AqdefObjectModel aqdefObjectModel, @NonNull @NonNull Writer writer) throws IOExceptionCreates AQDEF structure and writes it to a givenwriter- Parameters:
aqdefObjectModel- model to be written, must not benullwriter- writer to write model to, must not benull- Throws:
IOException- thrown when some I/O error occur
-
-