Defines a common API to handle file objects independently of storage.