|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.common.searchservice.searchlibrary.resultset.helpers.RecordParser
public class RecordParser
Helper class used by the ResultSet
element
Constructor Summary | |
---|---|
RecordParser()
Creates a new RecordParser |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordParser()
RecordParser
Method Detail |
---|
public java.util.Vector<java.lang.Integer> containsRecord(java.lang.String line)
line
- The line to parse
public java.lang.String getHead(java.lang.String line, int offset)
line
- The string to useoffset
- The offset to use
public java.lang.String getTail(java.lang.String line, int offset)
line
- The string to useoffset
- The offset to use
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |