KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pdfbox > ttf > TTFTable


1 /**
2  * Copyright (c) 2004, www.pdfbox.org
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  * 3. Neither the name of pdfbox; nor the names of its
14  * contributors may be used to endorse or promote products derived from this
15  * software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * http://www.pdfbox.org
29  *
30  */

31 package org.pdfbox.ttf;
32
33 import java.io.IOException JavaDoc;
34
35 /**
36  * A table in a true type font.
37  *
38  * @author Ben Litchfield (ben@csh.rit.edu)
39  * @version $Revision: 1.1 $
40  */

41 public class TTFTable
42 {
43     private String JavaDoc tag;
44     private long checkSum;
45     private long offset;
46     private long length;
47       
48     /**
49      * @return Returns the checkSum.
50      */

51     public long getCheckSum()
52     {
53         return checkSum;
54     }
55     /**
56      * @param checkSumValue The checkSum to set.
57      */

58     public void setCheckSum(long checkSumValue)
59     {
60         this.checkSum = checkSumValue;
61     }
62     /**
63      * @return Returns the length.
64      */

65     public long getLength()
66     {
67         return length;
68     }
69     /**
70      * @param lengthValue The length to set.
71      */

72     public void setLength(long lengthValue)
73     {
74         this.length = lengthValue;
75     }
76     /**
77      * @return Returns the offset.
78      */

79     public long getOffset()
80     {
81         return offset;
82     }
83     /**
84      * @param offsetValue The offset to set.
85      */

86     public void setOffset(long offsetValue)
87     {
88         this.offset = offsetValue;
89     }
90     /**
91      * @return Returns the tag.
92      */

93     public String JavaDoc getTag()
94     {
95         return tag;
96     }
97     /**
98      * @param tagValue The tag to set.
99      */

100     public void setTag(String JavaDoc tagValue)
101     {
102         this.tag = tagValue;
103     }
104     
105     /**
106      * This will read the required data from the stream.
107      *
108      * @param ttf The font that is being read.
109      * @param data The stream to read the data from.
110      * @throws IOException If there is an error reading the data.
111      */

112     public void initData( TrueTypeFont ttf, TTFDataStream data ) throws IOException JavaDoc
113     {
114     }
115 }
116
Popular Tags