List of usage examples for java.io BufferedOutputStream BufferedOutputStream
public BufferedOutputStream(OutputStream out)
From source file:com.streamsets.pipeline.stage.processor.geolocation.TestGeolocationProcessor.java
@Before public void setup() throws Exception { tempDir = Files.createTempDir(); databaseFile = new File(tempDir, "GeoLite2-Country.mmdb"); BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(databaseFile)); Resources.copy(Resources.getResource("GeoLite2-Country.mmdb"), out); out.flush();/* w w w . j a v a 2s .co m*/ out.close(); }