CMS-2710 Move Content Types to File.
Make sure icon input streams are closed after reading.