1 18 package org.apache.batik.svggen.font.table; 19 20 import java.io.IOException ; 21 import java.io.RandomAccessFile ; 22 23 27 public class CvtTable implements Table { 28 29 private short[] values; 30 31 protected CvtTable(DirectoryEntry de,RandomAccessFile raf) throws IOException { 32 raf.seek(de.getOffset()); 33 int len = de.getLength() / 2; 34 values = new short[len]; 35 for (int i = 0; i < len; i++) { 36 values[i] = raf.readShort(); 37 } 38 } 39 40 public int getType() { 41 return cvt; 42 } 43 44 public short[] getValues() { 45 return values; 46 } 47 } 48 | Popular Tags |