2 * jSite - DiskFileEntry.java - Copyright © 2006–2012 David Roden
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 package de.todesbaum.util.freenet.fcp2;
22 * A {@link FileEntry} that reads the content from a file on the disk.
24 * @author David Roden <droden@gmail.com>
27 public class DiskFileEntry extends FileEntry {
29 /** The local file name. */
30 private final String localFilename;
33 * Creates a new {@link FileEntry} with the specified name and content type
34 * that is read from the file specified by <code>localFilename</code>.
37 * The name of the file
39 * The content type of the file
40 * @param localFilename
41 * The name of the local file that holds the content of the file
44 public DiskFileEntry(String filename, String contentType, String localFilename) {
45 super(filename, contentType);
46 this.localFilename = localFilename;
53 public String getName() {
58 * Returns the name of the local file that holds the content for this file.
60 * @return The name of the local file
62 public String getLocalFilename() {