| Constructor and Description |
|---|
RecordParser()
Creates a new
RecordParser |
| Modifier and Type | Method and Description |
|---|---|
Vector<Integer> |
containsRecord(String line)
Checks if the provided string contains any records, parses them and retrieves a vector holding the
offset they start from in the string
|
Vector<String> |
getFullRecords(String line,
Vector<Integer> count)
Retrieves the full records available in the provided string as they are denoted by the provided offsets
|
String |
getHead(String line,
int offset)
Retrives the part of the proovided string that is before the given offset
|
String |
getTail(String line,
int offset)
Retrives the part of the proovided string that is after the given offset
|
public RecordParser()
RecordParserpublic Vector<Integer> containsRecord(String line)
line - The line to parsepublic String getHead(String line, int offset)
line - The string to useoffset - The offset to usepublic String getTail(String line, int offset)
line - The string to useoffset - The offset to usepublic Vector<String> getFullRecords(String line, Vector<Integer> count)
line - The string to usecount - A vector holding the offsets of the stringsCopyright © 2018. All Rights Reserved.