int tempLength = in.read(tempEndian);
if (((int)tempEndian[0]) == 0)tempIn.setLittleEndianMode(false);
else tempIn.setLittleEndianMode(true);
// read the datatype of the incoming data
int tempType = tempIn.readInt();
// select the correct parsing routine
switch (tempType){
case 1: tempShape = parseWKBPoint(tempIn); break;
case 2: tempShape = parseWKBLineString(tempIn); break;