Skip to content

Commit

Permalink
Features:
Browse files Browse the repository at this point in the history
Bug Fixes/Re-organization:

Samples:

	- Service JSON Parser Lexical Processor - Parse #1 (1, 2, 3)
	- Service JSON Parser Lexical Processor - Parse #2 (4, 5, 6)
	- Service JSON Parser Lexical Processor - Parse #3 (7, 8, 9)
	- Service JSON Parser Lexical Processor - Parse #4 (10, 11, 12)
	- Service JSON Parser Lexical Processor - Parse #5 (13, 14, 15)
	- Service JSON Parser Lexical Processor - Parse #6 (16, 17, 18)
	- Service JSON Parser Lexical Processor - Parse #7 (19, 20, 21)
	- Service JSON Parser Lexical Processor - Parse #8 (22, 23, 24)
	- Service JSON Parser Lexical Processor - Parse #9 (25, 26, 27)
	- Service JSON Parser Lexical Processor - Parse #10 (28, 29, 30)
	- Service JSON Parser Lexical Processor - Parse #11 (31, 32, 33)
	- Service JSON Parser Lexical Processor - Parse #12 (34, 35, 36)
	- Service JSON Parser Lexical Processor - Parse #13 (37, 38, 39)
	- Service JSON Parser Lexical Processor - Parse #14 (40, 41)
	- Service JSON Parser Lexical Processor #1 (42)
	- Service JSON Parser Lexical Processor #2 (43, 44, 45)
	- Service JSON Parser Lexical Processor #3 (46, 47, 48)
	- Service JSON Parser Lexical Processor #4 (49, 50, 51)
	- Service JSON Parser Lexical Processor #5 (52, 53, 54)
	- Service JSON Parser Lexical Processor #6 (55, 56, 57)
	- Service JSON Parser Lexical Processor #7 (58, 59, 60)
	- Service JSON Parser Parse Exception #1 (61, 62, 63)
	- Service JSON Parser Parse Exception - Serial Version UID (64)
	- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_CHAR (65)
	- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_TOKEN (66)
	- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_EXCEPTION (67)
	- Service JSON Parser Parse Exception - Error Type (68)
	- Service JSON Parser Parse Exception - Unexpected Object (69)
	- Service JSON Parser Parse Exception - Position (70)
	- Service JSON Parser Parse Exception - Constructor #1 (71, 72)
	- Service JSON Parser Parse Exception - Constructor #2 (73, 74)
	- Service JSON Parser Parse Exception - Constructor #3 (75, 76)
	- Service JSON Parser Parse Exception - Error Type #1 (77, 78)
	- Service JSON Parser Parse Exception - Error Type #2 (79, 80)
	- Service JSON Parser Parse Exception - Position #1 (81, 82)
	- Service JSON Parser Parse Exception - Position #2 (83, 84)
	- Service JSON Parser Parse Exception - Unexpected Object #1 (85, 86)
	- Service JSON Parser Parse Exception - Unexpected Object #2 (87, 88)
	- Service JSON Parser Parse Exception - To String #1 (89, 90)
	- Service JSON Parser Parse Exception - To String #2 (91, 92, 93)
	- Service JSON Parser Parse Exception - To String #3 (94, 95, 96)
	- Service JSON Parser Parse Exception - To String #4 (97, 98, 99)
	- Service JSON Parser Parse Exception - To String #5 (100, 101, 102)
	- Service JSON Parser Parse Exception - To String #6 (103, 104, 105)
	- Service JSON Parser Parse Exception #2 (106, 107, 108)
	- Service JSON Parser Parse Exception #3 (109, 110, 111)
	- Service JSON Parser Parse Exception #4 (112, 113, 114)
	- Service JSON Parser Parse Exception #5 (115, 116, 117)
	- Service JSON Parser Parse Exception #6 (118)
	- Service JSON Parser YY Token (119, 120)


IdeaDRIP:
  • Loading branch information
Lakshmik committed Jan 19, 2025
1 parent 133d741 commit 2676a5b
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 85 deletions.
60 changes: 60 additions & 0 deletions ReleaseNotes/05_12_2024.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

Features:

Bug Fixes/Re-organization:

Samples:

