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(Writer)to write DFQ content to a given writer or#getData()to get DFQ content as a String. DFQ content is created lazily when one of these methods is called.- 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(AqdefObjectModel aqdefObjectModel, Writer writer)Creates AQDEF structure and writes it to a givenwriterStringwriteToString(AqdefObjectModel aqdefObjectModel)Creates AQDFQ structure and returns it as a String
-
-
-
Method Detail
-
writeToString
public String writeToString(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(AqdefObjectModel aqdefObjectModel, Writer writer) throws IOException
Creates 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
-
-