public final class ProtoConfigWriter extends Object implements ConfigWriter
ConfigWriter for protobuf format config files.| Constructor and Description |
|---|
ProtoConfigWriter(OutputStream writer,
boolean writeAsText)
Constructs a writer for a protobuf config file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeComponent(Map<String,String> attributes,
Map<String,Property> properties) |
void |
writeEndComponents() |
void |
writeEndDocument() |
void |
writeGlobalProperties(Map<String,String> props) |
void |
writeSerializedObjects(Map<String,SerializedObject> map) |
void |
writeStartComponents() |
void |
writeStartDocument() |
public ProtoConfigWriter(OutputStream writer, boolean writeAsText)
writer - The writer to write to.writeAsText - Write as text instead of binary.public void writeStartDocument() throws ConfigWriterException
writeStartDocument in interface ConfigWriterConfigWriterExceptionpublic void writeEndDocument() throws ConfigWriterException
writeEndDocument in interface ConfigWriterConfigWriterExceptionpublic void writeGlobalProperties(Map<String,String> props) throws ConfigWriterException
writeGlobalProperties in interface ConfigWriterConfigWriterExceptionpublic void writeSerializedObjects(Map<String,SerializedObject> map) throws ConfigWriterException
writeSerializedObjects in interface ConfigWriterConfigWriterExceptionpublic void writeStartComponents() throws ConfigWriterException
writeStartComponents in interface ConfigWriterConfigWriterExceptionpublic void writeComponent(Map<String,String> attributes, Map<String,Property> properties)
writeComponent in interface ConfigWriterpublic void writeEndComponents() throws ConfigWriterException
writeEndComponents in interface ConfigWriterConfigWriterExceptionpublic void close() throws ConfigWriterException
close in interface ConfigWriterConfigWriterExceptionCopyright © 2022. All rights reserved.