code: public static CircularString readCircularString(ByteReader reader,
  			boolean hasZ, boolean hasM) {
  
  		CircularString circularString = new CircularString(hasZ, hasM);
  
  		int numPoints = reader.readInt();
  
  		for (int i = 0; i < numPoints; i++) {
  			Point point = readPoint(reader, hasZ, hasM);
  			circularString.addPoint(point);
  
  		}
  
  		return circularString;
  	}
docs: Read a Circular String
  
  @param reader
  @param hasZ
  @param hasM
  @return circular string