Home » pdfbox-1.1.0-src » org.apache.fontbox.ttf » [javadoc | source]

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.fontbox.ttf;
   18   
   19   import java.io.IOException;
   20   
   21   /**
   22    * A table in a true type font.
   23    * 
   24    * @author Ben Litchfield (ben@benlitchfield.com)
   25    * @version $Revision: 1.1 $
   26    */
   27   public class TTFTable 
   28   {
   29       private String tag;
   30       private long checkSum;
   31       private long offset;
   32       private long length;
   33         
   34       /**
   35        * @return Returns the checkSum.
   36        */
   37       public long getCheckSum() 
   38       {
   39           return checkSum;
   40       }
   41       /**
   42        * @param checkSumValue The checkSum to set.
   43        */
   44       public void setCheckSum(long checkSumValue) 
   45       {
   46           this.checkSum = checkSumValue;
   47       }
   48       /**
   49        * @return Returns the length.
   50        */
   51       public long getLength() 
   52       {
   53           return length;
   54       }
   55       /**
   56        * @param lengthValue The length to set.
   57        */
   58       public void setLength(long lengthValue) 
   59       {
   60           this.length = lengthValue;
   61       }
   62       /**
   63        * @return Returns the offset.
   64        */
   65       public long getOffset() 
   66       {
   67           return offset;
   68       }
   69       /**
   70        * @param offsetValue The offset to set.
   71        */
   72       public void setOffset(long offsetValue) 
   73       {
   74           this.offset = offsetValue;
   75       }
   76       /**
   77        * @return Returns the tag.
   78        */
   79       public String getTag() 
   80       {
   81           return tag;
   82       }
   83       /**
   84        * @param tagValue The tag to set.
   85        */
   86       public void setTag(String tagValue) 
   87       {
   88           this.tag = tagValue;
   89       }
   90       
   91       /**
   92        * This will read the required data from the stream.
   93        * 
   94        * @param ttf The font that is being read.
   95        * @param data The stream to read the data from.
   96        * @throws IOException If there is an error reading the data.
   97        */
   98       public void initData( TrueTypeFont ttf, TTFDataStream data ) throws IOException
   99       {
  100       }
  101   }

Home » pdfbox-1.1.0-src » org.apache.fontbox.ttf » [javadoc | source]