code: public static void writeCompoundCurve(ByteWriter writer,
  			CompoundCurve compoundCurve) throws IOException {
  
  		writer.writeInt(compoundCurve.numLineStrings());
  
  		for (LineString lineString : compoundCurve.getLineStrings()) {
  			writeGeometry(writer, lineString);
  		}
  	}
docs: Write a Compound Curve
  
  @param writer
  @param compoundCurve
  @throws IOException