final case class InputStreamResource(resource: Resource[InputStream], fileName: String = "", autoDecompress: Boolean = true, autoBuffer: Boolean = true) extends Resource[InputStream] with Logging with Product with Serializable
- Alphabetic
- By Inheritance
- InputStreamResource
- Serializable
- Product
- Equals
- Logging
- Resource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new InputStreamResource(resource: Resource[InputStream], fileName: String = "", autoDecompress: Boolean = true, autoBuffer: Boolean = true)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val autoBuffer: Boolean
- val autoDecompress: Boolean
- def buffered(): Resource[BufferedInputStream]
- def bufferedReader(cs: Charset): Resource[BufferedReader]
- def bufferedReader(encoding: String): Resource[BufferedReader]
- def bufferedReader(): Resource[BufferedReader]
- def bufferedUTFReader(): Resource[Reader]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def dataInput(): Resource[DataInput]
- def detectCharset(): Option[Charset]
Requires use() to be called so it will consume the Resource
- def detectCharsetName(): Option[String]
Requires use() to be called so it will consume the Resource
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fileName: String
- final def flatMap[B](f: (InputStream) => Resource[B]): Resource[B]
- Definition Classes
- Resource
- final def foreach[U](f: (InputStream) => U): Unit
- Definition Classes
- Resource
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMultiUse: Boolean
Can this resource be used multiple times?
Can this resource be used multiple times?
- Definition Classes
- InputStreamResource → Resource
- def isUsable: Boolean
Is this resource usable? i.e.
Is this resource usable? i.e. will the use() method work?
- Definition Classes
- InputStreamResource → Resource
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- Annotations
- @transient()
- final def map[B](f: (InputStream) => B): Resource[B]
- Definition Classes
- Resource
- def md5: Array[Byte]
- def md5Hex: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def readBytes(): Array[Byte]
- def readToString(charset: Charset): String
A helper to read the input stream to a string
- def readToString(encoding: String): String
A helper to read the input stream to a string
- def readToString(): String
- def reader(charset: Charset): Resource[Reader]
Create a reader for this InputStream using the given encoding or auto-detect the encoding if the parameter is blank
- def reader(encoding: String): Resource[Reader]
Create a reader for this InputStream using the given encoding or auto-detect the encoding if the parameter is blank
- def reader(): Resource[Reader]
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
- def readerWithDetectedCharset(): Resource[Reader]
- val resource: Resource[InputStream]
- def sha1: Array[Byte]
- def sha1Hex: String
- def showArchiveEntries(): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def use[T](f: (InputStream) => T): T
- Definition Classes
- InputStreamResource → Resource
- def utfReader(): Resource[Reader]
Creates a UTF-8/16/32 reader based on the BOM encoding with UTF-8 being a default
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeTo(output: OutputStream): Unit
- def writeTo(output: Resource[OutputStream]): Unit