KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hdf > model > util > ParsingState


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    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         
18 package org.apache.poi.hdf.model.util;
19
20 import org.apache.poi.hdf.model.hdftypes.FormattedDiskPage;
21
22 public class ParsingState
23 {
24
25   //int _numPages;// = charPlcf.length();
26
int _currentPageIndex = 0;
27   FormattedDiskPage _fkp;// = new CHPFormattedDiskPage(fkp);
28
int _currentPropIndex = 0;
29   //int _currentArraySize;// = cfkp.size();
30

31   public ParsingState(int firstPage, FormattedDiskPage fkp)
32   {
33     _fkp = fkp;
34   }
35   //public int getCurrentPage()
36
//{
37
// return _currentPage;
38
//}
39
//public int getNumPages()
40
//{
41
// return _numPages;
42
//}
43
public int getCurrentPageIndex()
44   {
45     return _currentPageIndex;
46   }
47   public FormattedDiskPage getFkp()
48   {
49     return _fkp;
50   }
51   public int getCurrentPropIndex()
52   {
53     return _currentPropIndex;
54   }
55
56   public void setState(int currentPageIndex, FormattedDiskPage fkp, int currentPropIndex)
57   {
58
59     _currentPageIndex = currentPageIndex;
60     _fkp = fkp;
61     _currentPropIndex = currentPropIndex;
62     //_currentArraySize = currentArraySize;
63
}
64 }
65
Popular Tags