@@ -0,0 +1,2426 @@
+/*%0A * Java SMPP API%0A * Copyright (C) 1998 - 2001 by Oran Kelly%0A * %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A * %0A * A copy of the LGPL can be viewed at http://www.gnu.org/copyleft/lesser.html%0A * Java SMPP API author: oran.kelly@ireland.com%0A * Java SMPP API Homepage: http://smppapi.sourceforge.net/%0A */%0Apackage ie.omk.smpp.net;%0A%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0A/** Implementation of an Smsc link using user supplied input and output streams.%0A  * @author Oran Kelly%0A  * @version 1.0%0A  */%0Apublic class StreamLink%0A    extends ie.omk.smpp.net.SmscLink%0A%7B%0A    /** The input side of the link. */%0A    private InputStream inStream = null;%0A%0A    /** The output side of the link. */%0A    private OutputStream outStream = null;%0A%0A%0A    public StreamLink(InputStream inStream, OutputStream outStream)%0A    %7B%0A%09if (inStream == null %7C%7C outStream == null)%0A%09    throw new NullPointerException(%22Neither stream can be null!%22);%0A%0A%09this.inStream = inStream;%0A%09this.outStream = outStream;%0A    %7D%0A%0A    /** Does nothing (the streams should already be open).%0A      */%0A    public synchronized void open()%0A    %7B%0A    %7D%0A%0A    /** Does nothing. This object is not responsible for opening or closing the%0A      * streams.%0A      */%0A    public synchronized void close()%0A    %7B%0A    %7D%0A%0A    /** Get the output stream of the output socket of the virtual connection.%0A      */%0A    public OutputStream getOutputStream()%0A    %7B%0A%09return (this.outStream);%0A    %7D%0A%0A    /** Get the input stream of the input socket of the virtual connection.%0A      */%0A    public InputStream getInputStream()%0A    %7B%0A%09return (this.inStream);%0A    %7D%0A%0A    /** Check connection status.%0A      * @return true always.%0A      */%0A    public boolean isConnected()%0A    %7B%0A%09return (true);%0A    %7D%0A%7D%0A

Check in. Facility for using user-supplied input and output streams for the in and out link of the SMSC.