FileDataProviderForSearch () { return new FileDataProviderForSearch() { @Override public long getPagesAmount() throws IOException { return LargeFileManagerImpl.this.getPagesAmount(); } @Override public Page getPage_wait(long pageNumber) throws IOException { return LargeFileManagerImpl.this.getPage_wait(pageNumber); } @Override public String getName() { return LargeFileManagerImpl.this.getFileName(); } }; }