Package com.extentech.formats.LEO

Examples of com.extentech.formats.LEO.LEOFile


          "Unable to load prototype workbook.",
          WorkBookException.LICENSING_FAILED);
      }
      ByteBuffer bbf = ByteBuffer.wrap(b);
       bbf.order(ByteOrder.LITTLE_ENDIAN);
      myLEOFile = new LEOFile(bbf);
    }catch(Exception e) {
        throw new InvalidFileException("WorkBook could not be instantiated: "+ e.toString());
    }
    this.initFromLeoFile(myLEOFile);
    }
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) {
View Full Code Here

        OOXMLAdapter.refreshPassThroughFiles(this);     
      if(initXLSX(fname))
        return;
    }
      try{
        myLEOFile = new LEOFile(fx, this.DEBUGLEVEL);
      }catch(InvalidFileException ifx){
      if((finch.indexOf(",")>-1)
          &&(finch.indexOf(",")>-1)){
          // init a blank workbook
          this.initDefault();
View Full Code Here

    this.plist = pn;
    try {
        byte[] b = getPrototypeBook();
      ByteBuffer bbf = ByteBuffer.wrap(b);
       bbf.order(ByteOrder.LITTLE_ENDIAN);
      myLEOFile = new LEOFile(bbf);
    }catch(Exception e) {
        throw new InvalidFileException("WorkBook could not be instantiated: "+ e.toString());
    }
    this.initFromLeoFile(myLEOFile);
  }
View Full Code Here

        count = bufferedStream.read( headerBytes );
        bufferedStream.reset();
   
        // if it starts with the LEO magic number check the header
        if (LEOFile.checkIsLEO( headerBytes, count )) {
          LEOFile leo = new LEOFile( bufferedStream );
         
          if (leo.hasWorkBook()) return new WorkBookHandle( leo );
          else throw new WorkBookException(
              "input is LEO but no supported format detected", -1 );
        }

        String headerString;
View Full Code Here

TOP

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

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.