org.mobicents.media.server.impl.resource.zap
Class ZapLink

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.zap.ZapLink
All Implemented Interfaces:
Mtp1

public class ZapLink
extends java.lang.Object
implements Mtp1

Author:
kulikov, baranowb

Constructor Summary
ZapLink()
           
ZapLink(java.lang.String linkset, int span, int channel)
           
 
Method Summary
 void close()
          Close message tranfer part layer 1.
 int getChannel()
           
 java.lang.String getLinkset()
           
 int getSpan()
           
 void open()
          Open message tranfer part layer 1.
 int read(byte[] bb)
          Reads upto buffer.length bytes from layer 1.
 void setChannel(int channel)
           
 void setLinkset(java.lang.String linkset)
           
 void setSpan(int span)
           
 void start()
           
 void stop()
           
 void write(byte[] bb, int numberOfBytes)
          Writes data to layer 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZapLink

public ZapLink()

ZapLink

public ZapLink(java.lang.String linkset,
               int span,
               int channel)
Method Detail

getChannel

public int getChannel()

getSpan

public int getSpan()

getLinkset

public java.lang.String getLinkset()

setChannel

public void setChannel(int channel)

setLinkset

public void setLinkset(java.lang.String linkset)

setSpan

public void setSpan(int span)

read

public int read(byte[] bb)
         throws java.io.IOException
Description copied from interface: Mtp1
Reads upto buffer.length bytes from layer 1.

Specified by:
read in interface Mtp1
Parameters:
bb - reader buffer
Returns:
the number of actualy read bytes.
Throws:
java.io.IOException

write

public void write(byte[] bb,
                  int numberOfBytes)
           throws java.io.IOException
Description copied from interface: Mtp1
Writes data to layer 1.

Specified by:
write in interface Mtp1
Parameters:
bb - the buffer containing data to write.
Throws:
java.io.IOException

open

public void open()
          throws java.io.IOException
Description copied from interface: Mtp1
Open message tranfer part layer 1.

Specified by:
open in interface Mtp1
Throws:
java.io.IOException

close

public void close()
Description copied from interface: Mtp1
Close message tranfer part layer 1.

Specified by:
close in interface Mtp1

start

public void start()

stop

public void stop()


Copyright © 2010. All Rights Reserved.