Package org.apache.poi.poifs.nio

Examples of org.apache.poi.poifs.nio.FileBackedDataSource


         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here


         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here

       this(false);

       try {
          // Initialize the datasource
          if (srcFile != null) {
              FileBackedDataSource d = new FileBackedDataSource(srcFile, readOnly);
              channel = d.getChannel();
              _data = d;
          } else {
              _data = new FileBackedDataSource(channel, readOnly);
          }
          
          // Get the header
          ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
          IOUtils.readFully(channel, headerBuffer);
View Full Code Here

         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here

         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here

         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here

         
          // Have the header processed
          _header = new HeaderBlock(headerBuffer);
         
          // Now process the various entries
          _data = new FileBackedDataSource(channel);
          readCoreContents();
       } catch(IOException e) {
          if(closeChannelOnError) {
             channel.close();
          }
View Full Code Here

       this(false);

       try {
          // Initialize the datasource
          if (srcFile != null) {
              FileBackedDataSource d = new FileBackedDataSource(srcFile, readOnly);
              channel = d.getChannel();
              _data = d;
          } else {
              _data = new FileBackedDataSource(channel, readOnly);
          }
          
          // Get the header
          ByteBuffer headerBuffer = ByteBuffer.allocate(POIFSConstants.SMALLER_BIG_BLOCK_SIZE);
          IOUtils.readFully(channel, headerBuffer);
View Full Code Here

TOP

Related Classes of org.apache.poi.poifs.nio.FileBackedDataSource

Copyright © 2018 www.massapicom. 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.