DataStream handle different types of device