public void copyVideoData(Video v,OutputStream out) throws IOException {
  Path source=getVideoPath(v);
  if (!Files.exists(source)) {
    throw new FileNotFoundException("Unable to find the referenced video file for videoId:" + v.getId());
  }
  Files.copy(source,out);
}

public void copyVideoData ( Video v , OutputStream out ) throws IOException { Path source = getVideoPath ( v ) ; if ( ! Files . exists ( source ) ) { throw new FileNotFoundException ( "Unable to find the referenced video file for videoId:" + v . getId ( ) ) ; } Files . copy ( source , out ) ; }
this method copies the binary data for the given video to the provided output stream . the caller is responsible for ensuring that the specified video has binary data associated with it . if not , this method will throw a filenotfoundexception .
