pull/1/head
Michael Peter Christen 13 years ago
parent 9ad1d8dde2
commit 8d63a5887c

@ -12,7 +12,7 @@
{ {
var f = document.getElementById('QueuesTable'); var f = document.getElementById('QueuesTable');
f.contentWindow.location.reload(true); f.contentWindow.location.reload(true);
setTimeout("refreshiframe()", 1000); setTimeout("refreshiframe()", 2000);
} }
</script> </script>
</head> </head>

@ -496,7 +496,6 @@ public class ContentScraper extends AbstractScraper implements Scraper {
Log.logException(e); Log.logException(e);
return cleanLine(super.stripAll(inlineHtml)); return cleanLine(super.stripAll(inlineHtml));
} finally { } finally {
scraper.close();
try { try {
writer.close(); writer.close();
} catch (IOException e) { } catch (IOException e) {

@ -510,6 +510,7 @@ public final class TransformerWriter extends Writer {
// the filter process is messed up // the filter process is messed up
// instead, we simply flush the underlying output stream // instead, we simply flush the underlying output stream
if (this.out != null) this.out.flush(); if (this.out != null) this.out.flush();
if (this.scraper != null) this.scraper.finish();
// if you want to flush all, call close() at end of writing; // if you want to flush all, call close() at end of writing;
} }

@ -203,8 +203,9 @@ public class htmlParser extends AbstractParser implements Parser {
} catch (final IOException e) { } catch (final IOException e) {
throw new Parser.Failure("IO error:" + e.getMessage(), location); throw new Parser.Failure("IO error:" + e.getMessage(), location);
} finally { } finally {
writer.flush();
sourceStream.close(); sourceStream.close();
writer.close(); //writer.close();
} }
//OutputStream hfos = new htmlFilterOutputStream(null, scraper, null, false); //OutputStream hfos = new htmlFilterOutputStream(null, scraper, null, false);
//serverFileUtils.copy(sourceFile, hfos); //serverFileUtils.copy(sourceFile, hfos);

Loading…
Cancel
Save