Package com.extentech.formats.LEO

Examples of com.extentech.formats.LEO.BlockByteReader


   
    while (child!=null) {
      if (wbh!=null)
      caches.put(Integer.valueOf(child.getName()), child);
      ArrayList<BiffRec> curRecs= new ArrayList();
      BlockByteReader bytes= child.getBlockReader();
      int len= bytes.getLength();
      for (int i = 0; i <= len - 4;) {
        byte[] headerbytes = bytes.getHeaderBytes(i);
        short opcode = ByteTools.readShort(headerbytes[0], headerbytes[1]);
        int reclen = ByteTools.readShort(headerbytes[2], headerbytes[3]);
        BiffRec rec = XLSRecordFactory.getBiffRecord( opcode );
        if (wbh!=null) rec.setDebugLevel(wbh.getDebugLevel()); // KSC: added to propogate debug level
       
View Full Code Here


   *
   * */
  private void initFromLeoFile(LEOFile leo) {
      this.myLEOFile = leo;
      try {
            BlockByteReader bar = myLEOFile.getXLSBlockBytes();
            this.initBytes(bar);
            this.setIsExcel2007(false);
            myLEOFile.clearAfterInit()
        }catch (Exception e) {
            if (e instanceof com.extentech.formats.XLS.WorkBookException)
View Full Code Here

        ByteBuffer bbf = ByteBuffer.wrap(barray);
        bbf.order(ByteOrder.LITTLE_ENDIAN);
        myLEOFile = new LEOFile(bbf);
        if(myLEOFile.hasWorkBook()){
            try {
                BlockByteReader bar = myLEOFile.getXLSBlockBytes();
                this.initBytes(bar);
            }catch (Throwable e) {
                if(e instanceof OutOfMemoryError)throw (Error)e;
                if(e instanceof WorkBookException)throw (WorkBookException)e;
                String errstr ="Instantiating WorkBookHandle failed: " + e.toString();
View Full Code Here

TOP

Related Classes of com.extentech.formats.LEO.BlockByteReader

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.