KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > image > JPEGStartOfImage


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 package org.eclipse.swt.internal.image;
12
13
14 final class JPEGStartOfImage extends JPEGFixedSizeSegment {
15
16     public JPEGStartOfImage() {
17         super();
18     }
19     
20     public JPEGStartOfImage(byte[] reference) {
21         super(reference);
22     }
23     
24     public JPEGStartOfImage(LEDataInputStream byteStream) {
25         super(byteStream);
26     }
27     
28     public int signature() {
29         return JPEGFileFormat.SOI;
30     }
31     
32     public int fixedSize() {
33         return 2;
34     }
35 }
36
Popular Tags