Write members to a MwsWriter.

@param w
The writer to write to.
970581
@Override
    public void writeFragmentTo(MwsWriter w) {
        w.write("AmazonOrderId", amazonOrderId);
        w.write("SellerOrderId", sellerOrderId);
        w.write("PurchaseDate", purchaseDate);
        w.write("LastUpdateDate", lastUpdateDate);
        w.write("OrderStatus", orderStatus);
        w.write("FulfillmentChannel", fulfillmentChannel);
        w.write("SalesChannel", salesChannel);
        w.write("OrderChannel", orderChannel);
        w.write("ShipServiceLevel", shipServiceLevel);
        w.write("ShippingAddress", shippingAddress);
        w.write("OrderTotal", orderTotal);
        w.write("NumberOfItemsShipped", numberOfItemsShipped);
        w.write("NumberOfItemsUnshipped", numberOfItemsUnshipped);
        w.writeList("PaymentExecutionDetail", "PaymentExecutionDetailItem", paymentExecutionDetail);
        w.write("PaymentMethod", paymentMethod);
        w.write("MarketplaceId", marketplaceId);
        w.write("BuyerEmail", buyerEmail);
        w.write("BuyerName", buyerName);
        w.write("ShipmentServiceLevelCategory", shipmentServiceLevelCategory);
        w.write("ShippedByAmazonTFM", shippedByAmazonTFM);
        w.write("TFMShipmentStatus", tfmShipmentStatus);
        w.write("CbaDisplayableShippingLabel", cbaDisplayableShippingLabel);
        w.write("OrderType", orderType);
        w.write("EarliestShipDate", earliestShipDate);
        w.write("LatestShipDate", latestShipDate);
        w.write("EarliestDeliveryDate", earliestDeliveryDate);
        w.write("LatestDeliveryDate", latestDeliveryDate);
    }
89188
public void write(OutputStream out)
         throws IOException
    {
        Writer writer = new OutputStreamWriter(out);
        write(writer);
        writer.flush();
    }
715154
@Override
    public void write(DataWriter writer) throws IOException {
        writer.writeInt(pos);  /* array position */
        writer.writeInt(val);  /* data value */
        writer.writeLong(scn); /* SCN value */
    }
100106
def writerow(self, row):
    """"""
    encoded_row = []
    for s in row:
      if isinstance(s, unicode):
        encoded_row.append(s.encode("utf-8"))
      else:
        encoded_row.append(s)
    try:
      self.writer.writerow(encoded_row)
    except Exception as e:
      print('error writing %s as %s' % (row, encoded_row))
      raise e
163457
public void write(final ComponentDescriptor<?> componentDescriptor, final OutputStream outputStream)
            throws IOException {
        write(new ComponentDocumentationWrapper(componentDescriptor), outputStream);
    }
500981
public void write(PrintWriter writer, Janitor janitor) {
        write(writer,janitor,warnings,"warning");
        write(writer,janitor,errors,"error");
    }
1027400
@Override
    public void writeEnc(Writer w) throws IOException
    {
        w.write("<!ENTITY ");
        w.write(mName);
        w.write(" \"");
        TextEscaper.outputDTDText(w, mRepl, 0, mRepl.length);
        w.write("\">");
    }
158530
public static void writeObject(DataOutput out, Object instance,
                                 Class declaredClass, 
                                 Configuration conf) throws IOException {

    if (instance == null) {                       // null
      instance = new NullInstance(declaredClass, conf);
      declaredClass = Writable.class;
    }
    
    // handle FastWritable first (including ShortVoid)
    if (instance instanceof FastWritable) {
      FastWritable fwInstance = (FastWritable) instance;
      byte[] serializedName = fwInstance.getSerializedName();
      out.write(serializedName, 0, serializedName.length);
      fwInstance.write(out);
      return;
    }
    
    // write declared name
    writeStringCached(out, declaredClass.getName());

    if (declaredClass.isArray()) {                // array
      int length = Array.getLength(instance);
      out.writeInt(length);
      for (int i = 0; i < length; i++) {
        writeObject(out, Array.get(instance, i),
                    declaredClass.getComponentType(), conf);
      }
      
    } else if (declaredClass == String.class) {   // String
      UTF8.writeStringOpt(out, (String)instance);
      
    } else if (declaredClass.isPrimitive()) {     // primitive type

      if (declaredClass == Boolean.TYPE) {        // boolean
        out.writeBoolean(((Boolean)instance).booleanValue());
      } else if (declaredClass == Character.TYPE) { // char
        out.writeChar(((Character)instance).charValue());
      } else if (declaredClass == Byte.TYPE) {    // byte
        out.writeByte(((Byte)instance).byteValue());
      } else if (declaredClass == Short.TYPE) {   // short
        out.writeShort(((Short)instance).shortValue());
      } else if (declaredClass == Integer.TYPE) { // int
        out.writeInt(((Integer)instance).intValue());
      } else if (declaredClass == Long.TYPE) {    // long
        out.writeLong(((Long)instance).longValue());
      } else if (declaredClass == Float.TYPE) {   // float
        out.writeFloat(((Float)instance).floatValue());
      } else if (declaredClass == Double.TYPE) {  // double
        out.writeDouble(((Double)instance).doubleValue());
      } else if (declaredClass == Void.TYPE) {    // void
      } else {
        throw new IllegalArgumentException("Not a primitive: "+declaredClass);
      }
    } else if (declaredClass.isEnum()) {         // enum
      writeStringCached(out, ((Enum)instance).name());
    } else if (Writable.class.isAssignableFrom(declaredClass)) { // Writable
      writeStringCached(out, instance.getClass().getName());
      ((Writable)instance).write(out);

    } else {
      throw new IOException("Can't write: "+instance+" as "+declaredClass);
    }
  }
