Class

org.locationtech.geomesa.utils.io

CopyingInputStream

Related Doc: package io

Permalink

class CopyingInputStream extends InputStream

Proxies an input stream, copying any bytes read. The number of copied bytes can be checked with copied, discarded with drop, and returned with replay (which will also drop the bytes).

Note: this class is not thread-safe

Linear Supertypes
InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CopyingInputStream
  2. InputStream
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CopyingInputStream(wrapped: InputStream, initialBuffer: Int = 16)

    Permalink

    wrapped

    input stream to proxy

    initialBuffer

    initial size of the array allocated for copying bytes on read. The array will grow as needed

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def available(): Int

    Permalink
    Definition Classes
    CopyingInputStream → InputStream
  6. def clone(): AnyRef

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

    Permalink
    Definition Classes
    CopyingInputStream → InputStream → Closeable → AutoCloseable
  8. def copied: Int

    Permalink

    The number of bytes currently available for replaying from the underlying stream

  9. def drop(count: Int): Unit

    Permalink

    Discard bytes that have been copied from the underlying stream

    Discard bytes that have been copied from the underlying stream

    count

    number of bytes to discard

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    InputStream
  17. def markSupported(): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Definition Classes
    CopyingInputStream → InputStream
  22. def read(b: Array[Byte]): Int

    Permalink
    Definition Classes
    CopyingInputStream → InputStream
  23. def read(): Int

    Permalink
    Definition Classes
    CopyingInputStream → InputStream
  24. def replay(count: Int): Array[Byte]

    Permalink

    Return bytes copied from the underlying stream, discarding them afterwards.

    Return bytes copied from the underlying stream, discarding them afterwards. If more bytes are requested than have been copied, only copied bytes will be returned

    count

    number of bytes to return

  25. def reset(): Unit

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  26. def skip(n: Long): Long

    Permalink
    Definition Classes
    CopyingInputStream → InputStream
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped