comparison dwt/internal/image/JPEGAppn.d @ 13:3d9bbe0a83a0

FileFormats
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jan 2008 22:54:14 +0100
parents
children 8cec8f536af3
comparison
equal deleted inserted replaced
12:0c78fa47d476 13:3d9bbe0a83a0
1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 module dwt.internal.image.JPEGAppn;
12
13 import dwt.internal.image.JPEGVariableSizeSegment;
14 import dwt.internal.image.JPEGFileFormat;
15 import dwt.internal.image.LEDataInputStream;
16
17 final class JPEGAppn : JPEGVariableSizeSegment {
18
19 public this(byte[] reference) {
20 super(reference);
21 }
22
23 public this(LEDataInputStream byteStream) {
24 super(byteStream);
25 }
26
27 public bool verify() {
28 int marker = getSegmentMarker();
29 return marker >= JPEGFileFormat.APP0 && marker <= JPEGFileFormat.APP15;
30 }
31 }