100727
@Override
    public void writeJournalEntry(CreatorJournalEntry journalEntry)
            throws JournalException {
        try {
            super.writeJournalEntry(journalEntry, writer);
            writer.flush();
        } catch (XMLStreamException e) {
            throw new JournalException(e);
        }
    }
87521
public void write(PrintWriter writer) {
        this.output = writer;
        dispatch(base, false);
        writer.flush();
    }
190296
def write_member(self, data):
        
        if isinstance(data, basestring):
            self.write(data)
        else:
            for text in data:
                self.write(text)
        self.close_member()
105242
@Override
    public void writeFragmentTo(MwsWriter w) {
        w.write("ASIN", asin);
        w.write("SellerSKU", sellerSKU);
        w.write("OrderItemId", orderItemId);
        w.write("Title", title);
        w.write("QuantityOrdered", quantityOrdered);
        w.write("QuantityShipped", quantityShipped);
        w.write("ItemPrice", itemPrice);
        w.write("ShippingPrice", shippingPrice);
        w.write("GiftWrapPrice", giftWrapPrice);
        w.write("ItemTax", itemTax);
        w.write("ShippingTax", shippingTax);
        w.write("GiftWrapTax", giftWrapTax);
        w.write("ShippingDiscount", shippingDiscount);
        w.write("PromotionDiscount", promotionDiscount);
        w.writeList("PromotionIds", "PromotionId", promotionIds);
        w.write("CODFee", codFee);
        w.write("CODFeeDiscount", codFeeDiscount);
        w.write("GiftMessageText", giftMessageText);
        w.write("GiftWrapLevel", giftWrapLevel);
        w.write("InvoiceData", invoiceData);
        w.write("ConditionNote", conditionNote);
        w.write("ConditionId", conditionId);
        w.write("ConditionSubtypeId", conditionSubtypeId);
        w.write("ScheduledDeliveryStartDate", scheduledDeliveryStartDate);
        w.write("ScheduledDeliveryEndDate", scheduledDeliveryEndDate);
    }
686502
private static void writeMember(ObjectOutputStream out, Executable member)
        throws IOException
    {
        if (member == null) {
            out.writeBoolean(false);
            return;
        }
        out.writeBoolean(true);
        if (!(member instanceof Method || member instanceof Constructor))
            throw new IllegalArgumentException("not Method or Constructor");
        out.writeBoolean(member instanceof Method);
        out.writeObject(member.getName());
        out.writeObject(member.getDeclaringClass());
        writeParameters(out, member.getParameterTypes());
    }
701465
private static void mapToWriter(Map<?, ?> map, JsonWriter writer) throws IOException {
    writer.beginObject();
    for (Map.Entry<?, ?> entry : map.entrySet()) {
      writer.name(String.valueOf(entry.getKey()));
      writeValue(entry.getValue(), writer);
    }
    writer.endObject();
  }
1205325
private void writeToImpl(Writer out, String encoding, byte[] bufferToWrite, int bufferToWriteLen)
            throws IOException {
        String writeStr;
        if (encoding != null) {
            writeStr = new String(bufferToWrite, 0, bufferToWriteLen, encoding);
        } else {
            writeStr = new String(bufferToWrite, 0, bufferToWriteLen);
        }
        out.write(writeStr);
    }
353155
public static void serialize(Element element, Writer w) {
        Source source = new DOMSource(element);
        serialize(source, w);
    }
377512
public void write(Writer wtr) throws Throwable {
    // First we need the dn

    wtr.write(getDn());
    wtr.write('\n');

    throw new Exception("Incomplete");
  }