public interface StreamConnection extends InputConnection, OutputConnection
In a typical implementation of this interface, all StreamConnections
have one
underlying InputStream
and one OutputStream
.
Opening a DataInputStream
counts as opening an
InputStream
and opening a DataOutputStream
counts as opening an OutputStream
.
Trying to open the InputStream
or OutputStream
after they have been closed causes an IOException
.
The methods of StreamConnection
are not
synchronized. The only stream method that can be called safely
in another thread is close
.
openDataInputStream, openInputStream
openDataOutputStream, openOutputStream
close
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.