Implemented the ResourceStreamWrapper