InputStreamExtensions

better.files.Implicits.InputStreamExtensions
implicit class InputStreamExtensions(in: InputStream)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def adler32: CheckedInputStream
def asGzipInputStream(bufferSize: Int): GZIPInputStream
def asObjectInputStream(bufferSize: Int): ObjectInputStream

If bufferSize is set to less than or equal to 0, we don't buffer

If bufferSize is set to less than or equal to 0, we don't buffer

Attributes

def asObjectInputStreamUsingClassLoader(classLoader: ClassLoader, bufferSize: Int): ObjectInputStream

Attributes

bufferSize

If bufferSize is set to less than or equal to 0, we don't buffer Code adapted from: https://github.com/apache/commons-io/blob/master/src/main/java/org/apache/commons/io/input/ClassLoaderObjectInputStream.java

Returns:

A special ObjectInputStream that loads a class based on a specified ClassLoader rather than the default This is useful in dynamic container environments.

def asString(closeStream: Boolean, bufferSize: Int, charset: Charset): String
def asZipInputStream(charset: Charset): ZipInputStream
def buffered: BufferedInputStream
def buffered(bufferSize: Int): BufferedInputStream
def byteArray: Array[Byte]
def bytes: Iterator[Byte]
def crc32: CheckedInputStream
def lines(charset: Charset): Iterator[String]
def md5: DigestInputStream
def pipeTo(out: OutputStream, bufferSize: Int): OutputStream
final def pipeTo(out: OutputStream, buffer: Array[Byte]): OutputStream

Pipe an input stream to an output stream using a byte buffer

Pipe an input stream to an output stream using a byte buffer

Attributes

def reader(charset: Charset): InputStreamReader
def sha1: DigestInputStream
def sha256: DigestInputStream
def sha512: DigestInputStream
def withChecksum(checksum: Checksum): CheckedInputStream
def withMessageDigest(digest: MessageDigest): DigestInputStream