com.langner.jmatic2
Interface ITransport

All Superinterfaces:
IConnection
All Known Implementing Classes:
com.langner.jmatic2.TransportImpl

public interface ITransport
extends IConnection

Interface for transport protocols used within the package com.langner.jmatic

Version:
2.0
Author:
Langner Communications AG
Copyright:
Langner (c) 2001-2005

Method Summary
 void addListener(ITransportListener l)
          Adds a ITransportListener object for error and data notification
 void removeListener(ITransportListener l)
          Removes ITransportListener object for error and data notification
 void write(byte[] data, int length)
          Writes length bytes from the byte array data to the underlying stream.
 
Methods inherited from interface com.langner.jmatic2.IConnection
connect, disconnect, isConnected
 

Method Detail

write

public void write(byte[] data,
                  int length)
           throws JMaticException,
                  java.io.IOException
Writes length bytes from the byte array data to the underlying stream.

Parameters:
data - The data to be written
length - The length of the data to be written
Throws:
JMaticException
IOException

addListener

public void addListener(ITransportListener l)
Adds a ITransportListener object for error and data notification

Parameters:
l - The ITransportListener to be added

removeListener

public void removeListener(ITransportListener l)
Removes ITransportListener object for error and data notification

Parameters:
l - The ITransportListener to be removed


Copyright © 2001-2005 Langner Communications AG. All Rights Reserved.