diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java index 777b8cb13..3717af56f 100644 --- a/src/main/org/apache/tools/tar/TarEntry.java +++ b/src/main/org/apache/tools/tar/TarEntry.java @@ -317,8 +317,16 @@ public class TarEntry implements TarConstants { public void setMode(int mode) { this.mode = mode; } - - + + /** + * Get this entry's link name. + * + * @return This entry's link name. + */ + public String getLinkName() { + return this.linkName.toString(); + } + /** * Get this entry's user id. *