ie.omk.smpp.net
Class StreamLink

java.lang.Object
  extended by ie.omk.smpp.net.SmscLink
      extended by ie.omk.smpp.net.StreamLink

public class StreamLink
extends SmscLink

Implementation of an Smsc link using user supplied input and output streams.

Version:
$Id: StreamLink.java 264 2006-03-09 14:00:40Z orank $
Author:
Oran Kelly

Constructor Summary
StreamLink(InputStream inStream, OutputStream outStream)
          Create a new StreamLink object.
 
Method Summary
 InputStream getInputStream()
          Get the input stream of the input socket of the virtual connection.
 OutputStream getOutputStream()
          Get the output stream of the output socket of the virtual connection.
 void implClose()
          Does nothing.
 void implOpen()
          Does nothing (the streams should already be open).
 boolean isConnected()
          Check connection status.
 
Methods inherited from class ie.omk.smpp.net.SmscLink
available, close, flush, getAutoFlush, getTimeout, open, read, setAutoFlush, setSnoopStreams, setTimeout, setTimeout, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamLink

public StreamLink(InputStream inStream,
                  OutputStream outStream)
Create a new StreamLink object.

Parameters:
inStream - the stream to read SMPP packets from.
outStream - the stream to write SMPP packets to.
Method Detail

implOpen

public void implOpen()
Does nothing (the streams should already be open).

Specified by:
implOpen in class SmscLink

implClose

public void implClose()
Does nothing. This object is not responsible for opening or closing the streams.

Specified by:
implClose in class SmscLink
See Also:
SmscLink.getInputStream(), SmscLink.getOutputStream(), SmscLink.close()

getOutputStream

public OutputStream getOutputStream()
Get the output stream of the output socket of the virtual connection.

Specified by:
getOutputStream in class SmscLink

getInputStream

public InputStream getInputStream()
Get the input stream of the input socket of the virtual connection.

Specified by:
getInputStream in class SmscLink

isConnected

public boolean isConnected()
Check connection status.

Specified by:
isConnected in class SmscLink
Returns:
true always.


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.