uk.co.bigbeeconsultants.http.response

SelfClosingInputStreamDelegate

class SelfClosingInputStreamDelegate extends InputStream

Constructs a wrapper for an HTTP input stream that ensures that its parent HTTP connection is disconnected when the input stream is closed. The input stream is self-closing: when consuming data from the stream, once the end is reached the stream will automatically close and the connection will be disconnected.

Linear Supertypes
InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SelfClosingInputStreamDelegate
  2. InputStream
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SelfClosingInputStreamDelegate(in: InputStream, connection: HttpURLConnection)

    in

    the input stream; if null then the wrapper will behave as if zero-length was provided.

    connection

    the parent connection for the input stream.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def available(): Int

    Definition Classes
    InputStream
    Annotations
    @throws()
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def close(): Unit

    Closes this input stream and releases any system resources associated with the stream.

    Closes this input stream and releases any system resources associated with the stream. Then the HttpURLConnection is disconnected, releasing any system resources associated with it.

    Definition Classes
    SelfClosingInputStreamDelegate → InputStream → Closeable → AutoCloseable
    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown
    IOException

    if an I/O error occurs.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def mark(arg0: Int): Unit

    Definition Classes
    InputStream
  17. def markSupported(): Boolean

    Definition Classes
    InputStream
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def read(): Int

    Reads the next byte of data from the input stream.

    Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned.

    When the last available byte has been read in, the stream is automatically closed and the connection is automatically disconnected.

    This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.

    returns

    the next byte of data, or -1 if the end of the stream is reached.

    Definition Classes
    SelfClosingInputStreamDelegate → InputStream
    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown
    IOException

    if an I/O error occurs.

  22. def read(arg0: Array[Byte], arg1: Int, arg2: Int): Int

    Definition Classes
    InputStream
    Annotations
    @throws()
  23. def read(arg0: Array[Byte]): Int

    Definition Classes
    InputStream
    Annotations
    @throws()
  24. def reset(): Unit

    Definition Classes
    InputStream
    Annotations
    @throws()
  25. def skip(arg0: Long): Long

    Definition Classes
    InputStream
    Annotations
    @throws()
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped