Class KeepOpenInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class KeepOpenInputStream
    extends FilterInputStream
    A wrapper around an InputStream that turns the close method into a no-op, and requires the calling of the doClose method instead.

    This is necessary, because Jersey closes a stream once it has been read, but we may want to reset and read it again for retries.