Class/Object

fm.common

InputStreamResource

Related Docs: object InputStreamResource | package common

Permalink

final case class InputStreamResource(resource: Resource[InputStream], fileName: String = "", autoDecompress: Boolean = true, autoBuffer: Boolean = true) extends Resource[InputStream] with Logging with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, Resource[InputStream], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InputStreamResource
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. Resource
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InputStreamResource(resource: Resource[InputStream], fileName: String = "", autoDecompress: Boolean = true, autoBuffer: Boolean = true)

    Permalink

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. val autoBuffer: Boolean

    Permalink
  6. val autoDecompress: Boolean

    Permalink
  7. def buffered(): Resource[BufferedInputStream]

    Permalink
  8. def bufferedReader(cs: Charset): Resource[BufferedReader]

    Permalink
  9. def bufferedReader(encoding: String): Resource[BufferedReader]

    Permalink
  10. def bufferedReader(): Resource[BufferedReader]

    Permalink
  11. def bufferedUTFReader(): Resource[Reader]

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  13. def dataInput(): Resource[DataInput]

    Permalink
  14. def detectCharset(): Option[Charset]

    Permalink

    Requires use() to be called so it will consume the Resource

  15. def detectCharsetName(): Option[String]

    Permalink

    Requires use() to be called so it will consume the Resource

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

    Permalink
    Definition Classes
    AnyRef
  17. val fileName: String

    Permalink
  18. final def flatMap[B](f: (InputStream) ⇒ Resource[B]): Resource[B]

    Permalink
    Definition Classes
    Resource
  19. final def foreach[U](f: (InputStream) ⇒ U): Unit

    Permalink
    Definition Classes
    Resource
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isMultiUse: Boolean

    Permalink

    Can this resource be used multiple times?

    Can this resource be used multiple times?

    Definition Classes
    InputStreamResourceResource
  23. def isUsable: Boolean

    Permalink

    Is this resource usable? i.e.

    Is this resource usable? i.e. will the use() method work?

    Definition Classes
    InputStreamResourceResource
  24. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. final def map[B](f: (InputStream) ⇒ B): Resource[B]

    Permalink
    Definition Classes
    Resource
  26. def md5: Array[Byte]

    Permalink
  27. def md5Hex: String

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  31. def readBytes(): Array[Byte]

    Permalink
  32. def readToString(charset: Charset): String

    Permalink

    A helper to read the input stream to a string

  33. def readToString(encoding: String): String

    Permalink

    A helper to read the input stream to a string

  34. def readToString(): String

    Permalink
  35. def reader(charset: Charset): Resource[Reader]

    Permalink

    Create a reader for this InputStream using the given encoding or auto-detect the encoding if the parameter is blank

  36. def reader(encoding: String): Resource[Reader]

    Permalink

    Create a reader for this InputStream using the given encoding or auto-detect the encoding if the parameter is blank

  37. def reader(): Resource[Reader]

    Permalink

    Create a reader for this InputStream and use auto-detection for the charset encoding with a fallback of UTF-8 if the charset cannot be detected

  38. def readerWithDetectedCharset(): Resource[Reader]

    Permalink
  39. val resource: Resource[InputStream]

    Permalink
  40. def sha1: Array[Byte]

    Permalink
  41. def sha1Hex: String

    Permalink
  42. def showArchiveEntries(): Unit

    Permalink
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def use[T](f: (InputStream) ⇒ T): T

    Permalink
    Definition Classes
    InputStreamResourceResource
  45. def utfReader(): Resource[Reader]

    Permalink

    Creates a UTF-8/16/32 reader based on the BOM encoding with UTF-8 being a default

  46. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def writeTo(output: OutputStream): Unit

    Permalink
  50. def writeTo(output: Resource[OutputStream]): Unit

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from Resource[InputStream]

Inherited from AnyRef

Inherited from Any

Ungrouped