]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/image/JPEGAppn.java
bf43e6ea3733dbbfa2f1acab7286b507a9678475
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / internal / image / JPEGAppn.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 JPEGAppn extends JPEGVariableSizeSegment {
18
19         public JPEGAppn(byte[] reference) {
20                 super(reference);
21         }
22
23         public JPEGAppn(LEDataInputStream byteStream) {
24                 super(byteStream);
25         }
26
27         @Override
28         public boolean verify() {
29                 int marker = getSegmentMarker();
30                 return marker >= JPEGFileFormat.APP0 && marker <= JPEGFileFormat.APP15;
31         }
32 }