public final class SegyTextHeader extends Object
A SEG Y file contains at least one such header, but may optionally contain more than one, according to the number of extended records indicated in the binary file header.
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH
The fixed size length of a tect header.
|
Constructor and Description |
---|
SegyTextHeader(String text)
Create a text header with the specified content.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
asEbcdic()
Return the text of this header encoded according to EBCDIC.
|
String |
getText()
Return the text of this header.
|
void |
setText(String text)
Set text of this header.
|
String |
toString() |
public static final int LENGTH
public SegyTextHeader(String text)
text
- Text content of header. Will be clipped or
space padded as necessary to make it the
fixed size according to the SEG Y specification.
Not null.IllegalArgumentException
- If text is null.public String getText()
public void setText(String text)
text
- Text to set. Non-null. The text will be padded or cut
as necessary in order to fulfill the length requirement.public byte[] asEbcdic()
Copyright © 2020 Petroware AS - https://petroware.no