Package org.fto.jthink.io

Examples of org.fto.jthink.io.SmartAccessFile.indexOf()


      saf.read(safs);
      this.printBytes("safs:", safs);
     
      saf.seek(0);
      byte[] bs = "pqrstuvwxyz".getBytes();
      long index = saf.indexOf(bs, 0, bs.length);
      System.out.println("saf.indexOf(bs) 1:"+index);
      if(index!=-1){
        super.fail();
      }
      saf.seek(0);
View Full Code Here


      if(index!=-1){
        super.fail();
      }
      saf.seek(0);
      bs = "0123456789".getBytes();
      index = saf.indexOf(bs, 0, bs.length);
      System.out.println("saf.indexOf(bs) 2:"+index);
      if(index!=3){
        super.fail();
      }
      saf.seek(0);
View Full Code Here

      if(index!=3){
        super.fail();
      }
      saf.seek(0);
      bs = "试索引".getBytes("gb2312");
      index = saf.indexOf(bs, 0, bs.length);
      this.printBytes("试索引:", bs);
     
      System.out.println("saf.indexOf(bs) 3:"+index);
      if(index!=17){
        super.fail();
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.