private Map < String , String > readHeaderTags ( DataInputStream dis ) throws IOException { int numHeaderTags = dis . readShort ( ) ; Map < String , String > headerTags = new HashMap < String , String > ( ) ; for ( int i = 0 ; i < numHeaderTags ; i ++ ) { headerTags . put ( dis . readUTF ( ) , dis . readUTF ( ) ) ; } return headerTags ; }
Map of string header tags reading .