I am new to java i want to store all class names(only name) of particular css file in hashmap or vector please help me i want to store BODY,.title, .surveyinstruct,.parthdr in hashmap
e.g
BODY{
font-family: sans-serif;
color: #cccccc;
font-size: medium;
font-style: normal;
font-weight: bold;
background-color: black;
background-image: url(images/BLACKbody_whitemarble.jpg);
}
.title{
font-family: sans-serif;
color: Navy;
font-size: medium;
font-style: normal;
font-weight: bold;
background-color: Transparent;
border: no;
}
.surveyinstruct{
font-family: Arial;
color: black;
font-size: small;
font-style: normal;
font-weight: normal;
background-color: Transparent;
border: no;
}
.parthdr{
color: Navy;
font-size: x-small;
font-style: normal;
font-weight: bold;
background-color: #999999;
border: no;
font-family: Arial;
}
now i have to store BODY,.title,.surveyinstruct ,.parthdr in hashmap or vector
i.e hashmap should contain all class names which i can use for further work
thanks in advance
You can use CSS Parser. It’s not perfect and that simple, but it gives you a lot more…