Readable

replpp.shaded.geny.Readable
See theReadable companion object
trait Readable extends Writable

A Readable is a source of bytes that can be read from an InputStream

A subtype of Writable, every Readable can be trivially used as a Writable by transferring the bytes from the InputStream to the OutputStream, but not every Writable is a Readable.

Note that the InputStream is only available inside the readBytesThrough, and may be closed and cleaned up (along with any associated resources) once the callback returns.

Attributes

Companion
object
Graph
Supertypes
trait Writable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def readBytesThrough[T](f: InputStream => T): T

Concrete methods

def writeBytesTo(out: OutputStream): Unit

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
Writable
def httpContentType: Option[String]

Attributes

Inherited from:
Writable