public final class LisFileTrailerRecord extends LisRecord
See LIS 79 Documentation Section 4.1.15.
LisRecord.Type
Constructor and Description |
---|
LisFileTrailerRecord(String fileName,
String serviceId,
String versionNo,
Date generatedDate,
int maxSegmentLength,
String fileType,
String nextFileName)
Create a file trailing record.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Return logical file name.
|
String |
getFileType()
Return file type.
|
Date |
getGeneratedDate()
Return generation date.
|
int |
getMaxSegmentLength()
Return maximum segment length for the file.
|
String |
getNextFileName()
Get name of next file.
|
String |
getServiceId()
Return service ID.
|
int |
getSize()
Return size (in bytes) of this record.
|
String |
getVersionNo()
Get software version number.
|
void |
setFileName(String fileName)
Set file name of this record.
|
void |
setFileType(String fileType)
Set file type of this record.
|
void |
setGeneratedDate(Date generatedDate)
Set generated date of this record.
|
void |
setMaxSegmentLength(int maxSegmentLength)
Set maximum segment length of the file.
|
void |
setNextFileName(String nextFileName)
Set next file name.
|
void |
setServiceId(String serviceId)
Set service ID of this record.
|
void |
setVersionNo(String versionNo)
Get software version number of this record.
|
String |
toString() |
getAttributes, getType
public LisFileTrailerRecord(String fileName, String serviceId, String versionNo, Date generatedDate, int maxSegmentLength, String fileType, String nextFileName)
fileName
- File name. Should be within 10 characters or it will
be clipped when written to file. Null if N/A.serviceId
- Service ID. Null if N/A.versionNo
- Version number for the software that wrote the original data.
Non-null.generatedDate
- Date of generation. Null to indicate unknown or N/A.maxSegmentLength
- Maximum segment length. [4,99999].fileType
- File type. Should be within two characters or it will
be clipped when written to file. Null if N/A.nextFileName
- Next file name. Should be within 10 characters or it will
be clipped when written to file. Null if N/A.IllegalArgumentException
- If maxSegmentLength is out of bounds.public String getFileName()
public void setFileName(String fileName)
fileName
- File name to set. Null if N/A.public String getServiceId()
public void setServiceId(String serviceId)
serviceId
- Service ID to set. Null if N/A.public String getVersionNo()
public void setVersionNo(String versionNo)
versionNo
- Version number to set. Null if N/A.public Date getGeneratedDate()
public void setGeneratedDate(Date generatedDate)
generatedDate
- Generated date to set. Null if N/A.public int getMaxSegmentLength()
public void setMaxSegmentLength(int maxSegmentLength)
maxSegmentLength
- Maximum segment length of the file. [4,99999].IllegalArgumentException
- If maxSegmentLength is out of bounds.public String getFileType()
public void setFileType(String fileType)
fileType
- File type. Null if N/A.public String getNextFileName()
public void setNextFileName(String nextFileName)
nextFileName
- Next file name to set. Null if N/A.public int getSize()
Copyright © 2024 Petroware AS - https://petroware.no