public final class LisFileHeaderRecord extends LisRecord
See LIS 79 Documentation Section 4.1.14.
LisRecord.Type
Constructor and Description |
---|
LisFileHeaderRecord(String fileName,
String serviceId,
String versionNo,
Date generatedDate,
int maxSegmentLength,
String fileType,
String previousFileName)
Create a file header record.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Return logical file name.
|
String |
getFileType()
Return file type of this record.
|
Date |
getGeneratedDate()
Return generated date of this record.
|
int |
getMaxSegmentLength()
Return maximum segment length for the file.
|
String |
getPreviousFileName()
Get name of previous file.
|
String |
getServiceId()
Return service ID of this record.
|
int |
getSize()
Return size (in bytes) of this record.
|
String |
getVersionNo()
Get software version number of this record.
|
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 |
setPreviousFileName(String previousFileName)
Set previous 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 LisFileHeaderRecord(String fileName, String serviceId, String versionNo, Date generatedDate, int maxSegmentLength, String fileType, String previousFileName)
fileName
- File name. Should be within 10 characters or it will
be clipped when written to file. Null if N/A.serviceId
- Service ID.
Should be within 6 characters or it will be clipped when written
to file. Null if N/A.versionNo
- Version number for the software that wrote the original data.
Should be within 8 characters or it will be clipped when written
to file. Null if N/A.generatedDate
- Date of generation. Null to indicate unknown or N/A.maxSegmentLength
- Maximum segment length.fileType
- File type. Should be within two characters or it will
be clipped when written to file. Null if N/A.previousFileName
- Previous file name. Should be within 10 characters or it will
be clipped when written to file. Null if N/A.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 getPreviousFileName()
public void setPreviousFileName(String previousFileName)
previousFileName
- Previous file name to set. Null if N/A.public int getSize()
Copyright © 2024 Petroware AS - https://petroware.no