Package org.apache.kato.hprof.datalayer

Examples of org.apache.kato.hprof.datalayer.CachedRandomAccesDataProvider.moveTo()


  public void testReadBackwards() throws Exception {
    CachedRandomAccesDataProvider provider = new CachedRandomAccesDataProvider(testFile);
    provider.open();
   
    for(int i=1048572; i >0 ; i-=1) {
      provider.moveTo(i*4);
      int val = provider.readU4();
      assertEquals(i,val);
    }
    provider.close();
  }
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.