All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.npu.fastexcel.biff.parser.EOFParser Maven / Gradle / Ivy

The newest version!
/* 
 *FastExcel,(c) copyright 2009 yAma.  
 *WEB: http://fastexcel.sourceforge.net
 *
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA.
 */
/**
 * 
 */
package edu.npu.fastexcel.biff.parser;

import edu.npu.fastexcel.ExcelException;
import edu.npu.fastexcel.biff.Types;
import edu.npu.fastexcel.biff.read.SubStream;
import edu.npu.fastexcel.biff.record.Record;

/**
 * 
 * BIFF2 BIFF3 BIFF4 BIFF5 BIFF8
 * 000AH 000AH 000AH 000AH 000AH
 * This record has no content. It indicates the end of a record block with leading
 * BOF record. This could be the end of the workbook globals, a worksheet, 
 * a chart, etc.
 * 
* * @author yAma 2008-11-20 */ public class EOFParser extends RecordParser { /** * @param type */ public EOFParser() { super(Types.EOF); } /* * (non-Javadoc) * * @see * edu.npu.fastexcel.biff.parser.RecordParser#parse(edu.npu.fastexcel.biff * .record.Record, edu.npu.fastexcel.biff.parser.ParserContext) */ public void parse(Record record, ParserContext context) throws ParserException { SubStream s = context.getStream().getCurrentStream(); try { s.setEof(true); s.flush(); } catch (ExcelException e) { throw new ParserException(e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy