public class RecordParser
extends java.lang.Object
ResultSet element| Constructor and Description |
|---|
RecordParser()
Creates a new
RecordParser |
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector<java.lang.Integer> |
containsRecord(java.lang.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
|
java.util.Vector<java.lang.String> |
getFullRecords(java.lang.String line,
java.util.Vector<java.lang.Integer> count)
Retrieves the full records available in the provided string as they are denoted by the provided offsets
|
java.lang.String |
getHead(java.lang.String line,
int offset)
Retrives the part of the proovided string that is before the given offset
|
java.lang.String |
getTail(java.lang.String line,
int offset)
Retrives the part of the proovided string that is after the given offset
|
public RecordParser()
RecordParserpublic java.util.Vector<java.lang.Integer> containsRecord(java.lang.String line)
line - The line to parsepublic java.lang.String getHead(java.lang.String line,
int offset)
line - The string to useoffset - The offset to usepublic java.lang.String getTail(java.lang.String line,
int offset)
line - The string to useoffset - The offset to usepublic java.util.Vector<java.lang.String> getFullRecords(java.lang.String line,
java.util.Vector<java.lang.Integer> count)
line - The string to usecount - A vector holding the offsets of the strings