1 18 package org.apache.batik.svggen.font.table; 19 20 import java.io.IOException ; 21 import java.io.RandomAccessFile ; 22 23 28 public class Feature { 29 30 private int featureParams; 31 private int lookupCount; 32 private int[] lookupListIndex; 33 34 35 protected Feature(RandomAccessFile raf, int offset) throws IOException { 36 raf.seek(offset); 37 featureParams = raf.readUnsignedShort(); 38 lookupCount = raf.readUnsignedShort(); 39 lookupListIndex = new int[lookupCount]; 40 for (int i = 0; i < lookupCount; i++) { 41 lookupListIndex[i] = raf.readUnsignedShort(); 42 } 43 } 44 45 public int getLookupCount() { 46 return lookupCount; 47 } 48 49 public int getLookupListIndex(int i) { 50 return lookupListIndex[i]; 51 } 52 53 } 54 | Popular Tags |