List of usage examples for org.springframework.boot.devtools.livereload ConnectionInputStream ConnectionInputStream
ConnectionInputStream(InputStream in)
From source file:org.springframework.boot.devtools.livereload.Connection.java
/** * Create a new {@link Connection} instance. * @param socket the source socket/*from w ww . ja v a 2 s.c o m*/ * @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 + "]"); }