code: protected File parseFileMetaData(final String line, final int lineNumber) throws ParsingException {
          final File file;
          if (line.matches(ProcessorConstants.FILE_ID_REGEX)) {
              file = new File(Integer.parseInt(line));
          } else if (FILE_ID_LONG_PATTERN.matcher(line).matches()) {
              final Matcher matcher = FILE_ID_LONG_PATTERN.matcher(line);
  
              matcher.find();
              final String id = matcher.group("ID");
              final String title = matcher.group("Title");
              final String rev = matcher.group("REV");
              file = new File(title.trim(), Integer.parseInt(id));
  
              if (rev != null) {
                  file.setRevision(Integer.parseInt(rev));
              }
          } else {
              throw new ParsingException(format(ProcessorConstants.ERROR_INVALID_FILE_MSG, lineNumber));
          }
  
          return file;
      }
docs: Parse a File MetaData component into a {@link org.jboss.pressgang.ccms.contentspec.File} object.
  
  @param line       The line to be parsed.
  @param lineNumber The line number of the line being parsed.
  @return A file object initialised with the data from the line.
  @throws ParsingException Thrown if the line contains invalid content and couldn't be parsed.