1 /*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.graphics;
19 * Internal class that separates ImageData from ImageLoader
20 * to allow removal of ImageLoader from the toolkit.
22 class ImageDataLoader {
24 public static ImageData[] load(InputStream stream) {
25 return new ImageLoader().load(stream);
28 public static ImageData[] load(String filename) {
29 return new ImageLoader().load(filename);