Home | History | Annotate | Download | only in entity

Lines Matching refs:file

8  * or more contributor license agreements.  See the NOTICE file
10 * regarding copyright ownership. The ASF licenses this file
12 * "License"); you may not use this file except in compliance
34 import java.io.File;
41 * An entity whose content is retrieved from a file.
56 protected final File file;
58 public FileEntity(final File file, final String contentType) {
60 if (file == null) {
61 throw new IllegalArgumentException("File may not be null");
63 this.file = file;
72 return this.file.length();
76 return new FileInputStream(this.file);
83 InputStream instream = new FileInputStream(this.file);
106 // File instance is considered immutable