Java XMLStreamWriter CreateColumn(XMLStreamWriter serializer, String w, String h)

Here you can find the source of CreateColumn(XMLStreamWriter serializer, String w, String h)

Description

Create Column

License

Open Source License

Declaration

public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer, String w, String h)
            throws XMLStreamException 

Method Source Code

//package com.java2s;
//   Licensed under the Apache License, Version 2.0 (the "License"); you may

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

public class Main {
    public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer, String w, String h)
            throws XMLStreamException {
        serializer.writeStartElement("td");
        if (w != "")
            serializer.writeAttribute("width", w);
        if (h != "")
            serializer.writeAttribute("height", h);
        return serializer;
    }//from  w  w w  . j  a va  2s.c  o m

    public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer) throws XMLStreamException {
        return CreateColumn(serializer, "", "");
    }
}

Related

  1. addObjectId(final XMLStreamWriter writer, final String objId)
  2. CloseNewHTML(XMLStreamWriter serializer)
  3. closeQuietly(XMLStreamWriter c)
  4. copy(Reader reader, XMLStreamWriter xmlStreamWriter)
  5. CreateSimpleImage(XMLStreamWriter serializer, URL url, int w, int h)
  6. CreateSimpleTagAndContent(XMLStreamWriter serializer, String tag, String content)
  7. CreateTable(XMLStreamWriter serializer)
  8. createXMLStreamWriter(StringWriter outWriter)