Examples of HeaderBlock


Examples of org.apache.poi.poifs.storage.HeaderBlock

    private POIFSBigBlockSize bigBlockSize =
       POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS;

    private NPOIFSFileSystem(boolean newFS)
    {
        _header         = new HeaderBlock(bigBlockSize);
        _property_table = new NPropertyTable(_header);
        _mini_store     = new NPOIFSMiniStore(this, _property_table.getRoot(), new ArrayList<BATBlock>(), _header);
        _xbat_blocks    = new ArrayList<BATBlock>();
        _bat_blocks     = new ArrayList<BATBlock>();
        _root           = null;
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

          // Get the header
          ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
          IOUtils.readFully(channel, headerBuffer);
         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

           // Get the header
           ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
           IOUtils.readFully(channel, headerBuffer);
          
           // Have the header processed
           _header = new HeaderBlock(headerBuffer);
          
           // Sanity check the block count
           BlockAllocationTableReader.sanityCheckBlockCount(_header.getBATCount());
  
           // We need to buffer the whole file into memory when
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

    /**
     * Constructor, intended for writing
     */
    public NPOIFSFileSystem()
    {
        _header         = new HeaderBlock(bigBlockSize);
        _property_table = new NPropertyTable(_header);
        _mini_store     = new NPOIFSMiniStore(this, _property_table.getRoot(), new ArrayList<BATBlock>(), _header);
        _xbat_blocks     = new ArrayList<BATBlock>();
        _bat_blocks     = new ArrayList<BATBlock>();
        _root           = null;
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

          // Get the header
          ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
          IOUtils.readFully(channel, headerBuffer);
         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

           // Get the header
           ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
           IOUtils.readFully(channel, headerBuffer);
          
           // Have the header processed
           _header = new HeaderBlock(headerBuffer);
          
           // Sanity check the block count
           BlockAllocationTableReader.sanityCheckBlockCount(_header.getBATCount());
  
           // We need to buffer the whole file into memory when
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

    private POIFSBigBlockSize bigBlockSize =
       POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS;

    private NPOIFSFileSystem(boolean newFS)
    {
        _header         = new HeaderBlock(bigBlockSize);
        _property_table = new NPropertyTable(_header);
        _mini_store     = new NPOIFSMiniStore(this, _property_table.getRoot(), new ArrayList<BATBlock>(), _header);
        _xbat_blocks    = new ArrayList<BATBlock>();
        _bat_blocks     = new ArrayList<BATBlock>();
        _root           = null;
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

          // Get the header
          ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
          IOUtils.readFully(channel, headerBuffer);
         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

           // Get the header
           ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
           IOUtils.readFully(channel, headerBuffer);
          
           // Have the header processed
           _header = new HeaderBlock(headerBuffer);
          
           // Sanity check the block count
           BlockAllocationTableReader.sanityCheckBlockCount(_header.getBATCount());
  
           // We need to buffer the whole file into memory when
View Full Code Here

Examples of org.apache.poi.poifs.storage.HeaderBlock

  
   protected static HeaderBlock writeOutAndReadHeader(NPOIFSFileSystem fs) throws IOException {
       ByteArrayOutputStream baos = new ByteArrayOutputStream();
       fs.writeFilesystem(baos);
      
       HeaderBlock header = new HeaderBlock(new ByteArrayInputStream(baos.toByteArray()));
       return header;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.