private Properties downloadIndexProperties( final ResourceFetcher fetcher ) throws IOException { try ( InputStream fis = fetcher.retrieve( IndexingContext.INDEX_REMOTE_PROPERTIES_FILE ) ) { Properties properties = new Properties(); properties.load( fis ); return properties; } }
private Properties downloadIndexProperties( final ResourceFetcher fetcher ) throws IOException { try ( InputStream fis = fetcher.retrieve( IndexingContext.INDEX_REMOTE_PROPERTIES_FILE ) ) { Properties properties = new Properties(); properties.load( fis ); return properties; } }
private Properties downloadIndexProperties( final ResourceFetcher fetcher ) throws IOException { InputStream fis = fetcher.retrieve( IndexingContext.INDEX_REMOTE_PROPERTIES_FILE ); try { Properties properties = new Properties(); properties.load( fis ); return properties; } finally { IOUtil.close( fis ); } }
public void addIndexChunk( ResourceFetcher source, String filename ) throws IOException { File chunk = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), chunk ); newChunks.add( filename ); }
public void addIndexChunk( ResourceFetcher source, String filename ) throws IOException { File chunk = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), chunk ); newChunks.add( filename ); }
public void addIndexChunk( ResourceFetcher source, String filename ) throws IOException { File chunk = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), chunk ); newChunks.add( filename ); }
public Date setIndexFile( ResourceFetcher source, String filename ) throws IOException { cleanCacheDirectory( dir ); result.setFullUpdate( true ); File target = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), target ); return null; }
public Date setIndexFile( ResourceFetcher source, String filename ) throws IOException { cleanCacheDirectory( dir ); result.setFullUpdate( true ); File target = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), target ); return null; }
public Date setIndexFile( ResourceFetcher source, String filename ) throws IOException { cleanCacheDirectory( dir ); result.setFullUpdate( true ); File target = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), target ); return null; }
is = new BufferedInputStream( fetcher.retrieve( remoteIndexFile ) );
indexDir.mkdirs(); try ( BufferedInputStream is = new BufferedInputStream( fetcher.retrieve( remoteIndexFile ) ); // Directory directory = updateRequest.getFSDirectoryFactory().open( indexDir ) )
indexDir.mkdirs(); try ( BufferedInputStream is = new BufferedInputStream( fetcher.retrieve( remoteIndexFile ) ); // Directory directory = updateRequest.getFSDirectoryFactory().open( indexDir ) )