commonlib/src/main/java/com/streamsets/pipeline/lib/io/LiveFile.java
@SuppressWarnings("unchecked")
  public String serialize() {
    Map map = new LinkedHashMap();
    map.put("path", path.toString());
    map.put("headHash", headHash);
    map.put("headLen", headLen);
    map.put("inode", iNode);
    try {
      JsonMapper objectMapper = DataCollectorServices.instance().get(JsonMapper.SERVICE_KEY);
      return objectMapper.writeValueAsString(map);
    } catch (Exception ex) {
      throw new RuntimeException(Utils.format("Unexpected exception: {}", ex.toString()), ex);
    }
  }
@SuppressWarnings("unchecked")
  public String serialize() {
    Map map = new LinkedHashMap();
    map.put("path", path.toString());
    map.put("headHash", headHash);
    map.put("headLen", headLen);
    map.put("inode", iNode);
    try {
      JsonMapper objectMapper = DataCollectorServices.instance().get(JsonMapper.SERVICE_KEY);
      return objectMapper.writeValueAsString(map);
    } catch (Exception ex) {
      throw new RuntimeException(Utils.format("Unexpected exception: {}", ex.toString()), ex);
    }
  }
Serializes the <code>LiveFile</code> as a string.

@return the serialized string representation of the <code>LiveFile</code>.