jogamp.graph.font.typecast.ot.table.ClassDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl-all Show documentation
Show all versions of jogl-all Show documentation
Java™ Binding for the OpenGL® API
The newest version!
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* version 1.1, a copy of which has been included with this distribution in *
* the LICENSE file. *
*****************************************************************************/
package jogamp.graph.font.typecast.ot.table;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
*
* @author David Schweinsberg
* @version $Id: ClassDef.java,v 1.1.1.1 2004-12-05 23:14:33 davidsch Exp $
*/
public abstract class ClassDef {
public abstract int getFormat();
protected static ClassDef read(final RandomAccessFile raf) throws IOException {
ClassDef c = null;
final int format = raf.readUnsignedShort();
if (format == 1) {
c = new ClassDefFormat1(raf);
} else if (format == 2) {
c = new ClassDefFormat2(raf);
}
return c;
}
}