FollowingInputStream

ma.chinespirit.tailf.FollowingInputStream
class FollowingInputStream(val file: File, val waitNewInput: () => Unit) extends InputStream

InputStream that handles growing file case

The InputStream will not raise EOF when it comes to the file end. Contrary, it will wait and continue reading.

It will not handle the case when the file has been rotated. In this case, it behaves just if it found EOF.

Attributes

Graph
Supertypes
class InputStream
trait Closeable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def close: Unit

Attributes

Definition Classes
protected def handle(read: => Int): Int
protected def isClosed: Boolean
def read: Int
override def read(b: Array[Byte]): Int

Attributes

Definition Classes
override def read(b: Array[Byte], off: Int, len: Int): Int

Attributes

Definition Classes
protected def wasRotated: Boolean

Inherited methods

def available(): Int

Attributes

Inherited from:
InputStream
def mark(x$0: Int): Unit

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream
def reset(): Unit

Attributes

Inherited from:
InputStream
def skip(x$0: Long): Long

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream

Attributes

Inherited from:
InputStream

Concrete fields

val file: File
val waitNewInput: () => Unit