Because all entries of a Properties instance are Strings, a single element is used for each property with two attributes; one for key and one for value.
Additionally, default properties are also serialized, if they are present or if a SecurityManager is set, and it has permissions for SecurityManager.checkPackageAccess, SecurityManager.checkMemberAccess(this, EnumSet.MEMBER) and ReflectPermission("suppressAccessChecks").
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements com. |
| public void | marshal(Object
The object to be marshalled. source, HierarchicalStreamWriter A stream to write to. writer, MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Implements com. |
| sort | back to summary |
|---|---|
| private final boolean sort | |
| PropertiesConverter | back to summary |
|---|---|
| public PropertiesConverter() | |
| PropertiesConverter | back to summary |
|---|---|
| public PropertiesConverter(boolean sort) | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Field |
| Access | Constructor and Description |
|---|---|
| private |
| defaultsField | back to summary |
|---|---|
| private static final Field defaultsField | |
| Reflections | back to summary |
|---|---|
| private Reflections() | |