code: public static CompoundCurve readCompoundCurve(ByteReader reader,
  			boolean hasZ, boolean hasM) {
  
  		CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
  
  		int numLineStrings = reader.readInt();
  
  		for (int i = 0; i < numLineStrings; i++) {
  			LineString lineString = readGeometry(reader, LineString.class);
  			compoundCurve.addLineString(lineString);
  
  		}
  
  		return compoundCurve;
  	}
docs: Read a Compound Curve
  
  @param reader
  @param hasZ
  @param hasM
  @return compound curve