/*
 * 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 MiniFATStream extends CompoundFileStream {

    public MiniFATStream(CompoundFileStorage _storage) {
        super(_storage, _storage.getSystem().getMiniSectorSize());
    }

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