com.solarmetric.remote
Interface Transport.Channel
- All Superinterfaces:
- com.solarmetric.util.Closeable
- Enclosing class:
- Transport
- public static interface Transport.Channel
- extends com.solarmetric.util.Closeable
A communications channel. Each requested stream will be closed
before the next is requested.
Method Summary |
void |
error(IOException ioe)
Notification that an IO occurred when using this channel. |
InputStream |
getInput()
Return an input stream from the other end, or null if this channel
is no longer connected. |
OutputStream |
getOutput()
Return an ouput stream to the other end, or null if this channel
is no longer connected. |
Methods inherited from interface com.solarmetric.util.Closeable |
close |
getOutput
public OutputStream getOutput()
throws Exception
- Return an ouput stream to the other end, or null if this channel
is no longer connected.
getInput
public InputStream getInput()
throws Exception
- Return an input stream from the other end, or null if this channel
is no longer connected.
error
public void error(IOException ioe)
- Notification that an IO occurred when using this channel.
If the transport pools behind the scenes, it may wish to discard
this channel.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.