/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.unitext.internal.word;

public class FATStream extends CompoundFileStream {

    public FATStream(CompoundFileStorage _storage) {
        super(_storage, _storage.getSystem().getSectorSize());
    }

    @Override
    protected byte[] getPageData(int pageIndex) {
        try {
            byte[] page = new byte[this.getPageSize()];
            int sector = getSystem().getStreamNextSector(this.getStorage().getEntry().startingSectorLocation, pageIndex);
            return ReaderUtils.readFragment(this.getSystem().getBaseStream(), this.getSystem().getSectorOffset(sector), this.getPageSize());
        } catch (Exception ex123) {
            return null;
        }
    }
    public FATStream() {
        super();
    }
}
