private void createDataFile ( ) throws IOException { // temporary data file for storage of stream data Path path = Paths . get ( filePath + ".ser" ) ; if ( Files . deleteIfExists ( path ) ) { log . debug ( "Previous flv data file existed and was removed" ) ; } this . dataChannel = Files . newByteChannel ( path , StandardOpenOption . CREATE_NEW , StandardOpenOption . WRITE , StandardOpenOption . READ ) ; }
Create the stream data file .