@Service public class StructureWriterManagerImpl extends java.lang.Object implements StructureWriterManager, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
StructureWriterManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
writeStructure(MaintainableBean bean,
HeaderBean header,
StructureFormat outputFormat,
java.io.OutputStream out)
Writes the contents of the bean out to the output stream in the version specified.
|
void |
writeStructures(SdmxBeans beans,
StructureFormat outputFormat,
java.io.OutputStream out)
Writes the contents of the beans out to the output stream in the format specified.
|
public void writeStructures(SdmxBeans beans, StructureFormat outputFormat, java.io.OutputStream out)
StructureWriterManager
writeStructures
in interface StructureWriterManager
beans
- the beans to write to the output streamoutputFormat
- the output format of the message (required)out
- - the stream to write to, the stream is closed on completion, this can be null if not required (i.e the outputFormat
may contain a writer)public void writeStructure(MaintainableBean bean, HeaderBean header, StructureFormat outputFormat, java.io.OutputStream out)
StructureWriterManager
writeStructure
in interface StructureWriterManager
header
- can be null, if null will create a default headeroutputFormat
- the output format of the message (required)out
- - the stream to write to, the stream is NOT closed on completion, this can be null if not required (i.e the outputFormat
may contain a writer)public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException