Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class OperationSetThumbnailedFileFactoryImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.OperationSetThumbnailedFileFactoryImpl
All Implemented Interfaces:
OperationSet, OperationSetThumbnailedFileFactory

public class OperationSetThumbnailedFileFactoryImpl
extends Object
implements OperationSetThumbnailedFileFactory

The OperationSetThumbnailedFileFactory is meant to be used by bundles interested in making files with thumbnails. For example the user interface can be interested in sending files with thumbnails through the OperationSetFileTransfer.

Author:
Yana Stamcheva

Constructor Summary
OperationSetThumbnailedFileFactoryImpl()
           
 
Method Summary
 File createFileWithThumbnail(File file, int thumbnailWidth, int thumbnailHeight, String thumbnailMimeType, byte[] thumbnail)
          Creates a file, by attaching the thumbnail, given by the details, to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetThumbnailedFileFactoryImpl

public OperationSetThumbnailedFileFactoryImpl()
Method Detail

createFileWithThumbnail

public File createFileWithThumbnail(File file,
                                    int thumbnailWidth,
                                    int thumbnailHeight,
                                    String thumbnailMimeType,
                                    byte[] thumbnail)
Creates a file, by attaching the thumbnail, given by the details, to it.

Specified by:
createFileWithThumbnail in interface OperationSetThumbnailedFileFactory
Parameters:
file - the base file
thumbnailWidth - the width of the thumbnail
thumbnailHeight - the height of the thumbnail
thumbnailMimeType - the mime type of the thumbnail
thumbnail - the thumbnail data
Returns:
a file with a thumbnail

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.