DirectoryListing.java revision 9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* Portions Copyright 2011 Jens Elkner.
*/
/**
* Generates HTML listing of a Directory
*/
public class DirectoryListing {
private final EftarFileReader desc;
private final long now;
public DirectoryListing() {
}
}
/**
* modification time and size.
*
* @param out write destination
* @param child the file or directory to use for writing the data
* @param modTime the time of the last commit that touched {@code child},
* or {@code null} if unknown
* @param dateFormatter the formatter to use for pretty printing dates
*
* @throws NullPointerException if a parameter is {@code null}
*/
throws IOException {
} else {
}
// if (isDir) {
// }
}
/**
* Write a htmlized listing of the given directory to the given destination.
*
* @param contextPath path used for link prefixes
* @param dir the directory to list
* @param out write destination
* @param path virtual path of the directory (usually the path name of
* <var>dir</var> with the opengrok source directory stripped off).
* @param files basenames of potential children of the directory to list.
* Gets filtered by {@link IgnoredNames}.
* @return a possible empty list of README files included in the written
* listing.
* @throws org.opensolaris.opengrok.history.HistoryException when we cannot
* get result from scm
*
* @throws java.io.IOException when any I/O problem
* @throws NullPointerException if a parameter except <var>files</var>
* is {@code null}
*/
throws HistoryException, IOException {
// TODO this belongs to a jsp, not here
int offset = -1;
if (parentFNode != null) {
}
}
if (offset > 0) {
}
// print the '..' entry even for empty directories
}
continue;
}
continue;
}
{
}
if (isDir) {
} else {
}
if (offset > 0) {
} else {
}
}
}
}
return readMes;
}
}