|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.coasttocoastresearch.apg.Parser.UdtCallback
com.coasttocoastresearch.apg.UdtLib.LineEnd
public static class UdtLib.LineEnd
UDT for line end characters. Several conventions are commonly used for line end characters in different common environments. Flexible options are available.
| Field Summary |
|---|
| Fields inherited from class com.coasttocoastresearch.apg.Parser.UdtCallback |
|---|
callbackData |
| Constructor Summary | |
|---|---|
UdtLib.LineEnd(Parser p)
Default constructor. |
|
UdtLib.LineEnd(Parser p,
char end)
Constructor for the single-character line end. |
|
UdtLib.LineEnd(Parser p,
char end1,
char end2)
Constructor for the double-character line end. |
|
| Method Summary | |
|---|---|
int |
callback(int offset)
The UDT function. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UdtLib.LineEnd(Parser p)
x0A), CRLF (x0Dx0A)or CR (x0D)
are accepted as line ends.
p - the Parser object this UDT is attached to.
public UdtLib.LineEnd(Parser p,
char end)
p - the Parser object this UDT is attached to.end - the line end character
public UdtLib.LineEnd(Parser p,
char end1,
char end2)
p - the Parser object this UDT is attached to.end1 - the first of the line end character pairend2 - the second of the line end character pair| Method Detail |
|---|
public int callback(int offset)
Parser.UdtCallback
callback in class Parser.UdtCallbackoffset - offset into the input string to the first character of the parsed phrase.
L,
or -1 if no phrase was matched.
The phrase length must be in the range 0 <= L <=(n-1),
where n is the remaining number of characters in the input string.
|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||