]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/graphics/ImageDataLoader.java
b1fe23d24729ff5ed9a2019d20568615dea51135
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / graphics / ImageDataLoader.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.graphics;
15
16 import java.io.*;
17
18 /**
19  * Internal class that separates ImageData from ImageLoader
20  * to allow removal of ImageLoader from the toolkit.
21  */
22 class ImageDataLoader {
23
24         public static ImageData[] load(InputStream stream) {
25                 return new ImageLoader().load(stream);
26         }
27
28         public static ImageData[] load(String filename) {
29                 return new ImageLoader().load(filename);
30         }
31
32 }