Mercurial > hg > digilib-old
diff servlet/src/digilib/io/ImageFile.java @ 576:dad720e9b12b stream
try: DocuDirent as interface, ImageFile inherits from ImageInput and implements DocuDirent
author | robcast |
---|---|
date | Wed, 22 Dec 2010 20:19:06 +0100 |
parents | 790cbfb58b52 |
children | 7357ad8f9f42 |
line wrap: on
line diff
--- a/servlet/src/digilib/io/ImageFile.java Wed Dec 22 18:32:06 2010 +0100 +++ b/servlet/src/digilib/io/ImageFile.java Wed Dec 22 20:19:06 2010 +0100 @@ -50,12 +50,6 @@ } - @Override - public boolean hasFile() { - // this is File-based - return true; - } - /** Returns the file name (without path). * * @return @@ -68,7 +62,6 @@ /** * @return File */ - @Override public File getFile() { if (dir == null) { return null; @@ -103,4 +96,18 @@ } } + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + // try to use File.toString + File f = getFile(); + if (f != null) { + return f.toString(); + } + return super.toString(); + } + + }