Code example for FileImageOutputStream

0
        File outputFile = GlobalTestConfig.getBeamTestDataOutputFile("ProductData");
        outputFile.mkdirs();
        File streamFile = new File(outputFile, "uint.img");
        streamFile.createNewFile();
        _inputStream = new FileImageInputStream(streamFile);
        _outputStream = new FileImageOutputStream(streamFile);
        assertNotNull(_inputStream);
        assertNotNull(_outputStream);
    } 
 
    @Override 
    protected void tearDown() { 
        try { 
            _inputStream.close();
            _outputStream.close();
        } catch (IOException e) {
        } 
        FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); 
    }