class BufferedLineReader extends AnyRef
Represents a reader that can read lines both in a blocking and non-blocking way.
- Source
- BufferedLineReader.scala
- Alphabetic
- By Inheritance
- BufferedLineReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BufferedLineReader(stream: InputStream, encoding: String = "UTF-8")
- stream
InputStream to read / write characters from
- encoding
Encoding to use. Defaults to UTF-8.
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val encoding: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLineLength: Option[Int]
Gets the length of the current line in the buffer or None, in case no line is available
-
def
hasChar: Boolean
Checks if this BufferedSocketReader has a character that is ready to be read
-
def
hasLine: Boolean
Checks if this BufferedSocketReader has a line that is ready to be read
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
readChar(block: Boolean = false): Option[Char]
Convenience method that reads the next character in this BufferedLineReader in a blocking or non-blocking way.
Convenience method that reads the next character in this BufferedLineReader in a blocking or non-blocking way.
- block
Boolean indicating if we should block until the next character is available
-
def
readChar: Option[Char]
Reads the next character in this BufferedLineReader.
Reads the next character in this BufferedLineReader. Does not block, i.e. returns None if no character is currently available.
-
def
readCharBlock: Char
Reads the next character in this BufferedLineReader.
Reads the next character in this BufferedLineReader. Blocks, i.e. waits until a character is available.
-
def
readLine(block: Boolean): Option[String]
Convenience method that reads the next line in this BufferedLineReader in a blocking or non-blocking way.
Convenience method that reads the next line in this BufferedLineReader in a blocking or non-blocking way.
- block
Boolean indicating if we should block until the next line is available
-
def
readLine: Option[String]
Reads the next line in this BufferedLineReader.
Reads the next line in this BufferedLineReader. Does not block, i.e. returns None if no line is currently available.
-
def
readLineBlock: String
Reads the next line in this BufferedLineReader.
Reads the next line in this BufferedLineReader. Blocks, i.e. waits until a new line is available if it currently isn't
-
def
reset(): Unit
Resets this BufferedLineReader to the first char it read.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()