private static List < Point > textDecodeMultiplePoints ( int index , int len , ByteBuf buff ) { // representation: p1,p2,p3...pn List < Point > points = new ArrayList <> ( ) ; int start = index ; int end = index + len - 1 ; while ( start < end ) { int rightParenthesis = buff . indexOf ( start , end + 1 , ( byte ) ' ' ) ; int idxOfPointSeparator = rightParenthesis + 1 ; int lenOfPoint = idxOfPointSeparator - start ; Point point = textDecodePOINT ( start , lenOfPoint , buff ) ; points . add ( point ) ; start = idxOfPointSeparator + 1 ; } return points ; }
this might be useful for decoding Lseg Box Path Polygon Data Type .