Package tigase.component

# Interface PacketWriter

All Known Implementing Classes:
  `AbstractComponent.DefaultPacketWriter`, `AbstractKernelBasedComponent.DefaultPacketWriter`, `SessionManager.SMPacketWriter`

public interface PacketWriter
Interface for writing Packets to XMPP stream.

Author:
  bmalkow

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `write(Collection<Packet> packets)`
  Writes collection of Packets.
  `void`
  `write(Packet packet)`
  Writes single Packet.
  `void`
  `write(Packet packet, AsyncCallback callback)`

- ## Method Details

  - ### write

    void write(Collection<Packet> packets)
    Writes collection of Packets.
    Parameters:
      `packets` - collection of Packets to be written.

  - ### write

    void write(Packet packet)
    Writes single Packet.
    Parameters:
      `packet` - `Packet` to be written.

  - ### write

    void write(Packet packet, AsyncCallback callback)