|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconditionalprocedure.RSParser
public class RSParser
Helper methods to do recordset parsing for variable recordsets.
Field Summary | |
---|---|
private static java.util.regex.Pattern[] |
authorNames
Patterns which match various forms of names of people. |
private static java.util.regex.Pattern |
punctuation
Pattern which matches punctuation: "[", ";", ":", "/" |
Constructor Summary | |
---|---|
RSParser()
|
Method Summary | |
---|---|
(package private) static boolean |
isAllBlank(java.lang.CharSequence chars)
Return true if character array contains only blanks. |
(package private) static boolean |
isAuthor(java.lang.String author)
Return true if this character sequence matches an author name pattern. |
(package private) static boolean |
isNumber(java.lang.CharSequence chars,
int start,
int end)
Test for "is a number": right-justified decimal integer with leading whitespace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.regex.Pattern punctuation
private static final java.util.regex.Pattern[] authorNames
Constructor Detail |
---|
public RSParser()
Method Detail |
---|
static boolean isAuthor(java.lang.String author)
author
- the String to test for an author name
static boolean isAllBlank(java.lang.CharSequence chars)
chars
- buffer to check for blankness
static boolean isNumber(java.lang.CharSequence chars, int start, int end)
chars
- character sequence to teststart
- offset of first character to testend
- offset of first character not to test
java.lang.IllegalArgumentException
- if !(start < end)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |