/** * Constructor. * * @param path * The path name or file URI of the represented file (either in * system format or in 'file:///' format). * @param mediaType * The representation's media type. * @param timeToLive * The time to live before it expires (in seconds). * @see java.io.File#File(String) */ public FileRepresentation(String path, MediaType mediaType, int timeToLive) { this(createFile(path), mediaType, timeToLive); }