If I have a bufferedReader which reads lines from the following text file. How can I make the reader read for example the tag ITEM_TYPE of the first ITEM and then return and reads the tag CODE and continue to all the other tags( of the first ITEM)?
ITEM_LIST
{
ITEM
{
CODE ADLS443
ITEM_TYPE tv
MODEL IDL32KJX4300
MODEL_YEAR 2016
MANUFACTURER Samsung
PRICE 350
PANEL_TYPE LCD
DIMENSIONS 32
RESOLUTION "Full HD"
INTERFACES "HDMI USB SCART"
PIECES 43
}
ITEM
{
CODE KD444211
ITEM_TYPE tv
MODEL KDL49DDR4600
MODEL_YEAR 2014
MANUFACTURER Sony
PRICE 600
PANEL_TYPE LED
DIMENSIONS 49
RESOLUTION "Ultra HD"
INTERFACES "HDMI USB SCART Ethernet WiFi"
PIECES 8
}