private static File getSrtFile(RcVideoMetadata rcVidMd, RcSrtFileMetadata rcSrtFileMd) throws RcMetadataException, IOException, SAXException { File objDir = rcVidMd.getParentFileSystemDataSourceMetadata().getDirectory(rcVidMd); return new File(objDir.getPath() + File.separator + rcSrtFileMd.getFilename()); }
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new IOException(exceptionPrefix + "object directory " + objDir.getPath() + " not found.");
private static File getVideoFile(RcVideoMetadata rcVidMd) throws RcMetadataException, IOException, SAXException { File objDir = rcVidMd.getParentFileSystemDataSourceMetadata().getDirectory(rcVidMd); File videoFile; synchronized (rcVidMd) { rcVidMd.loadStructure(); videoFile = new File(objDir.getPath() + File.separator + rcVidMd.getVideoFileMetadata().getFilename()); rcVidMd.clearStructure(); } return videoFile; }
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new ServletException(exceptionPrefix + "object directory " + objDir.getPath() + " not found.");
private RcImageLock getImage(HttpServletRequest request, RcObjectMetadata rcObjMd, RcImageMetadata rcImgMd) throws RcMetadataException, IOException { // Get session data HttpSession session = request.getSession(); RcWebSessionData rcWebSessionData = (RcWebSessionData) session.getAttribute(RcWebConstants.RC_WEB_SESSION_DATA_SESSION_ATTRIBUTE); if (rcWebSessionData == null) { rcWebSessionData = new RcWebSessionData(); session.setAttribute(RcWebConstants.RC_WEB_SESSION_DATA_SESSION_ATTRIBUTE, rcWebSessionData); } // Get image file RcFileSystemDataSourceMetadata rcFsDsMd = rcObjMd.getParentFileSystemDataSourceMetadata(); File objDir = rcFsDsMd.getDirectory(rcObjMd); File imgFile = new File(objDir + File.separator + rcImgMd.getTechnicalMetadata().getFilename()); // Get image from cache RcImage rcImg = null; RcImageLock rcImgLock = null; synchronized (rcWebSessionData.rcImageCacheLock) { rcImg = rcWebSessionData.getRcImageCacheEntry(imgFile.getPath()); if (rcImg == null) { rcImg = RcImageIo.decode(imgFile, 0); rcWebSessionData.addRcImageCacheEntry(imgFile.getPath(), rcImg); } rcImgLock = new RcImageLock(rcImg); } return rcImgLock; }
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new ServletException(exceptionPrefix + "object directory " + objDir.getPath() + " not found.");
File objDir = rcFsDsMd.getDirectory(rcAudioRecMd);
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new ServletException(exceptionPrefix + "object directory " + objDir.getPath() + " not found."); File srtFile = new File(rcFsDsMd.getDirectory(rcObjMd).getPath() + File.separator + rcSrtFileMd.getFilename());
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new IOException(exceptionPrefix + "object directory " + objDir.getPath() + " not found."); File srtFile = new File(rcFsDsMd.getDirectory(rcObjMd).getPath() + File.separator + rcSrtFileMd.getFilename());
File rcObjDir = rcFsDsMd.getDirectory(rcObjMd);
File objDir = rcFsDsMd.getDirectory(rcAudioRecMd);
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists()) {
File objDir = rcFsDsMd.getDirectory(rcObjMd); if (!objDir.exists() || !objDir.isDirectory()) { throw new IOException(EXCEPTION_PREFIX + "object directory " + objDir.getPath() + " not found.");