- Service JSON Parser Lexical Processor - Parse #1 (1, 2, 3)
- Service JSON Parser Lexical Processor - Parse #2 (4, 5, 6)
- Service JSON Parser Lexical Processor - Parse #3 (7, 8, 9)
- Service JSON Parser Lexical Processor - Parse #4 (10, 11, 12)
- Service JSON Parser Lexical Processor - Parse #5 (13, 14, 15)
- Service JSON Parser Lexical Processor - Parse #6 (16, 17, 18)
- Service JSON Parser Lexical Processor - Parse #7 (19, 20, 21)
- Service JSON Parser Lexical Processor - Parse #8 (22, 23, 24)
- Service JSON Parser Lexical Processor - Parse #9 (25, 26, 27)
- Service JSON Parser Lexical Processor - Parse #10 (28, 29, 30)
- Service JSON Parser Lexical Processor - Parse #11 (31, 32, 33)
- Service JSON Parser Lexical Processor - Parse #12 (34, 35, 36)
- Service JSON Parser Lexical Processor - Parse #13 (37, 38, 39)
- Service JSON Parser Lexical Processor - Parse #14 (40, 41)
- Service JSON Parser Lexical Processor #1 (42)
- Service JSON Parser Lexical Processor #2 (43, 44, 45)
- Service JSON Parser Lexical Processor #3 (46, 47, 48)
- Service JSON Parser Lexical Processor #4 (49, 50, 51)
- Service JSON Parser Lexical Processor #5 (52, 53, 54)
- Service JSON Parser Lexical Processor #6 (55, 56, 57)
- Service JSON Parser Lexical Processor #7 (58, 59, 60)
- Service JSON Parser Parse Exception #1 (61, 62, 63)
- Service JSON Parser Parse Exception - Serial Version UID (64)
- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_CHAR (65)
- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_TOKEN (66)
- Service JSON Parser Parse Exception - ERROR_UNEXPECTED_EXCEPTION (67)
- Service JSON Parser Parse Exception - Error Type (68)
- Service JSON Parser Parse Exception - Unexpected Object (69)
- Service JSON Parser Parse Exception - Position (70)
- Service JSON Parser Parse Exception - Constructor #1 (71, 72)
- Service JSON Parser Parse Exception - Constructor #2 (73, 74)
- Service JSON Parser Parse Exception - Constructor #3 (75, 76)
- Service JSON Parser Parse Exception - Error Type #1 (77, 78)
- Service JSON Parser Parse Exception - Error Type #2 (79, 80)
- Service JSON Parser Parse Exception - Position #1 (81, 82)
- Service JSON Parser Parse Exception - Position #2 (83, 84)
- Service JSON Parser Parse Exception - Unexpected Object #1 (85, 86)
- Service JSON Parser Parse Exception - Unexpected Object #2 (87, 88)
- Service JSON Parser Parse Exception - To String #1 (89, 90)
- Service JSON Parser Parse Exception - To String #2 (91, 92, 93)
- Service JSON Parser Parse Exception - To String #3 (94, 95, 96)
- Service JSON Parser Parse Exception - To String #4 (97, 98, 99)
- Service JSON Parser Parse Exception - To String #5 (100, 101, 102)
- Service JSON Parser Parse Exception - To String #6 (103, 104, 105)
- Service JSON Parser Parse Exception #2 (106, 107, 108)
- Service JSON Parser Parse Exception #3 (109, 110, 111)
- Service JSON Parser Parse Exception #4 (112, 113, 114)
- Service JSON Parser Parse Exception #5 (115, 116, 117)
- Service JSON Parser Parse Exception #6 (118)
- Service JSON Parser YY Token (119, 120)


IdeaDRIP:
63 changes: 46 additions & 17 deletions src/main/java/org/drip/service/jsonparser/LexicalProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,25 @@
* (https://code.google.com/p/json-simple/). It provides the following Functionality:
*
* <ul>
* <li>Convert the JSON Entry to a String</li>
* <li>Processor Initialized</li>
* <li>Processor Initialized with Value</li>
* <li>Processor Initialized with Object</li>
* <li>Processor Initialized with Array</li>
* <li>Processor Initialized with Key Pair</li>
* <li>Processor Initialized with Value Pair</li>
* <li>Processor Finished</li>
* <li>Processor In Error</li>
* <li>Reset the parser to the initial state without resetting the underlying reader</li>
* <li>Reset the parser to the initial state with a new character reader</li>
* <li>Retrieve the position of the beginning of the current token</li>
* <li>Parse JSON text into java object from the input source</li>
* <li>Parse the JSON String</li>
* <li>Parse an Object from the String</li>
* <li>Parse from the Input Reader</li>
* <li>Stream processing of JSON text</li>
* <li>Parse the String using the specified Content Handler #1</li>
* <li>Parse the String using the specified Content Handler #2</li>
* <li>Parse from the Input Reader using the specified Content Handler</li>
* </ul>
*
* <br>
Expand Down Expand Up @@ -210,7 +228,7 @@ private void nextToken()
}

/**
* Reset the parser to the initial state without resetting the underlying reader
* Reset the parser to the initial state without resetting the underlying reader
*/

public void reset()
Expand Down Expand Up @@ -855,7 +873,7 @@ public Object parse (
}

/**
* Parse the String using the specified Content Handler
* Parse the String using the specified Content Handler #1
*
* @param s Input String
* @param contentHandler The Content Handler
Expand All @@ -864,21 +882,28 @@ public Object parse (
* @throws ParseException Thrown if Parser Exception encountered
*/

public void parse(String s, ContentHandler contentHandler, boolean isResume) throws ParseException{
StringReader in=new StringReader(s);
try{
parse(in, contentHandler, isResume);
}
catch(IOException ie){
/*
* Actually it will never happen.
*/
throw new ParseException(-1, ParseException.ERROR_UNEXPECTED_EXCEPTION, ie);
}
public void parse (
final String s,
final ContentHandler contentHandler,
final boolean isResume)
throws ParseException
{
StringReader in = new StringReader(s);

try {
parse (in, contentHandler, isResume);
} catch (IOException ie) {

/*
* Actually it will never happen.
*/

throw new ParseException (-1, ParseException.ERROR_UNEXPECTED_EXCEPTION, ie);
}
}

/**
* Parse the String using the specified Content Handler
* Parse the String using the specified Content Handler #2
*
* @param s Input String
* @param contentHandler The Content Handler
Expand All @@ -905,7 +930,11 @@ public void parse (
* @throws ParseException Thrown if Parser Exception encountered
*/

public void parse(Reader in, ContentHandler contentHandler) throws IOException, ParseException{
parse(in, contentHandler, false);
public void parse (
final Reader in,
final ContentHandler contentHandler)
throws IOException, ParseException
{
parse (in, contentHandler, false);
}
}
Loading

0 comments on commit 2676a5b

Please sign in to comment.