Resource interface definition

define resource interface and code FileResource