Interface ILcyPropertiesEncoder
- All Known Implementing Classes:
TLcyStringPropertiesCodec
public interface ILcyPropertiesEncoder
Writes ALcyProperties to files or other types of storage.
The supported types of storage and ALcyProperties objects
are defined by the actual implementations of this interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanEncode(ALcyProperties aProps, String aDestinationName) Returns whether this encoder can export the specified properties to the specified destination.voidencode(ALcyProperties aProps, String aDestinationName) Encodes the givenALcyPropertiesinto the given destination.
-
Method Details
-
canEncode
Returns whether this encoder can export the specified properties to the specified destination.
This method will typically check whether the contents of the specified properties are compatible with the format this encoder is written for.
- Parameters:
aProps- the properties to be verified.aDestinationName- the location where the properties should be exported to.- Returns:
trueif this encoder can encode the specified properties to the specified location,falseotherwise.- See Also:
-
encode
Encodes the given
ALcyPropertiesinto the given destination.- Parameters:
aProps- The properties to encode.aDestinationName- The destination name to encode to.- Throws:
IOException- In case of IO failure.
-