Example usage for org.springframework.boot.devtools.livereload ConnectionOutputStream ConnectionOutputStream

List of usage examples for org.springframework.boot.devtools.livereload ConnectionOutputStream ConnectionOutputStream

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.livereload ConnectionOutputStream ConnectionOutputStream.

Prototype

ConnectionOutputStream(OutputStream out) 

Source Link

Usage

From source file:org.springframework.boot.devtools.livereload.Connection.java

/**
 * Create a new {@link Connection} instance.
 * @param socket the source socket/* w ww  .  j  a  va  2s.c  om*/
 * @param inputStream the socket input stream
 * @param outputStream the socket output stream
 * @throws IOException in case of I/O errors
 */
Connection(Socket socket, InputStream inputStream, OutputStream outputStream) throws IOException {
    this.socket = socket;
    this.inputStream = new ConnectionInputStream(inputStream);
    this.outputStream = new ConnectionOutputStream(outputStream);
    this.header = this.inputStream.readHeader();
    logger.debug("Established livereload connection [" + this.header + "]");
}