Class FilteringStreamProxy

java.lang.Object
java.lang.Thread
org.robovm.compiler.util.io.FilteringStreamProxy
All Implemented Interfaces:
Runnable

public abstract class FilteringStreamProxy
extends Thread
Reads from one InputStream and writes to an OutputStream looking for a pattern in the in data.
  • Field Details

  • Constructor Details

  • Method Details

    • findPattern

      protected abstract boolean findPattern​(byte[] b, int length, OutputStream out) throws IOException
      Searches for a pattern in the specified buffer. Returns true when found. It's the responsibility of this method to write any buffered bytes to the specified OutputStream once the pattern has been found.
      Throws:
      IOException
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • closeStreams

      protected void closeStreams()
    • handleException

      protected void handleException​(Throwable t)
    • shouldStop

      protected boolean shouldStop()