private static final Logger LOGGER = LoggerFactory.getLogger(ApacheDirectoryListingParser.class);
public List<String> parse(URI baseURI, InputStream content, String contentType) throws Exception {
baseURI = addTrailingSlashes(baseURI);
if (contentType == null || !contentType.startsWith("text/html")) {
throw new ResourceException(String.format("Unsupported ContentType %s for DirectoryListing", contentType));
}
String contentEncoding = UriResource.extractCharacterEncoding(contentType, "utf-8");
final Reader htmlText = new InputStreamReader(content, contentEncoding);
final InputSource inputSource = new InputSource(htmlText);
final SAXParser htmlParser = new SAXParser();