Record Class TarEntry
java.lang.Object
java.lang.Record
org.epics.archiverappliance.utils.nio.tar.TarEntry
public record TarEntry(String entryName, long headeroffset, long dataoffset, long size, File srcContent)
extends Record
Encapsulates both the tar entries in a tar file and also the inputs to the tar file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedataoffsetrecord component.Returns the value of theentryNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheaderoffsetrecord component.booleanbooleanlongsize()Returns the value of thesizerecord component.Returns the value of thesrcContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TarEntry
-
TarEntry
-
TarEntry
Creates an instance of aTarEntryrecord class.- Parameters:
entryName- the value for theentryNamerecord componentheaderoffset- the value for theheaderoffsetrecord componentdataoffset- the value for thedataoffsetrecord componentsize- the value for thesizerecord componentsrcContent- the value for thesrcContentrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
isInsideTar
public boolean isInsideTar() -
isDeleted
public boolean isDeleted() -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entryName
Returns the value of theentryNamerecord component.- Returns:
- the value of the
entryNamerecord component
-
headeroffset
public long headeroffset()Returns the value of theheaderoffsetrecord component.- Returns:
- the value of the
headeroffsetrecord component
-
dataoffset
public long dataoffset()Returns the value of thedataoffsetrecord component.- Returns:
- the value of the
dataoffsetrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
srcContent
Returns the value of thesrcContentrecord component.- Returns:
- the value of the
srcContentrecord component
-