public final class LisTapeHeaderRecord extends LisRecord
The Tape Header Logical Record is 128 bytes in length. It is used to
See LIS 79 Documentation Section 4.1.16.
LisRecord.Type
Constructor and Description |
---|
LisTapeHeaderRecord(String serviceName,
Date date,
String origin,
String tapeName,
int tapeNumber,
String previousTapeName,
String comments)
Create a tape header record.
|
Modifier and Type | Method and Description |
---|---|
String |
getComments()
Return comments.
|
Date |
getDate()
Return date of this record.
|
String |
getOrigin()
Get origin of this record.
|
String |
getPreviousTapeName()
Get name of previous tape.
|
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 |
setOrigin(String origin)
Set origin of this record.
|
void |
setPreviousTapeName(String previousTapeName)
Set previous tape name.
|
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 LisTapeHeaderRecord(String serviceName, Date date, String origin, String tapeName, int tapeNumber, String previousTapeName, 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].previousTapeName
- Previous 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 getPreviousTapeName()
public void setPreviousTapeName(String previousTapeName)
previousTapeName
- Previous 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