X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FEntry.java;h=9b3c52126b0a878e9ee0b4a5881c59336722e905;hb=95caf3bdb2b7946e4f20a45025f730dd47c5985c;hp=d16e6be2c67e69aad205d23dc55219122aec2a38;hpb=ed3c99a566139d0022f78e85d61a63a3876e1725;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/project/Entry.java b/src/net/pterodactylus/jsite/project/Entry.java index d16e6be..9b3c521 100644 --- a/src/net/pterodactylus/jsite/project/Entry.java +++ b/src/net/pterodactylus/jsite/project/Entry.java @@ -19,19 +19,29 @@ package net.pterodactylus.jsite.project; +import java.io.File; + /** - * A file is an entry in a directory. Its name can contain multiple components - * (separated by a slash, ‘/’). + * A file is an entry in a directory. Its name can contain multiple components, + * separated by the platform’s {@link File#separatorChar}. * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public interface Entry { /** + * Returns whether this entry denotes a virtual file. A virtual file entry + * is a file entry that does not have a corresponding file on the disk. + * + * @return true if this entry is a virtual file entry, + * false otherwise + */ + public boolean isVirtual(); + + /** * Returns the name of the file. The name can contain multiple path - * components, separated by a slash (‘/’). It will never start with a slash, - * though. + * components, separated by the platform’s {@link File#separatorChar}. It + * will never start with a separator, though. * * @return The name of the file */