Smack

org.jivesoftware.smackx.packet
Class IBBExtensions.Open

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by org.jivesoftware.smackx.packet.IBBExtensions.Open
Enclosing class:
IBBExtensions

public static class IBBExtensions.Open
extends IQ

Represents a request to open the file transfer.

Author:
Alexander Wenckus

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
 
Field Summary
static String ELEMENT_NAME
           
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
 
Constructor Summary
IBBExtensions.Open(String sid, int blockSize)
          Constructs an open packet.
 
Method Summary
 int getBlockSize()
          The size blocks in which the data will be sent.
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
 String getElementName()
           
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

IBBExtensions.Open

public IBBExtensions.Open(String sid,
                          int blockSize)
Constructs an open packet.

Parameters:
sid - The streamID of the file transfer.
blockSize - The block size of the file transfer.
Method Detail

getBlockSize

public int getBlockSize()
The size blocks in which the data will be sent.

Returns:
The size blocks in which the data will be sent.

getElementName

public String getElementName()

getChildElementXML

public String getChildElementXML()
Description copied from class: IQ
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class IQ
Returns:
the child element section of the IQ XML.

Smack

Copyright © 2003-2007 Jive Software.