diff --git a/src/acr/browser/lightning/ReplacingInputStream.java b/src/acr/browser/lightning/ReplacingInputStream.java index dc7e8e5..4090e09 100644 --- a/src/acr/browser/lightning/ReplacingInputStream.java +++ b/src/acr/browser/lightning/ReplacingInputStream.java @@ -3,14 +3,15 @@ package acr.browser.lightning; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; public class ReplacingInputStream extends FilterInputStream { - LinkedList inQueue = new LinkedList(); + Deque inQueue = new LinkedList(); - LinkedList outQueue = new LinkedList(); + Deque outQueue = new LinkedList(); final byte[] search, replacement; @@ -70,6 +71,7 @@ public class ReplacingInputStream extends FilterInputStream { /** * Returns false. REFilterInputStream does not support mark() and reset() methods. */ + @Override public boolean markSupported() { return false; } @@ -77,6 +79,7 @@ public class ReplacingInputStream extends FilterInputStream { /** * Reads from the stream into the provided array. */ + @Override public int read(byte[] b, int off, int len) throws IOException { int i; int ok = 0;