public abstract class CobolTypeFinder extends Object
This is useful when you are looking for a particular Cobol type (typically a complex type) in a byte stream that otherwise contains data you are not interested in.
| Constructor and Description |
|---|
CobolTypeFinder() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getSignatureLen() |
int |
indexOf(byte[] hostData,
int start,
int length)
Lookup for the signature of a Cobol type.
|
abstract boolean |
match(byte[] hostData,
int start,
int length)
Match a Cobol type to an incoming host bytes set.
|
public int indexOf(byte[] hostData,
int start,
int length)
Attempts at finding the type one byte at a time delegating the matching to specialized classes.
hostData - the incoming host data where the matching type might
appearstart - where to start looking in the incoming host datalength - where to stop looking in the incoming host datapublic abstract boolean match(byte[] hostData,
int start,
int length)
hostData - the host bytes setstart - where to start matchinglength - the size of the incoming host bytes set. This should be large
enough to hold a signature but is not guaranteed to hold more
than that.public abstract int getSignatureLen()
Copyright © 2021 LegSem. All rights reserved.