SSLSocketReader
class in package klyn.net.ssl

    public class SSLSocketReader implements TextReader:

SSLSocketReader
All Implemented Interfaces: TextReader

Text reader over one TLS socket connection.

    import klyn.net.ssl

    socket = SSLSocket("example.com", 443)
    try reader = socket.reader:
    print(reader.readLine())

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SSLSocketReader `SSLSocketReader(socket as SSLSocket):` | Creates a text reader bound to a connected TLS socket.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | close `close() as Void throws IOException:` | Closes the underlying TLS socket.
public | readAllText `readAllText() as String throws IOException:` | Reads all remaining text from the TLS socket.
public | readLine `readLine() as String throws IOException:` | Reads one line from the TLS socket and consumes the transport line terminator.
public | readLines `readLines() as ArrayList<String> throws IOException:` | Reads all remaining lines until the TLS stream closes.

Inherited Methods
method Inherited Methods from TextReader: readAllText, readLine, readLines
method Inherited Methods from AutoClosable: close