Class ManifestUtils
java.lang.Object
com.sun.enterprise.universal.collections.ManifestUtils
all-static methods for handling operations with Manifests
It automatically replace all occurences of EOL_TOKEN with linefeeds
- Author:
- bnevins
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic final Stringnormalize(Attributes att) Convert an Aattributes object into a MapConvert a Manifest into an easier data structure.
-
Field Details
-
EOL_TOKEN
Embed this token to encode linefeeds in Strings that are placed in Manifest objects- See Also:
-
MAIN_ATTS
The name of the Manifest's main attributes.- See Also:
-
EOL
The line separator character on this OS
-
-
Method Details
-
normalize
Convert a Manifest into an easier data structure. It returns a Map of Maps. The main attributes become the map where the key is MAIN_ATTS. Entries become named maps as in the Manifest- Parameters:
m-- Returns:
-
normalize
Convert an Aattributes object into a Map- Parameters:
att-- Returns:
-
encode
-
getMain
-
decode
-