From 5896b285fc9757fb8865bc92e3b801991cdb5892 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Thu, 1 Aug 2002 04:40:26 +0000 Subject: [PATCH] Add a getter for linkname. Submitted by: njoneill@llnl.gov git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273190 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/tar/TarEntry.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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. *