Class SimpleFileSender

java.lang.Object
org.hobbit.core.rabbit.SimpleFileSender
All Implemented Interfaces:
Closeable, AutoCloseable

public class SimpleFileSender extends Object implements Closeable
A simple class that can be used to send files, i.e., small or large sized data with a single name, via RabbitMQ using a queue with the given name. A message created by this implementation comprises the following data
  1. int length of file name
  2. byte[] file name
  3. int message id
  4. byte[] data
The end of the file is indicated by a message with an empty data array.
Author:
Michael Röder (roeder@informatik.uni-leipzig.de)