private void writeMap( StoreChannel channel, Map<String, Map<String, String>> map ) throws IOException { IoPrimitiveUtils.writeInt( channel, buffer( 4 ), map.size() ); for ( Map.Entry<String, Map<String, String>> entry : map.entrySet() ) { writeString( channel, entry.getKey() ); writeInt( channel, entry.getValue().size() ); for ( Map.Entry<String, String> propertyEntry : entry.getValue().entrySet() ) { writeString( channel, propertyEntry.getKey() ); writeString( channel, propertyEntry.getValue() ); } } }
private void writeMap( StoreChannel channel, Map<String, Map<String, String>> map ) throws IOException { IoPrimitiveUtils.writeInt( channel, buffer( 4 ), map.size() ); for ( Map.Entry<String, Map<String, String>> entry : map.entrySet() ) { writeString( channel, entry.getKey() ); writeInt( channel, entry.getValue().size() ); for ( Map.Entry<String, String> propertyEntry : entry.getValue().entrySet() ) { writeString( channel, propertyEntry.getKey() ); writeString( channel, propertyEntry.getValue() ); } } }