Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db46cae4 authored by Mateus Azis's avatar Mateus Azis
Browse files

Document the of closing LocalSocket streams.

Mention how closing either the input or the output stream closes the
entire LocalSocket.

Bug: 254066703
Test: N/A
Change-Id: Ia85ffaf587d36e2dcadcbaabf85abea102d21704
parent c9056845
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -196,7 +196,8 @@ public class LocalSocket implements Closeable {
    }

    /**
     * Retrieves the input stream for this instance.
     * Retrieves the input stream for this instance. Closing this stream is equivalent to closing
     * the entire socket and its associated streams using {@link #close()}.
     *
     * @return input stream
     * @throws IOException if socket has been closed or cannot be created.
@@ -207,7 +208,8 @@ public class LocalSocket implements Closeable {
    }

    /**
     * Retrieves the output stream for this instance.
     * Retrieves the output stream for this instance. Closing this stream is equivalent to closing
     * the entire socket and its associated streams using {@link #close()}.
     *
     * @return output stream
     * @throws IOException if socket has been closed or cannot be created.