context.set(DocumentSelector.class, new ImageDocumentSelector());
if (input.markSupported()) {
input.mark(MAX_MARK);
}
input = new ProgressMonitorInputStream(
this, "Parsing stream", input);
parser.parse(input, handler, md, context);
String[] names = md.names();
Arrays.sort(names);