in src/integrationtests/java/com/aws/iot/integrationtests/edgeconnectorforkvs/videorecorder/VideoRecorderNewRecorderAppPathTest.java [81:105]
private void initByteArray(boolean toInit) throws IOException {
if (toInit) {
this.rec1ByteOut1 = new ByteArrayOutputStream();
this.rec1ByteOut2 = new ByteArrayOutputStream();
this.rec2ByteOut1 = new ByteArrayOutputStream();
this.rec2ByteOut2 = new ByteArrayOutputStream();
} else {
if (this.rec1ByteOut1 != null) {
this.rec1ByteOut1.close();
this.rec1ByteOut1 = null;
}
if (this.rec1ByteOut2 != null) {
this.rec1ByteOut2.close();
this.rec1ByteOut2 = null;
}
if (this.rec2ByteOut1 != null) {
this.rec2ByteOut1.close();
this.rec2ByteOut1 = null;
}
if (this.rec2ByteOut2 != null) {
this.rec2ByteOut2.close();
this.rec2ByteOut2 = null;
}
}
}