01: /* ====================================================================
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: 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.extractor;
19:
20: /**
21: * Comment me
22: *
23: * @author Ryan Ackley
24: */
25:
26: public class HeaderFooter {
27: public static final int HEADER_EVEN = 1;
28: public static final int HEADER_ODD = 2;
29: public static final int FOOTER_EVEN = 3;
30: public static final int FOOTER_ODD = 4;
31: public static final int HEADER_FIRST = 5;
32: public static final int FOOTER_FIRST = 6;
33:
34: private int _type;
35: private int _start;
36: private int _end;
37:
38: public HeaderFooter(int type, int startFC, int endFC) {
39: _type = type;
40: _start = startFC;
41: _end = endFC;
42: }
43:
44: public int getStart() {
45: return _start;
46: }
47:
48: public int getEnd() {
49: return _end;
50: }
51:
52: public boolean isEmpty() {
53: if (_start - _end == 0) {
54: return true;
55: } else {
56: return false;
57: }
58: }
59:
60: }
|