parse stream type