|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.config.transfer.filesystem.FileSystemPropertySink
public final class FileSystemPropertySink
Writes properties to a folder.
Constructor Summary | |
---|---|
FileSystemPropertySink(File targetFolder) Convenience constructor to create native properties files. |
|
FileSystemPropertySink(File targetFolder, PropertiesFormat outputFormat) Default constructor. |
Method Summary | |
---|---|
void |
clear() Removes all information from the sink. |
void |
close() Closes the sink. |
void |
write(Iterable<PropertyProvider> providers) Writes the property definitions provided by the given providers. |
void |
write(PropertyProvider provider) Writes the property definitions provided by the given provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemPropertySink(File targetFolder)
targetFolder
- the name of the folder the properties definitions are written to.
public FileSystemPropertySink(File targetFolder, PropertiesFormat outputFormat) throws NullPointerException
targetFolder
- the name of the folder the properties definitions are written to.
outputFormat
- the format the property definition files will be written to.
NullPointerException
- if
targetFolder
or
outputFormat
is
null
.
Method Detail |
---|
public void clear() throws TransferException
PropertySink
clear
in interface
PropertySink
TransferException
- on any problem clearing the sink.
public void write(PropertyProvider provider) throws TransferException
PropertySink
It is assumed that the writing is transactional. If it is not, the implementation should document that it isn't.
write
in interface
PropertySink
provider
- the provider of property definitions.
TransferException
- on any problem writing the definitions to this sink.
public void write(Iterable<PropertyProvider> providers) throws TransferException
PropertySink
It is assumed that the writing is transactional. If it is not, the implementation should document that it isn't.
write
in interface
PropertySink
providers
- the list of providers to add their property definitions.
TransferException
- on any problem writing property definitions to this sink.
public void close() throws TransferException
This is a no-op.
close
in interface
PropertySink
TransferException
- on any problem closing the sink.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |