magoffin.matt.meta
Interface MetadataImage

All Known Implementing Classes:
BasicMetadataImage

public interface MetadataImage

Metadata type for an image.

This metadata type allows for special handling of embedded images, i.e. images that are metadata for other media. This includes such metadata as album art in ID3 tags or thumbnail images in EXIF data, etc.

Version:
$Revision: 3 $ $Date: 2008-12-27 08:09:28 +1300 (Sat, 27 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Method Summary
 java.awt.image.BufferedImage getAsBufferedImage()
          Get the image as a BufferedImage.
 java.lang.String getMimeType()
          Get the image MIME type.
 void writeToStream(java.io.OutputStream out)
          Write the image data to an output stream.
 

Method Detail

getMimeType

java.lang.String getMimeType()
Get the image MIME type.

Returns:
mime type

getAsBufferedImage

java.awt.image.BufferedImage getAsBufferedImage()
Get the image as a BufferedImage.

Implementations are not required to support this method, and if not supported should throw a UnsupportedOperationException.

Returns:
the BufferedImage

writeToStream

void writeToStream(java.io.OutputStream out)
                   throws java.io.IOException
Write the image data to an output stream.

This method will not flush or close the output stream.

Parameters:
out - the output stream
Throws:
java.io.IOException - if an IO error occurs