CopyListingFileStatus implements Writable { @Override public String toString() { StringBuilder sb = new StringBuilder(super.toString()); sb.append('{'); sb.append(this.getPath() == null ? "" : this.getPath().toString()) .append(" length = ").append(this.getLen()) .append(" aclEntries = ").append(aclEntries) .append(", xAttrs = ").append(xAttrs) .append(", modTime = ").append(modificationTime); if (isSplit()) { sb.append(", chunkOffset = ").append(this.getChunkOffset()) .append(", chunkLength = ").append(this.getChunkLength()); } sb.append('}'); return sb.toString(); } CopyListingFileStatus();  CopyListingFileStatus(FileStatus fileStatus);  CopyListingFileStatus(FileStatus fileStatus,
      long chunkOffset, long chunkLength); @SuppressWarnings("checkstyle:parameternumber")  CopyListingFileStatus(long length, boolean isdir,
      int blockReplication, long blocksize, long modificationTime,
      long accessTime, FsPermission permission, String owner, String group,
      Path path); @SuppressWarnings("checkstyle:parameternumber")  CopyListingFileStatus(long length, boolean isdir,
      int blockReplication, long blocksize, long modificationTime,
      long accessTime, FsPermission permission, String owner, String group,
      Path path, long chunkOffset, long chunkLength);  CopyListingFileStatus(CopyListingFileStatus other); Path getPath(); long getLen(); long getBlockSize(); boolean isDirectory(); short getReplication(); long getModificationTime(); String getOwner(); String getGroup(); long getAccessTime(); FsPermission getPermission(); boolean isErasureCoded(); List<AclEntry> getAclEntries(); void setAclEntries(List<AclEntry> aclEntries); Map<String, byte[]> getXAttrs(); void setXAttrs(Map<String, byte[]> xAttrs); long getChunkOffset(); void setChunkOffset(long offset); long getChunkLength(); void setChunkLength(long chunkLength); boolean isSplit(); long getSizeToCopy(); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { CopyListingFileStatus src = new CopyListingFileStatus( 4344L, false, 2, 512 << 20, 1234L, 5678L, new FsPermission((short)0512), "dingo", "yaks", new Path("hdfs: src.toString(); src = new CopyListingFileStatus(); src.toString(); }