]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/image/JPEGEndOfImage.java
40e33fd9da1b5667d154cf93469274fba2e32a7a
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / internal / image / JPEGEndOfImage.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2011 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.internal.image;
15
16
17 final class JPEGEndOfImage extends JPEGFixedSizeSegment {
18
19         public JPEGEndOfImage() {
20                 super();
21         }
22
23         public JPEGEndOfImage(byte[] reference) {
24                 super(reference);
25         }
26
27         @Override
28         public int signature() {
29                 return JPEGFileFormat.EOI;
30         }
31
32         @Override
33         public int fixedSize() {
34                 return 2;
35         }
36 }