public class ANRecord
extends com.neurotec.lang.NObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ANRecord.FieldCollection
Represent collection of subfields in field.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_DATA
Defines Image data (DATA) contained in logical record.
|
static int |
FIELD_IDC
This field is identifies the user-defined text information
contained in the record.
|
static int |
FIELD_LEN
Describes total count of the number of bytes in logical
record.
|
static int |
FLAG_MERGE_DUBLICATE_FIELDS
Flag used to merge duplicate fields in a record (file).
|
static int |
FLAG_RECOVER_FROM_BINARY_DATA
Flag used to recover from binary data in some buggy files during read.
|
static int |
MAX_FIELD_NUMBER
Defines maximal number of fields in logical record.
|
static int |
MAX_IDC
Defines maximum value that image designation character (IDC)
can obtain.
|
| Constructor and Description |
|---|
ANRecord(ANRecordType recordType,
com.neurotec.util.NVersion version,
int idc)
Initializes a new instance of the ANRecord class.
|
ANRecord(ANRecordType recordType,
com.neurotec.util.NVersion version,
int idc,
int flags)
Initializes a new instance of the ANRecord class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginUpdate()
Begins updating the record.
|
void |
endUpdate()
Finishes updating the record.
|
com.neurotec.io.NBuffer |
getData()
Gets ByteBuffer that contains data field of record.
|
ANRecord.FieldCollection |
getFields()
Gets particular fields from the ANRecord.
|
int |
getIdc()
Gets idc of record.
|
ANTemplate |
getOwner()
Gets owner of the object.
|
ANRecordType |
getRecordType()
Gets record type.
|
ANValidationLevel |
getValidationLevel()
Gets validation level of ANRecord.
|
com.neurotec.util.NVersion |
getVersion()
Gets NVersion object representing standard version.
|
boolean |
isValidated()
Checks if record is validated.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
setData(com.neurotec.io.NBuffer value)
Sets data of the current ANRecord.
|
void |
setIdc(int value)
Sets idc of record.
|
int |
size()
Gets record size.
|
void |
Validate()
Validates ANRecord.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static final int MAX_FIELD_NUMBER
public static final int FIELD_LEN
public static final int FIELD_IDC
public static final int FIELD_DATA
public static final int MAX_IDC
public static final int FLAG_MERGE_DUBLICATE_FIELDS
public static final int FLAG_RECOVER_FROM_BINARY_DATA
public ANRecord(ANRecordType recordType, com.neurotec.util.NVersion version, int idc)
recordType - Record type objectversion - Specifies the version of the ANRecordidc - Image designation character value
ANRecord is created as NOT validated.public ANRecord(ANRecordType recordType, com.neurotec.util.NVersion version, int idc, int flags)
recordType - Record type objectversion - Specifies the version of the ANRecordidc - Image designation character valueflags - Should be zero
ANRecord is created as NOT validated.public static com.neurotec.lang.NType nativeTypeOf()
public final com.neurotec.io.NBuffer getData()
public void setData(com.neurotec.io.NBuffer value)
value - Byte buffer containing new data.copy - true if copy is required; else false.public void beginUpdate()
public void endUpdate()
public final ANTemplate getOwner()
getOwner in class com.neurotec.lang.NObjectpublic final ANRecordType getRecordType()
public final boolean isValidated()
true if validated false otherwisepublic final void Validate()
public final int size()
public ANValidationLevel getValidationLevel()
public com.neurotec.util.NVersion getVersion()
public final int getIdc()
public final void setIdc(int value)
value - Value of record idc.public final ANRecord.FieldCollection getFields()
Copyright © 2016 Neurotechnology. All rights reserved.