Class FileFormat

java.lang.Object
org.eclipse.swt.internal.image.FileFormat
Direct Known Subclasses:
GIFFileFormat, JPEGFileFormat, OS2BMPFileFormat, PNGFileFormat, TIFFFileFormat, WinBMPFileFormat, WinICOFileFormat

public abstract class FileFormat extends Object
Abstract factory class for loading/unloading images from files or streams in various image file formats.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ImageData[]
    Read the specified input stream using the specified loader, and return the device independent image array represented by the stream.
    loadFromStream(org.eclipse.swt.internal.image.LEDataInputStream stream)
    Read the specified input stream, and return the device independent image array represented by the stream.
    static void
    save(OutputStream os, int format, ImageLoader loader)
    Write the device independent image array stored in the specified loader to the specified output stream using the specified file format.
    void
    unloadIntoStream(ImageLoader loader, org.eclipse.swt.internal.image.LEDataOutputStream stream)
    Write the device independent image array stored in the specified loader to the specified output stream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileFormat

      public FileFormat()
  • Method Details

    • loadFromStream

      public ImageData[] loadFromStream(org.eclipse.swt.internal.image.LEDataInputStream stream)
      Read the specified input stream, and return the device independent image array represented by the stream.
    • load

      public static ImageData[] load(InputStream is, ImageLoader loader)
      Read the specified input stream using the specified loader, and return the device independent image array represented by the stream.
    • save

      public static void save(OutputStream os, int format, ImageLoader loader)
      Write the device independent image array stored in the specified loader to the specified output stream using the specified file format.
    • unloadIntoStream

      public void unloadIntoStream(ImageLoader loader, org.eclipse.swt.internal.image.LEDataOutputStream stream)
      Write the device independent image array stored in the specified loader to the specified output stream.