X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Futil%2Ffreenet%2Ffcp2%2FFileEntry.java;fp=src%2Fde%2Ftodesbaum%2Futil%2Ffreenet%2Ffcp2%2FFileEntry.java;h=0000000000000000000000000000000000000000;hb=0e88169c3e8decfcd99f39f5ecf3a85df50c3fca;hp=7adb11f69857012114ee27e0c5e4b9b1005403c2;hpb=953de352675a4ad91fe307d816a4ea7780c94274;p=jSite.git
diff --git a/src/de/todesbaum/util/freenet/fcp2/FileEntry.java b/src/de/todesbaum/util/freenet/fcp2/FileEntry.java
deleted file mode 100644
index 7adb11f..0000000
--- a/src/de/todesbaum/util/freenet/fcp2/FileEntry.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * jSite - FileEntry.java - Copyright © 2006â2012 David Roden
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-package de.todesbaum.util.freenet.fcp2;
-
-/**
- * Abstract base class of file entries that are used in the
- * {@link de.todesbaum.util.freenet.fcp2.ClientPutComplexDir} command to define
- * the files of an insert.
- *
- * @author David Roden <droden@gmail.com>
- * @version $Id$
- */
-public abstract class FileEntry {
-
- /** The name of the file. */
- private final String filename;
-
- /** The content type of the file. */
- private final String contentType;
-
- /**
- * Creates a new file entry with the specified name and content type. The
- * content type should be a standard MIME type with an additional charset
- * specification for text-based types.
- *
- * @param filename
- * The name of the file
- * @param contentType
- * The content type of the file, e.g.
- * "application/x-tar"
or
- * "text/html; charset=iso8859-15"
- */
- protected FileEntry(String filename, String contentType) {
- this.filename = filename;
- this.contentType = contentType;
- }
-
- /**
- * Returns the name of this entry's type. Can be one of direct
,
- * disk
, or redirect
. This method is
- * implemented by the subclasses {@link DirectFileEntry},
- * {@link DiskFileEntry}, and {@link RedirectFileEntry}, respectively.
- *
- * @return The name of this entry's type
- */
- public abstract String getName();
-
- /**
- * Returns the content type of this file.
- *
- * @return The content type of this file
- */
- public String getContentType() {
- return contentType;
- }
-
- /**
- * Returns the name of this file.
- *
- * @return The name of this file
- */
- public String getFilename() {
- return filename;
- }
-
-}
\ No newline at end of file