@Test public void whenClassPathResource() { StreamProviderFactory streamProviderFactory = new FileStreamProviderFactory( DataFormat.JSON ); InputStreamProvider inputStreamProvider = streamProviderFactory.newInputStreamProvider("classpath:in.txt"); try (InputStream inputStream= inputStreamProvider.getInputStream()) { assertNotNull(inputStream); } catch (IOException e) { e.printStackTrace(); } }
@Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); } }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  @Override InputStreamProvider newInputStreamProvider(String target); @Override OutputStreamProvider newOutputStreamProvider(String target); }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  @Override InputStreamProvider newInputStreamProvider(String target); @Override OutputStreamProvider newOutputStreamProvider(String target);  }