Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by java.io.File
      extended by net.java.sip.communicator.impl.protocol.jabber.ThumbnailedFile
All Implemented Interfaces:
Serializable, Comparable<File>

public class ThumbnailedFile
extends File

A ThumbnailedFile is a file with a thumbnail.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
ThumbnailedFile(File file, int thumbnailWidth, int thumbnailHeight, String thumbnailMimeType, byte[] thumbnail)
          Creates a ThumbnailedFile, by specifying the base file, the thumbnailWidth and thumbnailHeight, the thumbnailMimeType and the thumbnail itself.
 
Method Summary
 byte[] getThumbnailData()
          Returns the thumbnail of this file.
 int getThumbnailHeight()
          Returns the thumbnail height.
 String getThumbnailMimeType()
          Returns the thumbnail mime type.
 int getThumbnailWidth()
          Returns the thumbnail width.
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThumbnailedFile

public ThumbnailedFile(File file,
                       int thumbnailWidth,
                       int thumbnailHeight,
                       String thumbnailMimeType,
                       byte[] thumbnail)
Creates a ThumbnailedFile, by specifying the base file, the thumbnailWidth and thumbnailHeight, the thumbnailMimeType and the thumbnail itself.

Parameters:
file - the base file
thumbnailWidth - the width of the thumbnail
thumbnailHeight - the height of the thumbnail
thumbnailMimeType - the mime type
thumbnail - the thumbnail
Method Detail

getThumbnailData

public byte[] getThumbnailData()
Returns the thumbnail of this file.

Returns:
the thumbnail of this file

getThumbnailWidth

public int getThumbnailWidth()
Returns the thumbnail width.

Returns:
the thumbnail width

getThumbnailHeight

public int getThumbnailHeight()
Returns the thumbnail height.

Returns:
the thumbnail height

getThumbnailMimeType

public String getThumbnailMimeType()
Returns the thumbnail mime type.

Returns:
the thumbnail mime type

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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