removeComments
flag is set, then the comments immediately preceding the property are also removed. If a second set of properties is loaded into an existing set, the lines of the second set are added to the end. Note however, that if a property already stored is present in a stream subsequently loaded, then that property is removed before the new value is set. For example, consider the file
# the first line alpha=one # the second line beta=two
This file is loaded, and then the following is also loaded into the same LayoutPreservingProperties
object
# association beta=band # and finally gamma=raysThe resulting collection sequence of logical lines depends on whether or not
removeComments
was set at the time the second stream is loaded. If it is set, then the resulting list of lines is # the first line alpha=one # association beta=band # and finally gamma=rays
If the flag is not set, then the comment "the second line" is retained, although the key-value pair beta=two
is removed.
|
|
|
|