java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf42.Smf42Record
- Direct Known Subclasses:
Smf4201Record
,Smf4202Record
,Smf4203Record
,Smf4204Record
,Smf4205Record
,Smf4206Record
,Smf4209Record
,Smf4210Record
,Smf4211Record
,Smf4215Record
,Smf4216Record
,Smf4217Record
,Smf4218Record
,Smf4219Record
,Smf4220Record
,Smf4221Record
,Smf4222Record
,Smf4223Record
,Smf4224Record
,Smf4225Record
,Smf4227Record
Mapping for SMF type 42 record.
Typically you would obtain Smf42Records by reading SmfRecords and
using
Smf42Record.
from(SmfRecord)
to create the specialized record after determining the record type.
- Sections
- Most section types are returned in a List containing 0 or more of the section type, depending on the values in the header triplet. If the record is documented as always having exactly 1 of a section e.g. Product Section, the single section is returned.
-
Constructor Summary
ConstructorDescriptionSmf42Record
(byte[] data) Constructs an SMF42Record from the specified byte array.Smf42Record
(SmfRecord record) Constructs a new Smf42Record from an existing SMF record. -
Method Summary
Modifier and TypeMethodDescriptionstatic Smf42Record
from
(byte[] data) Constructs an Smf42Record from the specified byte array.static Smf42Record
Constructs a new Smf42Record from an existing SMF record.header()
Get the header for this recordGet the Product section for this recordMethods inherited from class com.blackhillsoftware.smf.SmfRecord
createSection, extendedHeader, extendedHeader, getTriplet, hasSubtypes, hasSubtypes, recordLength, recordLength, recordType, recordType, sanityCheck, smfDate, smfDate, smfDateTime, smfDateTime, smfhdr1Flag, smfhdr1Iefu86, smfhdr1Len, smfhdr1Len, smfhdr1Stcke, smfhdr1StckeRawValue, smfhdr1Tzo, smfhdr1TzoRawValue, smfhdr1Version, smfhdr1Version, smfTime, smfTime, subSystem, subSystem, subType, subType, system, system
-
Constructor Details
-
Smf42Record
public Smf42Record(byte[] data) Constructs an SMF42Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
Smf42Record
Constructs a new Smf42Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
-
Method Details
-
from
Constructs a new Smf42Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
from
Constructs an Smf42Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
header
Get the header for this record- Returns:
- SMF type 42 record header
-
productSection
Get the Product section for this record- Returns:
- SMF type 42 Product Section
-
subtype1Header
-
subtype2Header
-
subtype3Header
-
subtype4Header
-
subtype5Header
-
subtype6Header
-
subtype9Header
-
subtype10Header
-
subtype11Header
-
subtype15Header
-
subtype16Header
-
subtype17Header
-
subtype18Header
-
subtype19Header
-
subtype20Header
-
subtype21Header
-
subtype22Header
-
subtype23Header
-
subtype24Header
-
subtype25Header
-
subtype27Header
-