php.java.bridge.http
Class AbstractChannel

java.lang.Object
  extended by php.java.bridge.http.AbstractChannel

public abstract class AbstractChannel
extends java.lang.Object

Represents the pipe or socket channel.

Author:
jostb

Constructor Summary
AbstractChannel()
           
 
Method Summary
abstract  java.io.InputStream getInputStream()
          Returns the channel's input stream.
abstract  java.lang.String getName()
          Returns the name of the channel, for example the socket # or the pipe name.
abstract  java.io.OutputStream getOuptutStream()
          Returns the channel's output stream.
abstract  void shutdown()
          Shut down the channel, closes the in- and output stream and other resources.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChannel

public AbstractChannel()
Method Detail

getInputStream

public abstract java.io.InputStream getInputStream()
                                            throws java.io.IOException
Returns the channel's input stream.

Returns:
The InputStream
Throws:
FileNotFoundException
java.io.IOException

getOuptutStream

public abstract java.io.OutputStream getOuptutStream()
                                              throws java.io.IOException
Returns the channel's output stream.

Returns:
The OutputStream.
Throws:
FileNotFoundException
java.io.IOException

shutdown

public abstract void shutdown()
Shut down the channel, closes the in- and output stream and other resources.


getName

public abstract java.lang.String getName()
Returns the name of the channel, for example the socket # or the pipe name.

Returns:
the name of the channel.
See Also:
AbstractChannelName.getName()