public final class LisTapeTrailerRecord extends LisRecord
The Tape Trailer Logical Record is 128 bytes in length. If several Logical Tapes are stored on one Physical Reel, then this type indicates the end of a Logical Tape. This record is optional; in its absence a Logical Tape is assumed to be terminated when a new Tape Header Logical Record is encountered.
See LIS 79 Documentation Section 4.1.17.
LisRecord.Type
Constructor and Description |
---|
LisTapeTrailerRecord(String serviceName,
Date date,
String origin,
String tapeName,
int tapeNumber,
String nextTapeName,
String comments)
Create a tape trailer record.
|
Modifier and Type | Method and Description |
---|---|
String |
getComments()
Return comments.
|
Date |
getDate()
Return date of this record.
|
String |
getNextTapeName()
Get name of next tape.
|
String |
getOrigin()
Get origin of this record.
|
String |
getServiceName()
Return service name of this record.
|
int |
getSize()
Return size (in bytes) of this record.
|
String |
getTapeName()
Get tape name of this record.
|
int |
getTapeNumber()
Get tape number of this record.
|
void |
setComments(String comments)
Set comments.
|
void |
setDate(Date date)
Set date of this record.
|
void |
setNextTapeName(String nextTapeName)
Set next tape name.
|
void |
setOrigin(String origin)
Set origin of this record.
|
void |
setServiceName(String serviceName)
Set service name of this record.
|
void |
setTapeName(String tapeName)
Set tape name of this record.
|
void |
setTapeNumber(int tapeNumber)
Set tape number of this record.
|
String |
toString() |
getAttributes, getType
public LisTapeTrailerRecord(String serviceName, Date date, String origin, String tapeName, int tapeNumber, String nextTapeName, String comments)
serviceName
- Service name. Should be within six characters or it will
be clipped when written to file. Null if N/A.date
- Date. Null to indicate unknown or N/A.origin
- Origin. Should be within four characters or it will be clipped
when written to file. Null if N/A.tapeName
- Tape name. Should be within eight characters or it will be
clipped when written to file. Null if N/A.tapeNumber
- Tape number. [1,99].nextTapeName
- Next tape name. Should be within eight characters or it will
be clipped when written to file. Null if N/A.comments
- Comments. Should be within 74 characters or it will
be clipped when written to file. Null if N/A.public String getServiceName()
public void setServiceName(String serviceName)
serviceName
- Service name to set. Null if N/A.public Date getDate()
public void setDate(Date date)
date
- Date to set. Null if N/A.public String getOrigin()
public void setOrigin(String origin)
origin
- Origin to set. Null if N/A.public String getTapeName()
public void setTapeName(String tapeName)
tapeName
- Tape name to set. Null if N/A.public int getTapeNumber()
public void setTapeNumber(int tapeNumber)
tapeNumber
- Tape number of this record. [1,99].IllegalArgumentException
- If rellNumber is out of bounds.public String getNextTapeName()
public void setNextTapeName(String nextTapeName)
nextTapeName
- Next tape name to set. Null if N/A.public String getComments()
public void setComments(String comments)
comments
- Comments to set. Null if N/A.public int getSize()
Copyright © 2024 Petroware AS - https://petroware.no